summaryrefslogtreecommitdiffstats
path: root/unityplugin
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-01 18:46:24 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-01 18:46:24 +0000
commitcc6c4bac6b4e05994ba2bbb4441514eb899ee670 (patch)
tree98adf59b37bc0a9f1b1e51343c9f5d9ace2fa9be /unityplugin
parentUpdated core (diff)
downloadDiligentEngine-cc6c4bac6b4e05994ba2bbb4441514eb899ee670.tar.gz
DiligentEngine-cc6c4bac6b4e05994ba2bbb4441514eb899ee670.zip
Added state transition mode to ClearRenderTarget()
Diffstat (limited to 'unityplugin')
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
index b3762e6..49dd3a1 100644
--- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
+++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
@@ -158,7 +158,7 @@ void GhostCubeScene::Render(UnityRenderingEvent RenderEventFunc)
ITextureView *pDSV = m_pDepthBuffer->GetDefaultView(TEXTURE_VIEW_DEPTH_STENCIL);
pCtx->SetRenderTargets(1, pRTVs, pDSV, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL);
const float ClearColor[] = { 0.f, 0.2f, 0.5f, 1.0f };
- pCtx->ClearRenderTarget(pRTVs[0], ClearColor);
+ pCtx->ClearRenderTarget(pRTVs[0], ClearColor, CLEAR_RENDER_TARGET_TRANSITION_STATE);
pCtx->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG, ReverseZ ? 0.f : 1.f, 0);
if (DeviceCaps.DevType == DeviceType::D3D12)