summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTessellation.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-03 01:42:16 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-03 01:42:16 +0000
commit017f5133606d1e9c433048a8e50b9648fff2b81f (patch)
tree2bda8756ff59b53852a587c6133df3d7347f9f29 /Tests/TestApp/src/TestTessellation.cpp
parentFixed linux build error (diff)
downloadDiligentEngine-017f5133606d1e9c433048a8e50b9648fff2b81f.tar.gz
DiligentEngine-017f5133606d1e9c433048a8e50b9648fff2b81f.zip
Replaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE
Diffstat (limited to 'Tests/TestApp/src/TestTessellation.cpp')
-rw-r--r--Tests/TestApp/src/TestTessellation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestTessellation.cpp b/Tests/TestApp/src/TestTessellation.cpp
index c4a4706..66da395 100644
--- a/Tests/TestApp/src/TestTessellation.cpp
+++ b/Tests/TestApp/src/TestTessellation.cpp
@@ -132,7 +132,7 @@ void TestTessellation::Draw()
return;
m_pDeviceContext->SetPipelineState(m_pQuadPSO);
- m_pDeviceContext->CommitShaderResources(nullptr, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES);
+ m_pDeviceContext->CommitShaderResources(nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
Diligent::DrawAttribs DrawAttrs;
DrawAttrs.Flags = DRAW_FLAG_VERIFY_STATES;
@@ -140,7 +140,7 @@ void TestTessellation::Draw()
m_pDeviceContext->Draw(DrawAttrs);
m_pDeviceContext->SetPipelineState(m_pTriPSO);
- m_pDeviceContext->CommitShaderResources(nullptr, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES);
+ m_pDeviceContext->CommitShaderResources(nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
DrawAttrs.NumVertices = 1; // Draw 1 tri patch
m_pDeviceContext->Draw(DrawAttrs);