Pull index byte width and topology out of drawcall state

* These are treated as state on most APIs, only GL treats it as a drawcall
  parameter.
This commit is contained in:
baldurk committed 2021-02-24 13:52:07 +00:00
1 parent 04e533742f
commit 30dd13feb8
43 files changed
+462 -354

No files matched your search

+2 -1
View File
@@ -798,7 +798,8 @@ void PixelHistoryView::jumpToPrimitive(EventTag tag)
if(draw)
{
uint32_t vertIdx = RENDERDOC_VertexOffset(draw->topology, tag.primitive);
uint32_t vertIdx =
RENDERDOC_VertexOffset(m_Ctx.CurPipelineState().GetPrimitiveTopology(), tag.primitive);
if(vertIdx != ~0U)
viewer->ScrollToRow(vertIdx);