mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-09-03 11:29:01 +00:00
Pica/DebugUtils: Add an event triggered after loading a vertex.
This commit is contained in:
parent
cd322e328e
commit
79c29243ed
@ -44,6 +44,7 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const
|
|||||||
{ Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") },
|
{ Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") },
|
||||||
{ Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") },
|
{ Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") },
|
||||||
{ Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished 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));
|
_dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents));
|
||||||
|
@ -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
|
// NOTE: When dumping geometry, we simply assume that the first input attribute
|
||||||
// corresponds to the position for now.
|
// corresponds to the position for now.
|
||||||
DebugUtils::GeometryDumper::Vertex dumped_vertex = {
|
DebugUtils::GeometryDumper::Vertex dumped_vertex = {
|
||||||
|
@ -26,6 +26,7 @@ public:
|
|||||||
CommandProcessed,
|
CommandProcessed,
|
||||||
IncomingPrimitiveBatch,
|
IncomingPrimitiveBatch,
|
||||||
FinishedPrimitiveBatch,
|
FinishedPrimitiveBatch,
|
||||||
|
VertexLoaded,
|
||||||
|
|
||||||
NumEvents
|
NumEvents
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user