summaryrefslogtreecommitdiffstats
path: root/Imgui/src/ImGuiImplDiligent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Imgui/src/ImGuiImplDiligent.cpp')
-rw-r--r--Imgui/src/ImGuiImplDiligent.cpp6
1 files changed, 4 insertions, 2 deletions
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;