diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-01 06:03:27 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-01 06:03:27 +0000 |
| commit | aa990fa2d06f666698d0ce5045017c3867b16d49 (patch) | |
| tree | 6fb2f40e8ec54b7fb64c26710500c8fb170ca000 /unityplugin/GhostCubeScene/src | |
| parent | Updated core (diff) | |
| download | DiligentEngine-aa990fa2d06f666698d0ce5045017c3867b16d49.tar.gz DiligentEngine-aa990fa2d06f666698d0ce5045017c3867b16d49.zip | |
Updated API to version 240056
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index 01c69dd..41d7b25 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -86,7 +86,9 @@ void GhostCubeScene::OnGraphicsInitialized() const auto &SCDesc = m_DiligentGraphics->GetSwapChain()->GetDesc(); auto UseReverseZ = m_DiligentGraphics->UsesReverseZ(); - PipelineStateDesc PSODesc; + PipelineStateCreateInfo PSOCreateInfo; + PipelineStateDesc& PSODesc = PSOCreateInfo.PSODesc; + PSODesc.IsComputePipeline = false; PSODesc.Name = "Mirror PSO"; PSODesc.GraphicsPipeline.NumRenderTargets = 1; @@ -135,7 +137,7 @@ void GhostCubeScene::OnGraphicsInitialized() PSODesc.GraphicsPipeline.pVS = pVS; PSODesc.GraphicsPipeline.pPS = pPS; - pDevice->CreatePipelineState(PSODesc, &m_pMirrorPSO); + pDevice->CreatePipelineState(PSOCreateInfo, &m_pMirrorPSO); 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); |
