mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Merge pull request #11437 from xebra/step_to_curve
GE Debugger: Step to curved surface.
This commit is contained in:
commit
07e99d614d
@ -57,6 +57,9 @@ void SetBreakNext(BreakNext next) {
|
||||
GPUBreakpoints::AddCmdBreakpoint(GE_CMD_PRIM, true);
|
||||
GPUBreakpoints::AddCmdBreakpoint(GE_CMD_BEZIER, true);
|
||||
GPUBreakpoints::AddCmdBreakpoint(GE_CMD_SPLINE, true);
|
||||
} else if (next == BreakNext::CURVE) {
|
||||
GPUBreakpoints::AddCmdBreakpoint(GE_CMD_BEZIER, true);
|
||||
GPUBreakpoints::AddCmdBreakpoint(GE_CMD_SPLINE, true);
|
||||
}
|
||||
GPUStepping::ResumeFromStepping();
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ enum class BreakNext {
|
||||
NONTEX,
|
||||
FRAME,
|
||||
PRIM,
|
||||
CURVE,
|
||||
};
|
||||
|
||||
void SetActive(bool flag);
|
||||
|
@ -716,6 +716,10 @@ BOOL CGEDebugger::DlgProc(UINT message, WPARAM wParam, LPARAM lParam) {
|
||||
SetBreakNext(BreakNext::PRIM);
|
||||
break;
|
||||
|
||||
case IDC_GEDBG_STEPCURVE:
|
||||
SetBreakNext(BreakNext::CURVE);
|
||||
break;
|
||||
|
||||
case IDC_GEDBG_BREAKTEX:
|
||||
{
|
||||
GPUDebug::SetActive(true);
|
||||
|
@ -214,8 +214,9 @@ BEGIN
|
||||
PUSHBUTTON "Step &Tex",IDC_GEDBG_STEPTEX,62,2,48,14
|
||||
PUSHBUTTON "Step &Draw",IDC_GEDBG_STEPDRAW,114,2,48,14
|
||||
PUSHBUTTON "Step &Prim",IDC_GEDBG_STEPPRIM,166,2,48,14
|
||||
PUSHBUTTON "Step &Into",IDC_GEDBG_STEP,218,2,48,14
|
||||
PUSHBUTTON "&Resume",IDC_GEDBG_RESUME,270,2,48,14
|
||||
PUSHBUTTON "Step &Curve",IDC_GEDBG_STEPCURVE,218,2,48,14
|
||||
PUSHBUTTON "Step &Into",IDC_GEDBG_STEP,270,2,48,14
|
||||
PUSHBUTTON "&Resume",IDC_GEDBG_RESUME,322,2,48,14
|
||||
PUSHBUTTON "Rec&ord",IDC_GEDBG_RECORD,440,2,48,14
|
||||
CONTROL "",IDC_GEDBG_TEX,"SimpleGLWindow",WS_CHILD | WS_VISIBLE,10,20,128,128
|
||||
CONTROL "",IDC_GEDBG_FRAME,"SimpleGLWindow",WS_CHILD | WS_VISIBLE,148,20,256,136
|
||||
|
@ -341,6 +341,7 @@
|
||||
#define ID_OPTIONS_WINDOW10X 40176
|
||||
#define ID_EMULATION_PAUSE 40177
|
||||
#define ID_HELP_DISCORD 40178
|
||||
#define IDC_GEDBG_STEPCURVE 40179
|
||||
|
||||
// Dummy option to let the buffered rendering hotkey cycle through all the options.
|
||||
#define ID_OPTIONS_BUFFEREDRENDERINGDUMMY 40500
|
||||
|
Loading…
Reference in New Issue
Block a user