summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-06-28 15:08:46 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-06-28 15:08:46 +0000
commitc985d342626ba289fc2db833ba482f3a40ae05b5 (patch)
treedc14bd3eaeca7bdbf6169c5d85620adbe22722e6 /Graphics/GraphicsEngine
parentOnly creating default SRB if pipeline state has static and no other resources... (diff)
downloadDiligentCore-c985d342626ba289fc2db833ba482f3a40ae05b5.tar.gz
DiligentCore-c985d342626ba289fc2db833ba482f3a40ae05b5.zip
Unified implementation of IPipelineState::BindShaderResources()
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/PipelineStateBase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.h b/Graphics/GraphicsEngine/include/PipelineStateBase.h
index 80813fba..5496e01d 100644
--- a/Graphics/GraphicsEngine/include/PipelineStateBase.h
+++ b/Graphics/GraphicsEngine/include/PipelineStateBase.h
@@ -226,6 +226,12 @@ public:
return m_ShaderResourceLayoutHash != ValidatedCast<PipelineStateBase>(pPSO)->m_ShaderResourceLayoutHash;
}
+ virtual void BindShaderResources( IResourceMapping *pResourceMapping, Uint32 Flags )override
+ {
+ for(Uint32 s=0; s < m_NumShaders; ++s)
+ m_ppShaders[s]->BindResources(pResourceMapping, Flags);
+ }
+
protected:
std::vector<LayoutElement, STDAllocatorRawMem<LayoutElement> > m_LayoutElements;