summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestBufferAccess.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-05-31 15:35:34 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-05-31 15:35:34 +0000
commitc6bfb3bdcb4215eba7061090c25fa7604a1a0d44 (patch)
tree9b980c7331aecc3cbd110b51b2cd46f59ed6c8cf /Tests/TestApp/src/TestBufferAccess.cpp
parentMoved Stride to vertex layout desc; updated tests (diff)
downloadDiligentEngine-c6bfb3bdcb4215eba7061090c25fa7604a1a0d44.tar.gz
DiligentEngine-c6bfb3bdcb4215eba7061090c25fa7604a1a0d44.zip
Updated back buffer format to match the one from the swap chain in the tests
Diffstat (limited to 'Tests/TestApp/src/TestBufferAccess.cpp')
-rw-r--r--Tests/TestApp/src/TestBufferAccess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestBufferAccess.cpp b/Tests/TestApp/src/TestBufferAccess.cpp
index 299960f..ed0177d 100644
--- a/Tests/TestApp/src/TestBufferAccess.cpp
+++ b/Tests/TestApp/src/TestBufferAccess.cpp
@@ -38,7 +38,7 @@ TestBufferAccess::TestBufferAccess() :
m_fYExtent(0)
{}
-void TestBufferAccess::Init( IRenderDevice *pDevice, IDeviceContext *pContext, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent )
+void TestBufferAccess::Init( IRenderDevice *pDevice, IDeviceContext *pContext, ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent )
{
m_pRenderDevice = pDevice;
m_pDeviceContext = pContext;
@@ -137,7 +137,7 @@ void TestBufferAccess::Init( IRenderDevice *pDevice, IDeviceContext *pContext, f
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.pVS = pVSInst;
PSODesc.GraphicsPipeline.pPS = pPS;