mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 19:45:47 -04:00
Add debugging for GPU/Timers
This commit is contained in:
@ -40,7 +40,7 @@ public:
|
||||
virtual void RestoreGraphicsAPIState();
|
||||
|
||||
// Render statistics debug window.
|
||||
virtual void DrawStatistics();
|
||||
virtual void DrawDebugWindows();
|
||||
|
||||
// Manipulating debug options.
|
||||
virtual void DrawDebugMenu();
|
||||
@ -162,9 +162,10 @@ protected:
|
||||
|
||||
struct DebugOptions
|
||||
{
|
||||
bool show_vram;
|
||||
bool dump_cpu_to_vram_copies;
|
||||
bool dump_vram_to_cpu_copies;
|
||||
bool show_state = false;
|
||||
bool show_vram = false;
|
||||
bool dump_cpu_to_vram_copies = false;
|
||||
bool dump_vram_to_cpu_copies = false;
|
||||
};
|
||||
|
||||
void SoftReset();
|
||||
@ -200,6 +201,9 @@ protected:
|
||||
virtual void DispatchRenderCommand(RenderCommand rc, u32 num_vertices);
|
||||
virtual void FlushRender();
|
||||
|
||||
// Debugging
|
||||
void DrawDebugStateWindow();
|
||||
|
||||
System* m_system = nullptr;
|
||||
DMA* m_dma = nullptr;
|
||||
InterruptController* m_interrupt_controller = nullptr;
|
||||
@ -351,5 +355,5 @@ protected:
|
||||
std::vector<u32> m_GP0_command;
|
||||
std::deque<u32> m_GPUREAD_buffer;
|
||||
|
||||
DebugOptions m_debug_options = {};
|
||||
DebugOptions m_debug_options;
|
||||
};
|
||||
|
Reference in New Issue
Block a user