diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-19 21:31:56 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-19 21:31:56 +0000 |
| commit | af5a3688c57f0f0a9406fb1ea488e093d5822aea (patch) | |
| tree | 3780348ac277ab1df447c0b5d2bed6eef3b074f4 /Tests/TestApp/src/TestApp.cpp | |
| parent | Fixed UWP build error (diff) | |
| download | DiligentEngine-af5a3688c57f0f0a9406fb1ea488e093d5822aea.tar.gz DiligentEngine-af5a3688c57f0f0a9406fb1ea488e093d5822aea.zip | |
Updated submodules (API version 240033);
Enabled bindless mode in Asteroid demo
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestApp.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
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); |
