MCPcopy Create free account
hub / github.com/baldurk/renderdoc / jumpToPrimitive

Method jumpToPrimitive

qrenderdoc/Windows/PixelHistoryView.cpp:844–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842}
843
844void PixelHistoryView::jumpToPrimitive(EventTag tag)
845{
846 m_Ctx.SetEventID({this}, tag.eventId, tag.eventId);
847 m_Ctx.ShowMeshPreview();
848
849 IBufferViewer *viewer = m_Ctx.GetMeshPreview();
850
851 const ActionDescription *action = m_Ctx.CurAction();
852
853 if(action)
854 {
855 uint32_t vertIdx =
856 RENDERDOC_VertexOffset(m_Ctx.CurPipelineState().GetPrimitiveTopology(), tag.primitive);
857
858 if(vertIdx != ~0U)
859 viewer->ScrollToRow(vertIdx);
860 }
861}
862
863void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos)
864{

Callers

nothing calls this directly

Calls 6

RENDERDOC_VertexOffsetFunction · 0.85
ScrollToRowMethod · 0.80
SetEventIDMethod · 0.45
ShowMeshPreviewMethod · 0.45
GetMeshPreviewMethod · 0.45
CurActionMethod · 0.45

Tested by

no test coverage detected