diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 20:14:51 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 20:14:51 +0000 |
| commit | 921a995810a60528a71bbea1d4299155742af9d4 (patch) | |
| tree | cf87cef18084f17d81f3c68e51b0050e17eba741 /Tests/TestApp/src/TestGeometryShader.cpp | |
| parent | Merged master (diff) | |
| download | DiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.tar.gz DiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.zip | |
Moved primitive topology to pipeline state
Diffstat (limited to 'Tests/TestApp/src/TestGeometryShader.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestGeometryShader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
