From c985d342626ba289fc2db833ba482f3a40ae05b5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 28 Jun 2018 08:08:46 -0700 Subject: Unified implementation of IPipelineState::BindShaderResources() --- Graphics/GraphicsEngine/include/PipelineStateBase.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Graphics/GraphicsEngine') 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(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 > m_LayoutElements; -- cgit v1.2.3