diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-06-28 15:08:46 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-06-28 15:08:46 +0000 |
| commit | c985d342626ba289fc2db833ba482f3a40ae05b5 (patch) | |
| tree | dc14bd3eaeca7bdbf6169c5d85620adbe22722e6 /Graphics/GraphicsEngine | |
| parent | Only creating default SRB if pipeline state has static and no other resources... (diff) | |
| download | DiligentCore-c985d342626ba289fc2db833ba482f3a40ae05b5.tar.gz DiligentCore-c985d342626ba289fc2db833ba482f3a40ae05b5.zip | |
Unified implementation of IPipelineState::BindShaderResources()
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/PipelineStateBase.h | 6 |
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; |
