From fe5cf538f542ddf039553a1539eb67b0d7bd9784 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 9 Dec 2018 16:04:09 -0800 Subject: Updated core & samples submodules. Using convenience constructors for DrawAttribs --- Tests/TestApp/src/TestGeometryShader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/src/TestGeometryShader.cpp') 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); -- cgit v1.2.3