ImDebugger: Add way to cancel pending step

This commit is contained in:
Henrik Rydgård committed 2024-12-10 01:01:47 +01:00
1 parent de3617529f
commit 132fabff07
1 file changed
+4
+4
View File
@@ -304,6 +304,10 @@ void ImGeDebuggerWindow::Draw(ImConfig &cfg, GPUDebugInterface *gpuDebug) {
// Display any pending step event.
if (GPUDebug::GetBreakNext() != GPUDebug::BreakNext::NONE) {
ImGui::Text("Step pending (waiting for CPU): %s", GPUDebug::BreakNextToString(GPUDebug::GetBreakNext()));
ImGui::SameLine();
if (ImGui::Button("Cancel step")) {
GPUDebug::SetBreakNext(GPUDebug::BreakNext::NONE);
}
}
// Let's display the current CLUT.