diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 17:33:43 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 17:33:43 +0000 |
| commit | 54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf (patch) | |
| tree | f3911330de9cac5af8f8045270b0879585e3bb2a /Tests/TestApp/src/TestApp.cpp | |
| parent | Fixed linux build (diff) | |
| download | DiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.tar.gz DiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.zip | |
Updated the API (SetVertexBuffers, SetIndexBuffers, DRAW_FLAGS and other)
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestApp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index 3a43243..b1b0cce 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -527,7 +527,7 @@ void TestApp::InitializeRenderers() m_pImmediateContext->ClearRenderTarget(nullptr, ClearColor, RESOURCE_STATE_TRANSITION_MODE_VERIFY); DrawAttribs DrawAttrs; DrawAttrs.NumVertices = 3; - DrawAttrs.Flags = DRAW_FLAG_TRANSITION_VERTEX_BUFFERS; + DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); // This adds transition barrier for pTex1 @@ -663,7 +663,7 @@ void TestApp::Render() DrawAttrs.NumIndices = 3; DrawAttrs.IndexType = VT_UINT32; DrawAttrs.NumInstances = 3; - DrawAttrs.Flags = DRAW_FLAG_TRANSITION_INDEX_BUFFER | DRAW_FLAG_TRANSITION_VERTEX_BUFFERS; + DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES; m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); m_pTestDrawCommands->Draw(); m_pTestBufferAccess->Draw((float)dCurrTime); |
