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

Method SetFrameEvent

renderdoc/replay/replay_controller.cpp:66–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void ReplayController::SetFrameEvent(uint32_t eventId, bool force)
67{
68 CHECK_REPLAY_THREAD();
69 RENDERDOC_PROFILEFUNCTION();
70
71 // use remapped event if there's a match
72 auto it = m_EventRemap.find(eventId);
73 if(it != m_EventRemap.end())
74 eventId = it->second;
75
76 if(eventId != m_EventID || force)
77 {
78 m_EventID = eventId;
79
80 m_pDevice->ReplayLog(eventId, eReplay_WithoutDraw);
81 FatalErrorCheck();
82
83 for(size_t i = 0; i < m_Outputs.size(); i++)
84 m_Outputs[i]->SetFrameEvent(eventId);
85
86 m_pDevice->ReplayLog(eventId, eReplay_OnlyDraw);
87 FatalErrorCheck();
88
89 FetchPipelineState(eventId);
90 }
91}
92
93const D3D11Pipe::State *ReplayController::GetD3D11PipelineState()
94{

Callers 1

CreateOutputMethod · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
ReplayLogMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected