summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestShaderVarAccess.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-01 07:15:55 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-01 07:15:55 +0000
commit82d59de0d193554e1231b06347078d41ed8ec8d3 (patch)
treeb4d723394dd870f4e7a3201e3e804c88ff4aad7f /Tests/TestApp/src/TestShaderVarAccess.cpp
parentUpdated submodules (added DRAW_FLAG_VERIFY_STATES & DISPATCH_FLAG_VERIFY_STAT... (diff)
downloadDiligentEngine-82d59de0d193554e1231b06347078d41ed8ec8d3.tar.gz
DiligentEngine-82d59de0d193554e1231b06347078d41ed8ec8d3.zip
Improved thread safety of enum flags; added explicit state transitions to SetRenderTargets()
Diffstat (limited to 'Tests/TestApp/src/TestShaderVarAccess.cpp')
-rw-r--r--Tests/TestApp/src/TestShaderVarAccess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestShaderVarAccess.cpp b/Tests/TestApp/src/TestShaderVarAccess.cpp
index dd23fd9..4b571f6 100644
--- a/Tests/TestApp/src/TestShaderVarAccess.cpp
+++ b/Tests/TestApp/src/TestShaderVarAccess.cpp
@@ -552,7 +552,7 @@ TestShaderVarAccess::TestShaderVarAccess( IRenderDevice *pDevice, IDeviceContext
VERIFY_EXPR(pNonExistingVar == nullptr);
VERIFY_EXPR(pSRB->GetVariableCount(SHADER_TYPE_GEOMETRY) == 0);
- m_pDeviceContext->SetRenderTargets(1, &pRTV, pDSV);
+ m_pDeviceContext->SetRenderTargets(1, &pRTV, pDSV, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
float Zero[4] = {};
m_pDeviceContext->ClearRenderTarget(pRTV, Zero);
m_pDeviceContext->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG);
@@ -560,7 +560,7 @@ TestShaderVarAccess::TestShaderVarAccess( IRenderDevice *pDevice, IDeviceContext
pContext->CommitShaderResources(pSRB, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES);
pContext->Draw(DrawAttrs);
- m_pDeviceContext->SetRenderTargets(0, nullptr, nullptr);
+ m_pDeviceContext->SetRenderTargets(0, nullptr, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
SetStatus(TestResult::Succeeded);
}