Merge pull request #11437 from xebra/step_to_curve

GE Debugger: Step to curved surface.
This commit is contained in:
Henrik Rydgård 2018-10-03 14:39:19 +02:00 committed by GitHub
commit 07e99d614d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 2 deletions

View File

@ -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();
}

View File

@ -29,6 +29,7 @@ enum class BreakNext {
NONTEX,
FRAME,
PRIM,
CURVE,
};
void SetActive(bool flag);

View File

@ -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);

View File

@ -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

View File

@ -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