From 017f5133606d1e9c433048a8e50b9648fff2b81f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 2 Dec 2018 17:42:16 -0800 Subject: Replaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE --- unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp | 2 +- unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unityplugin') diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp index adef5a3..61b6667 100644 --- a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp +++ b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp @@ -164,7 +164,7 @@ void SamplePlugin::Render(Diligent::IDeviceContext *pContext, const float4x4 &Vi pContext->SetIndexBuffer(m_CubeIndexBuffer, 0); pContext->SetPipelineState(m_PSO); - pContext->CommitShaderResources(m_SRB, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES); + pContext->CommitShaderResources(m_SRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); DrawAttribs DrawAttrs; DrawAttrs.IsIndexed = true; diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index 3628e9d..7b894b7 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -195,7 +195,7 @@ void GhostCubeScene::Render(UnityRenderingEvent RenderEventFunc) pCtx->InvalidateState(); pCtx->SetRenderTargets(0, nullptr, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL); pCtx->SetPipelineState(m_pMirrorPSO); - pCtx->CommitShaderResources(m_pMirrorSRB, COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES); + pCtx->CommitShaderResources(m_pMirrorSRB, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); { float4x4 MirrorWorldView = scaleMatrix(5,5,5) * rotationX(PI_F*0.6f) * translationMatrix(0.f, -3.0f, 10.0f); -- cgit v1.2.3