mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Fix switching between pipeline state viewers
This commit is contained in:
@@ -87,6 +87,15 @@ void PipelineStateViewer::OnCaptureClosed()
|
||||
|
||||
void PipelineStateViewer::OnEventChanged(uint32_t eventId)
|
||||
{
|
||||
if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D11)
|
||||
setToD3D11();
|
||||
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::D3D12)
|
||||
setToD3D12();
|
||||
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::OpenGL)
|
||||
setToGL();
|
||||
else if(m_Ctx.APIProps().pipelineType == GraphicsAPI::Vulkan)
|
||||
setToVulkan();
|
||||
|
||||
if(m_Current)
|
||||
m_Current->OnEventChanged(eventId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user