From af5a3688c57f0f0a9406fb1ea488e093d5822aea Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 19 Oct 2019 14:31:56 -0700 Subject: Updated submodules (API version 240033); Enabled bindless mode in Asteroid demo --- Tests/TestApp/src/TestApp.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Tests/TestApp/src/TestApp.cpp') diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index 9f6fc27..0a5e738 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -691,17 +691,19 @@ void TestApp::Render() UniformData[3] = 0; } - DrawAttribs DrawAttrs; - DrawAttrs.NumVertices = 3; - DrawAttrs.Flags = DRAW_FLAG_VERIFY_ALL; - m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); - - DrawAttrs.IsIndexed = true; - DrawAttrs.NumIndices = 3; - DrawAttrs.IndexType = VT_UINT32; - DrawAttrs.NumInstances = 3; - DrawAttrs.Flags = DRAW_FLAG_VERIFY_ALL; - m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); + { + DrawAttribs DrawAttrs{3, DRAW_FLAG_VERIFY_ALL}; + m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); + } + + { + DrawIndexedAttribs DrawAttrs{}; + DrawAttrs.NumIndices = 3; + DrawAttrs.IndexType = VT_UINT32; + DrawAttrs.NumInstances = 3; + DrawAttrs.Flags = DRAW_FLAG_VERIFY_ALL; + m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); + } m_pTestDrawCommands->Draw(); m_pTestBufferAccess->Draw((float)dCurrTime); -- cgit v1.2.3