From a7bce1b27c4f1fe3d96859588f23f86d2b4d595d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 2 Jul 2018 09:48:04 -0700 Subject: Updated unit tests to set DSV format in PSO --- Tests/TestApp/src/TestShaderResArrays.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Tests/TestApp/src/TestShaderResArrays.cpp') diff --git a/Tests/TestApp/src/TestShaderResArrays.cpp b/Tests/TestApp/src/TestShaderResArrays.cpp index 08e9448..d58b776 100644 --- a/Tests/TestApp/src/TestShaderResArrays.cpp +++ b/Tests/TestApp/src/TestShaderResArrays.cpp @@ -80,8 +80,9 @@ TestShaderResArrays::TestShaderResArrays(IRenderDevice *pDevice, IDeviceContext PSODesc.GraphicsPipeline.RasterizerDesc.CullMode = CULL_MODE_NONE; PSODesc.GraphicsPipeline.BlendDesc.IndependentBlendEnable = False; PSODesc.GraphicsPipeline.BlendDesc.RenderTargets[0].BlendEnable = False; - PSODesc.GraphicsPipeline.RTVFormats[0] = pSwapChain->GetDesc().ColorBufferFormat; PSODesc.GraphicsPipeline.NumRenderTargets = 1; + PSODesc.GraphicsPipeline.RTVFormats[0] = pSwapChain->GetDesc().ColorBufferFormat; + PSODesc.GraphicsPipeline.DSVFormat = pSwapChain->GetDesc().DepthBufferFormat; PSODesc.GraphicsPipeline.pVS = pVS; PSODesc.GraphicsPipeline.pPS = pPS; -- cgit v1.2.3