| 224 | } |
| 225 | |
| 226 | void 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 | |
| 258 | void PipelineStateViewer::RT_UpdateAndDisplay(IReplayController *r) |
| 259 | { |
nothing calls this directly
no test coverage detected