| 842 | } |
| 843 | |
| 844 | void 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 | |
| 863 | void PixelHistoryView::on_events_customContextMenuRequested(const QPoint &pos) |
| 864 | { |
nothing calls this directly
no test coverage detected