From b251377cae1247bd6b752fb513a0330f3787835f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 3 Dec 2018 21:34:48 -0800 Subject: Updated SetRenderTargets() and ClearDepthStencil() methods to take StateTransitionMode parameter --- Tests/TestApp/src/TestSeparateTextureSampler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestSeparateTextureSampler.cpp') 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); } -- cgit v1.2.3