summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestSeparateTextureSampler.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/TestSeparateTextureSampler.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/TestSeparateTextureSampler.cpp')
-rw-r--r--Tests/TestApp/src/TestSeparateTextureSampler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestSeparateTextureSampler.cpp b/Tests/TestApp/src/TestSeparateTextureSampler.cpp
index bc31712..d1df07e 100644
--- a/Tests/TestApp/src/TestSeparateTextureSampler.cpp
+++ b/Tests/TestApp/src/TestSeparateTextureSampler.cpp
@@ -151,7 +151,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I
pDevice->CreateTexture(RenderTargetDesc, TextureData{}, &pRenderTarget);
ITextureView* pRTV[] = {pRenderTarget->GetDefaultView(TEXTURE_VIEW_RENDER_TARGET)};
- pContext->SetRenderTargets(1, pRTV, nullptr);
+ pContext->SetRenderTargets(1, pRTV, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
float Zero[4] = {};
pContext->ClearRenderTarget(pRTV[0], Zero);
pContext->SetPipelineState(pPSO);
@@ -161,7 +161,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I
DrawAttrs.NumVertices = 3;
pContext->Draw(DrawAttrs);
- pContext->SetRenderTargets(0, nullptr, nullptr);
+ pContext->SetRenderTargets(0, nullptr, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
SetStatus(TestResult::Succeeded);
}