VERY experimental Nintendo Switch 2 emulator
C++
Pica/DebugUtils: Add an event triggered after loading a vertex.
Tony Wasserka79c29243ed94
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cppindex 469c3e2686..4cb41db225 100644--- a/src/citra_qt/debugger/graphics_breakpoints.cpp+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp@@ -44,6 +44,7 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const{ Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") },{ Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") },{ Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") },+ { Pica::DebugContext::Event::VertexLoaded, tr("Vertex Loaded") }};_dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents));diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cppindex d8bddd5693..4f82694fd8 100644--- a/src/video_core/command_processor.cpp+++ b/src/video_core/command_processor.cpp@@ -131,6 +131,9 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {}}+ if (g_debug_context)+ g_debug_context->OnEvent(DebugContext::Event::VertexLoaded, (void*)&input);+// NOTE: When dumping geometry, we simply assume that the first input attribute// corresponds to the position for now.DebugUtils::GeometryDumper::Vertex dumped_vertex = {diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.hindex 2a764e121f..f9be901152 100644--- a/src/video_core/debug_utils/debug_utils.h+++ b/src/video_core/debug_utils/debug_utils.h@@ -26,6 +26,7 @@ public:CommandProcessed,IncomingPrimitiveBatch,FinishedPrimitiveBatch,+ VertexLoaded,NumEvents};