diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-05 16:12:06 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-05 16:12:06 +0000 |
| commit | 91db4f0dfc635efd7ec09081074145ca42b15e5a (patch) | |
| tree | 027b14457c8246f70a8525043078bbbe5ab3bc9f /unityplugin/GhostCubeScene/src | |
| parent | Reworked Tutorial 12 (diff) | |
| download | DiligentEngine-91db4f0dfc635efd7ec09081074145ca42b15e5a.tar.gz DiligentEngine-91db4f0dfc635efd7ec09081074145ca42b15e5a.zip | |
Refactored overloaded IPipelineState::GetStaticShaderVariable and IShaderResourceBinding::GetVariable
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index cbed56c..abd3a26 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -131,8 +131,8 @@ void GhostCubeScene::OnGraphicsInitialized() PSODesc.GraphicsPipeline.pVS = pVS; PSODesc.GraphicsPipeline.pPS = pPS; pDevice->CreatePipelineState(PSODesc, &m_pMirrorPSO); - m_pMirrorPSO->GetStaticShaderVariable(SHADER_TYPE_VERTEX, "Constants")->Set(m_pMirrorVSConstants); - m_pMirrorPSO->GetStaticShaderVariable(SHADER_TYPE_PIXEL, "g_tex2Reflection")->Set(m_pRenderTarget->GetDefaultView(TEXTURE_VIEW_SHADER_RESOURCE)); + m_pMirrorPSO->GetStaticVariableByName(SHADER_TYPE_VERTEX, "Constants")->Set(m_pMirrorVSConstants); + m_pMirrorPSO->GetStaticVariableByName(SHADER_TYPE_PIXEL, "g_tex2Reflection")->Set(m_pRenderTarget->GetDefaultView(TEXTURE_VIEW_SHADER_RESOURCE)); m_pMirrorPSO->CreateShaderResourceBinding(&m_pMirrorSRB, true); } #if D3D12_SUPPORTED |
