From 921a995810a60528a71bbea1d4299155742af9d4 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 14 Apr 2018 13:14:51 -0700 Subject: Moved primitive topology to pipeline state --- Tests/TestApp/src/TestGeometryShader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestGeometryShader.cpp') diff --git a/Tests/TestApp/src/TestGeometryShader.cpp b/Tests/TestApp/src/TestGeometryShader.cpp index 922ba8a..81dc309 100644 --- a/Tests/TestApp/src/TestGeometryShader.cpp +++ b/Tests/TestApp/src/TestGeometryShader.cpp @@ -75,7 +75,7 @@ void TestGeometryShader::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCo PSODesc.GraphicsPipeline.pPS = pPS; PSODesc.GraphicsPipeline.pVS = pVS; PSODesc.GraphicsPipeline.pGS = pGS; - PSODesc.GraphicsPipeline.PrimitiveTopologyType = PRIMITIVE_TOPOLOGY_TYPE_POINT; + PSODesc.GraphicsPipeline.PrimitiveTopology = PRIMITIVE_TOPOLOGY_POINT_LIST; pDevice->CreatePipelineState( PSODesc, &m_pPSO ); } @@ -89,7 +89,6 @@ void TestGeometryShader::Draw() m_pDeviceContext->CommitShaderResources(nullptr, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES); Diligent::DrawAttribs DrawAttrs; - DrawAttrs.Topology = Diligent::PRIMITIVE_TOPOLOGY_POINT_LIST; DrawAttrs.NumVertices = 2; // Draw 2 triangles m_pDeviceContext->Draw(DrawAttrs); -- cgit v1.2.3