aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-12-10 17:31:50 +0100
committerGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-12-20 18:06:55 +0100
commit79c29243ed94fb247dfa5a60e1863a8f64f11669 (patch)
treee0bfd61848a57adef3ea458a041d060ecac414f2 /src/video_core/command_processor.cpp
parentcd322e328ec6957b6744ee9b68d29b2c29a554df (diff)
Pica/DebugUtils: Add an event triggered after loading a vertex.
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index d8bddd56..4f82694f 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 = {