mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Reformat all the things. Have fun with merge conflicts.
This commit is contained in:
@ -9,50 +9,48 @@
|
||||
class GFXDebuggerBase
|
||||
{
|
||||
public:
|
||||
virtual ~GFXDebuggerBase() {}
|
||||
|
||||
// if paused, debugging functions can be enabled
|
||||
virtual void OnPause() {}
|
||||
virtual void OnContinue() {}
|
||||
|
||||
void DumpPixelShader(const std::string& path);
|
||||
void DumpVertexShader(const std::string& path);
|
||||
void DumpPixelShaderConstants(const std::string& path);
|
||||
void DumpVertexShaderConstants(const std::string& path);
|
||||
void DumpTextures(const std::string& path);
|
||||
void DumpFrameBuffer(const std::string& path);
|
||||
void DumpGeometry(const std::string& path);
|
||||
void DumpVertexDecl(const std::string& path);
|
||||
void DumpMatrices(const std::string& path);
|
||||
void DumpStats(const std::string& path);
|
||||
virtual ~GFXDebuggerBase() {}
|
||||
// if paused, debugging functions can be enabled
|
||||
virtual void OnPause() {}
|
||||
virtual void OnContinue() {}
|
||||
void DumpPixelShader(const std::string& path);
|
||||
void DumpVertexShader(const std::string& path);
|
||||
void DumpPixelShaderConstants(const std::string& path);
|
||||
void DumpVertexShaderConstants(const std::string& path);
|
||||
void DumpTextures(const std::string& path);
|
||||
void DumpFrameBuffer(const std::string& path);
|
||||
void DumpGeometry(const std::string& path);
|
||||
void DumpVertexDecl(const std::string& path);
|
||||
void DumpMatrices(const std::string& path);
|
||||
void DumpStats(const std::string& path);
|
||||
};
|
||||
|
||||
enum PauseEvent
|
||||
{
|
||||
NOT_PAUSE = 0,
|
||||
NEXT_FRAME = 1<<0,
|
||||
NEXT_FLUSH = 1<<1,
|
||||
NOT_PAUSE = 0,
|
||||
NEXT_FRAME = 1 << 0,
|
||||
NEXT_FLUSH = 1 << 1,
|
||||
|
||||
NEXT_PIXEL_SHADER_CHANGE = 1<<2,
|
||||
NEXT_VERTEX_SHADER_CHANGE = 1<<3,
|
||||
NEXT_TEXTURE_CHANGE = 1<<4,
|
||||
NEXT_NEW_TEXTURE = 1<<5,
|
||||
NEXT_PIXEL_SHADER_CHANGE = 1 << 2,
|
||||
NEXT_VERTEX_SHADER_CHANGE = 1 << 3,
|
||||
NEXT_TEXTURE_CHANGE = 1 << 4,
|
||||
NEXT_NEW_TEXTURE = 1 << 5,
|
||||
|
||||
NEXT_XFB_CMD = 1<<6, // TODO
|
||||
NEXT_EFB_CMD = 1<<7, // TODO
|
||||
NEXT_XFB_CMD = 1 << 6, // TODO
|
||||
NEXT_EFB_CMD = 1 << 7, // TODO
|
||||
|
||||
NEXT_MATRIX_CMD = 1<<8, // TODO
|
||||
NEXT_VERTEX_CMD = 1<<9, // TODO
|
||||
NEXT_TEXTURE_CMD = 1<<10, // TODO
|
||||
NEXT_LIGHT_CMD = 1<<11, // TODO
|
||||
NEXT_FOG_CMD = 1<<12, // TODO
|
||||
NEXT_MATRIX_CMD = 1 << 8, // TODO
|
||||
NEXT_VERTEX_CMD = 1 << 9, // TODO
|
||||
NEXT_TEXTURE_CMD = 1 << 10, // TODO
|
||||
NEXT_LIGHT_CMD = 1 << 11, // TODO
|
||||
NEXT_FOG_CMD = 1 << 12, // TODO
|
||||
|
||||
NEXT_SET_TLUT = 1<<13, // TODO
|
||||
NEXT_SET_TLUT = 1 << 13, // TODO
|
||||
|
||||
NEXT_ERROR = 1<<14, // TODO
|
||||
NEXT_ERROR = 1 << 14, // TODO
|
||||
};
|
||||
|
||||
extern GFXDebuggerBase *g_pdebugger;
|
||||
extern GFXDebuggerBase* g_pdebugger;
|
||||
extern volatile bool GFXDebuggerPauseFlag;
|
||||
extern volatile PauseEvent GFXDebuggerToPauseAtNext;
|
||||
extern volatile int GFXDebuggerEventToPauseCount;
|
||||
@ -61,6 +59,25 @@ void GFXDebuggerCheckAndPause(bool update);
|
||||
void GFXDebuggerToPause(bool update);
|
||||
void GFXDebuggerUpdateScreen();
|
||||
|
||||
#define GFX_DEBUGGER_PAUSE_AT(event,update) {if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount<=0) || GFXDebuggerPauseFlag) GFXDebuggerToPause(update);}
|
||||
#define GFX_DEBUGGER_PAUSE_LOG_AT(event,update,dumpfunc) {if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount<=0) || GFXDebuggerPauseFlag) {{dumpfunc};GFXDebuggerToPause(update);}}
|
||||
#define GFX_DEBUGGER_LOG_AT(event,dumpfunc) {if (( GFXDebuggerToPauseAtNext & event ) ) {{dumpfunc};}}
|
||||
#define GFX_DEBUGGER_PAUSE_AT(event, update) \
|
||||
{ \
|
||||
if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount <= 0) || \
|
||||
GFXDebuggerPauseFlag) \
|
||||
GFXDebuggerToPause(update); \
|
||||
}
|
||||
#define GFX_DEBUGGER_PAUSE_LOG_AT(event, update, dumpfunc) \
|
||||
{ \
|
||||
if (((GFXDebuggerToPauseAtNext & event) && --GFXDebuggerEventToPauseCount <= 0) || \
|
||||
GFXDebuggerPauseFlag) \
|
||||
{ \
|
||||
{dumpfunc}; \
|
||||
GFXDebuggerToPause(update); \
|
||||
} \
|
||||
}
|
||||
#define GFX_DEBUGGER_LOG_AT(event, dumpfunc) \
|
||||
{ \
|
||||
if ((GFXDebuggerToPauseAtNext & event)) \
|
||||
{ \
|
||||
{dumpfunc}; \
|
||||
} \
|
||||
}
|
||||
|
Reference in New Issue
Block a user