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/TestTessellation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/src/TestTessellation.cpp') diff --git a/Tests/TestApp/src/TestTessellation.cpp b/Tests/TestApp/src/TestTessellation.cpp index 66da395..e3ad13d 100644 --- a/Tests/TestApp/src/TestTessellation.cpp +++ b/Tests/TestApp/src/TestTessellation.cpp @@ -134,9 +134,8 @@ void TestTessellation::Draw() m_pDeviceContext->SetPipelineState(m_pQuadPSO); m_pDeviceContext->CommitShaderResources(nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); - Diligent::DrawAttribs DrawAttrs; - DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; - DrawAttrs.NumVertices = 2; // Draw 2 quad patches + // Draw 2 quad patches + Diligent::DrawAttribs DrawAttrs(2, DRAW_FLAG_VERIFY_STATES); m_pDeviceContext->Draw(DrawAttrs); m_pDeviceContext->SetPipelineState(m_pTriPSO); -- cgit v1.2.3