summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestSeparateTextureSampler.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-04 05:34:48 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-04 05:34:48 +0000
commitb251377cae1247bd6b752fb513a0330f3787835f (patch)
tree8972e0c7814ee53d2b3fd3f32b7cd2136de5a4ce /Tests/TestApp/src/TestSeparateTextureSampler.cpp
parentUpdated the API (SetVertexBuffers, SetIndexBuffers, DRAW_FLAGS and other) (diff)
downloadDiligentEngine-b251377cae1247bd6b752fb513a0330f3787835f.tar.gz
DiligentEngine-b251377cae1247bd6b752fb513a0330f3787835f.zip
Updated SetRenderTargets() and ClearDepthStencil() methods to take StateTransitionMode parameter
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 1bf1306..5fa41a5 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, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
+ pContext->SetRenderTargets(1, pRTV, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
float Zero[4] = {};
pContext->ClearRenderTarget(pRTV[0], Zero, RESOURCE_STATE_TRANSITION_MODE_VERIFY);
pContext->SetPipelineState(pPSO);
@@ -161,7 +161,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I
DrawAttrs.NumVertices = 3;
pContext->Draw(DrawAttrs);
- pContext->SetRenderTargets(0, nullptr, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
+ pContext->SetRenderTargets(0, nullptr, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION);
SetStatus(TestResult::Succeeded);
}