diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2021-01-01 04:54:15 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2021-01-01 04:54:15 +0000 |
| commit | f53126ac1826e12314d9a16be5ae0cf1d22b57b1 (patch) | |
| tree | 87160c6c5f62f21f1f9c484cc335e20c56d2f88b /Graphics/GraphicsEngineD3D12 | |
| parent | Fixed 32-bit build (diff) | |
| download | DiligentCore-f53126ac1826e12314d9a16be5ae0cf1d22b57b1.tar.gz DiligentCore-f53126ac1826e12314d9a16be5ae0cf1d22b57b1.zip | |
D3D12 and VK backends: disabled bound resources validation in TransitionShaderResources since not all resources have to be bound
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp index c8927541..9506a081 100644 --- a/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/PipelineStateD3D12Impl.cpp @@ -955,15 +955,17 @@ ShaderResourceCacheD3D12* PipelineStateD3D12Impl::CommitAndTransitionShaderResou return nullptr; } - - if ((m_RootSig.GetTotalSrvCbvUavSlots(SHADER_RESOURCE_VARIABLE_TYPE_STATIC) != 0 || - m_RootSig.GetTotalRootViews(SHADER_RESOURCE_VARIABLE_TYPE_STATIC) != 0) && - !pResBindingD3D12Impl->StaticResourcesInitialized()) + if (Attrib.CommitResources) { - LOG_ERROR_MESSAGE("Static resources have not been initialized in the shader resource binding object being committed for PSO '", m_Desc.Name, "'. Please call IShaderResourceBinding::InitializeStaticResources()."); - } + if ((m_RootSig.GetTotalSrvCbvUavSlots(SHADER_RESOURCE_VARIABLE_TYPE_STATIC) != 0 || + m_RootSig.GetTotalRootViews(SHADER_RESOURCE_VARIABLE_TYPE_STATIC) != 0) && + !pResBindingD3D12Impl->StaticResourcesInitialized()) + { + LOG_ERROR_MESSAGE("Static resources have not been initialized in the shader resource binding object being committed for PSO '", m_Desc.Name, "'. Please call IShaderResourceBinding::InitializeStaticResources()."); + } - pResBindingD3D12Impl->dvpVerifyResourceBindings(this); + pResBindingD3D12Impl->dvpVerifyResourceBindings(this); + } #endif auto& ResourceCache = pResBindingD3D12Impl->GetResourceCache(); |
