29 #include "ShaderResourceBindingD3D11.h" 30 #include "RenderDeviceD3D11.h" 31 #include "ShaderResourceBindingBase.h" 32 #include "ShaderResourceCacheD3D11.h" 33 #include "ShaderResourceLayoutD3D11.h" 34 #include "STDAllocator.h" 39 class FixedBlockMemoryAllocator;
48 virtual void QueryInterface(
const Diligent::INTERFACE_ID &IID, IObject **ppInterface )
override final;
54 ShaderResourceCacheD3D11 &GetResourceCache(Uint32 Ind){VERIFY_EXPR(Ind < m_NumActiveShaders);
return m_pBoundResourceCaches[Ind];}
55 ShaderResourceLayoutD3D11 &GetResourceLayout(Uint32 Ind){VERIFY_EXPR(Ind < m_NumActiveShaders);
return m_pResourceLayouts[Ind];}
57 void BindStaticShaderResources();
58 inline bool IsStaticResourcesBound(){
return m_bIsStaticResourcesBound;}
60 Uint32 GetNumActiveShaders()
62 return static_cast<Uint32
>(m_NumActiveShaders);
65 Int32 GetActiveShaderTypeIndex(Uint32 s){
return m_ShaderTypeIndex[s];}
72 Int8 m_ShaderTypeIndex[6] = {};
75 Int8 m_ResourceLayoutIndex[6];
76 Uint8 m_NumActiveShaders = 0;
78 bool m_bIsStaticResourcesBound =
false;
Shader resource variable.
Definition: Shader.h:265
The class implements a cache that holds resources bound to a specific shader stage.
Definition: ShaderResourceCacheD3D11.h:46
SHADER_TYPE
Describes the shader type.
Definition: Shader.h:46
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
Resouce mapping.
Definition: ResourceMapping.h:80
virtual void BindResources(Uint32 ShaderFlags, IResourceMapping *pResMapping, Uint32 Flags) override final
Binds all resource using the resource mapping.
Definition: ShaderResourceBindingD3D11Impl.cpp:103
Implementation of the Diligent::IShaderResourceBindingD3D11 interface.
Definition: ShaderResourceBindingD3D11Impl.h:41
Template class implementing base functionality for a shader resource binding.
Definition: ShaderResourceBindingBase.h:42
Implementation of the Diligent::IPipelineStateD3D11 interface.
Definition: PipelineStateD3D11Impl.h:40
Diligent::ShaderResourceLayoutD3D11 class http://diligentgraphics.com/diligent-engine/architecture/d3...
Definition: ShaderResourceLayoutD3D11.h:49
virtual IShaderVariable * GetVariable(SHADER_TYPE ShaderType, const char *Name) override final
Returns variable.
Definition: ShaderResourceBindingD3D11Impl.cpp:146