Permalink
Browse files

GE Debugger:Step to curved surface.

  • Loading branch information...
xebra committed Oct 1, 2018
1 parent 4fbeec1 commit 64cf6f2755b490071e58664827d1afb7bba99570
Showing with 12 additions and 2 deletions.
  1. +3 −0 GPU/Debugger/Debugger.cpp
  2. +1 −0 GPU/Debugger/Debugger.h
  3. +4 −0 Windows/GEDebugger/GEDebugger.cpp
  4. +3 −2 Windows/ppsspp.rc
  5. +1 −0 Windows/resource.h
@@ -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
@@ -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);
View
@@ -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
@@ -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

0 comments on commit 64cf6f2

Please sign in to comment.