From c6bfb3bdcb4215eba7061090c25fa7604a1a0d44 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 31 May 2018 08:35:34 -0700 Subject: Updated back buffer format to match the one from the swap chain in the tests --- Tests/TestApp/src/TestGeometryShader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestGeometryShader.cpp') diff --git a/Tests/TestApp/src/TestGeometryShader.cpp b/Tests/TestApp/src/TestGeometryShader.cpp index 81dc309..aba2fed 100644 --- a/Tests/TestApp/src/TestGeometryShader.cpp +++ b/Tests/TestApp/src/TestGeometryShader.cpp @@ -31,7 +31,7 @@ using namespace Diligent; -void TestGeometryShader::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext) +void TestGeometryShader::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext, ISwapChain *pSwapChain) { if(!pDevice->GetDeviceCaps().bGeometryShadersSupported) { @@ -70,7 +70,7 @@ void TestGeometryShader::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCo PSODesc.GraphicsPipeline.RasterizerDesc.CullMode = CULL_MODE_NONE; PSODesc.GraphicsPipeline.BlendDesc.IndependentBlendEnable = False; PSODesc.GraphicsPipeline.BlendDesc.RenderTargets[0].BlendEnable = False; - PSODesc.GraphicsPipeline.RTVFormats[0] = TEX_FORMAT_RGBA8_UNORM_SRGB; + PSODesc.GraphicsPipeline.RTVFormats[0] = pSwapChain->GetDesc().ColorBufferFormat; PSODesc.GraphicsPipeline.NumRenderTargets = 1; PSODesc.GraphicsPipeline.pPS = pPS; PSODesc.GraphicsPipeline.pVS = pVS; -- cgit v1.2.3