summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestShaderResArrays.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-14 20:14:51 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-14 20:14:51 +0000
commit921a995810a60528a71bbea1d4299155742af9d4 (patch)
treecf87cef18084f17d81f3c68e51b0050e17eba741 /Tests/TestApp/src/TestShaderResArrays.cpp
parentMerged master (diff)
downloadDiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.tar.gz
DiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.zip
Moved primitive topology to pipeline state
Diffstat (limited to 'Tests/TestApp/src/TestShaderResArrays.cpp')
-rw-r--r--Tests/TestApp/src/TestShaderResArrays.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestShaderResArrays.cpp b/Tests/TestApp/src/TestShaderResArrays.cpp
index 11ae64b..190c13a 100644
--- a/Tests/TestApp/src/TestShaderResArrays.cpp
+++ b/Tests/TestApp/src/TestShaderResArrays.cpp
@@ -85,6 +85,7 @@ TestShaderResArrays::TestShaderResArrays(IRenderDevice *pDevice, IDeviceContext
PSODesc.GraphicsPipeline.pVS = pVS;
PSODesc.GraphicsPipeline.pPS = pPS;
+ PSODesc.GraphicsPipeline.PrimitiveTopology = PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
LayoutElement Elems[] =
{
LayoutElement( 0, 0, 3, Diligent::VT_FLOAT32, false, 0 ),
@@ -185,7 +186,6 @@ void TestShaderResArrays::Draw()
m_pDeviceContext->SetVertexBuffers( 0, 1, pBuffs, Strides, Offsets, SET_VERTEX_BUFFERS_FLAG_RESET );
Diligent::DrawAttribs DrawAttrs;
- DrawAttrs.Topology = Diligent::PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
DrawAttrs.NumVertices = 4; // Draw quad
m_pDeviceContext->Draw( DrawAttrs );