diff options
Diffstat (limited to 'Tests/TestApp/src/TestGeometryShader.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestGeometryShader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestGeometryShader.cpp b/Tests/TestApp/src/TestGeometryShader.cpp index 749d2ec..cd10911 100644 --- a/Tests/TestApp/src/TestGeometryShader.cpp +++ b/Tests/TestApp/src/TestGeometryShader.cpp @@ -90,9 +90,8 @@ void TestGeometryShader::Draw() m_pDeviceContext->SetPipelineState(m_pPSO); m_pDeviceContext->CommitShaderResources(nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); - Diligent::DrawAttribs DrawAttrs; - DrawAttrs.NumVertices = 2; // Draw 2 triangles - DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; + // Draw 2 triangles + Diligent::DrawAttribs DrawAttrs(2, DRAW_FLAG_VERIFY_STATES); m_pDeviceContext->Draw(DrawAttrs); SetStatus(TestResult::Succeeded); |
