diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-02 23:56:47 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-02 23:56:47 +0000 |
| commit | 9804391599a0d3590c9e7a3bfcb97bcdc753ca83 (patch) | |
| tree | c37e81b3e99ae35332722757cebf371237375505 /unityplugin/GhostCubeScene/src | |
| parent | Added explicit state transition control to CopyBuffer and CopyTexture methods (diff) | |
| download | DiligentEngine-9804391599a0d3590c9e7a3bfcb97bcdc753ca83.tar.gz DiligentEngine-9804391599a0d3590c9e7a3bfcb97bcdc753ca83.zip | |
Checking in file missed in last commit
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index 8022172..3628e9d 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, CLEAR_RENDER_TARGET_TRANSITION_STATE); + pCtx->ClearRenderTarget(pRTVs[0], ClearColor, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); pCtx->ClearDepthStencil(pDSV, CLEAR_DEPTH_FLAG | CLEAR_DEPTH_STENCIL_TRANSITION_STATE_FLAG, ReverseZ ? 0.f : 1.f, 0); if (DeviceCaps.DevType == DeviceType::D3D12) |
