summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-01-01 04:54:15 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-01-01 04:54:15 +0000
commitf53126ac1826e12314d9a16be5ae0cf1d22b57b1 (patch)
tree87160c6c5f62f21f1f9c484cc335e20c56d2f88b /Graphics/GraphicsEngineVulkan
parentFixed 32-bit build (diff)
downloadDiligentCore-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/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
index 35ef4240..72882d7e 100644
--- a/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/PipelineStateVkImpl.cpp
@@ -898,6 +898,7 @@ void PipelineStateVkImpl::CommitAndTransitionShaderResources(IShaderResourceBind
#endif
auto* pResBindingVkImpl = ValidatedCast<ShaderResourceBindingVkImpl>(pShaderResourceBinding);
+ auto& ResourceCache = pResBindingVkImpl->GetResourceCache();
#ifdef DILIGENT_DEVELOPMENT
{
@@ -909,18 +910,17 @@ void PipelineStateVkImpl::CommitAndTransitionShaderResources(IShaderResourceBind
}
}
- if (m_HasStaticResources && !pResBindingVkImpl->StaticResourcesInitialized())
+ if (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().");
- }
-#endif
-
- auto& ResourceCache = pResBindingVkImpl->GetResourceCache();
+ if (m_HasStaticResources && !pResBindingVkImpl->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().");
+ }
-#ifdef DILIGENT_DEVELOPMENT
- for (Uint32 s = 0; s < GetNumShaderStages(); ++s)
- {
- m_ShaderResourceLayouts[s].dvpVerifyBindings(ResourceCache);
+ for (Uint32 s = 0; s < GetNumShaderStages(); ++s)
+ {
+ m_ShaderResourceLayouts[s].dvpVerifyBindings(ResourceCache);
+ }
}
#endif
#ifdef DILIGENT_DEBUG