From 53283423328b1c940401487b1863a0921bc10fd9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 31 Mar 2020 21:18:03 -0700 Subject: Updates to match API version 240056 --- Imgui/src/ImGuiImplDiligent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Imgui/src/ImGuiImplDiligent.cpp') diff --git a/Imgui/src/ImGuiImplDiligent.cpp b/Imgui/src/ImGuiImplDiligent.cpp index 8aeb41b..9388f6c 100644 --- a/Imgui/src/ImGuiImplDiligent.cpp +++ b/Imgui/src/ImGuiImplDiligent.cpp @@ -178,7 +178,9 @@ void ImGuiImplDiligent_Internal::CreateDeviceObjects() m_pDevice->CreateShader(ShaderCI, &pPS); } - PipelineStateDesc PSODesc; + PipelineStateCreateInfo PSOCreateInfo; + PipelineStateDesc& PSODesc = PSOCreateInfo.PSODesc; + PSODesc.Name = "ImGUI PSO"; auto& GraphicsPipeline = PSODesc.GraphicsPipeline; @@ -231,7 +233,7 @@ void ImGuiImplDiligent_Internal::CreateDeviceObjects() PSODesc.ResourceLayout.StaticSamplers = StaticSamplers; PSODesc.ResourceLayout.NumStaticSamplers = _countof(StaticSamplers); - m_pDevice->CreatePipelineState(PSODesc, &m_pPSO); + m_pDevice->CreatePipelineState(PSOCreateInfo, &m_pPSO); { BufferDesc BuffDesc; -- cgit v1.2.3