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

Method OnCaptureLoaded

qrenderdoc/Windows/PipelineState/PipelineStateViewer.cpp:226–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void PipelineStateViewer::OnCaptureLoaded()
227{
228 if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D11)
229 setToD3D11();
230 else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D12)
231 setToD3D12();
232 else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::OpenGL)
233 setToGL();
234 else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::Vulkan)
235 setToVulkan();
236
237 if(m_Current)
238 m_Current->OnCaptureLoaded();
239
240 if(!m_Ctx.APIProps().remoteReplay)
241 {
242 WindowingData thumbData = ui->thumbnail->GetWidgetWindowingData();
243
244 m_Ctx.Replay().BlockInvoke([thumbData, this](IReplayController *r) {
245 m_Output = r->CreateOutput(thumbData, ReplayOutputType::Texture);
246
247 ui->thumbnail->SetOutput(m_Output);
248
249 RT_UpdateAndDisplay(r);
250 });
251 }
252 else
253 {
254 m_Output = NULL;
255 }
256}
257
258void PipelineStateViewer::RT_UpdateAndDisplay(IReplayController *r)
259{

Callers

nothing calls this directly

Calls 4

BlockInvokeMethod · 0.80
CreateOutputMethod · 0.80
SetOutputMethod · 0.45

Tested by

no test coverage detected