Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::IShaderResourceBinding Class Referenceabstract

Shader resource binding interface. More...

Inheritance diagram for Diligent::IShaderResourceBinding:
Diligent::IObject Diligent::IShaderResourceBindingD3D11 Diligent::IShaderResourceBindingD3D12 Diligent::IShaderResourceBindingGL Diligent::RefCountedObject< IShaderResourceBindingD3D11, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IShaderResourceBindingD3D12, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IShaderResourceBindingGL, FixedBlockMemoryAllocator > Diligent::ObjectBase< IShaderResourceBindingD3D11, FixedBlockMemoryAllocator > Diligent::ObjectBase< IShaderResourceBindingD3D12, FixedBlockMemoryAllocator > Diligent::ObjectBase< IShaderResourceBindingGL, FixedBlockMemoryAllocator > Diligent::ShaderResourceBindingBase< IShaderResourceBindingD3D11, FixedBlockMemoryAllocator > Diligent::ShaderResourceBindingBase< IShaderResourceBindingD3D12, FixedBlockMemoryAllocator > Diligent::ShaderResourceBindingBase< IShaderResourceBindingGL, FixedBlockMemoryAllocator > Diligent::ShaderResourceBindingD3D11Impl Diligent::ShaderResourceBindingD3D12Impl Diligent::ShaderResourceBindingGLImpl

Public Member Functions

virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface, see IObject::QueryInterface() for details.
 
virtual class IPipelineStateGetPipelineState ()=0
 Returns pointer to the referenced buffer object. More...
 
virtual void BindResources (Uint32 ShaderFlags, IResourceMapping *pResMapping, Uint32 Flags)=0
 Binds all resource using the resource mapping. More...
 
virtual IShaderVariableGetVariable (SHADER_TYPE ShaderType, const char *Name)=0
 Returns variable. More...
 
- Public Member Functions inherited from Diligent::IObject
virtual Atomics::Long AddRef ()=0
 Increments the number of strong references by 1. More...
 
virtual Atomics::Long Release ()=0
 Decrements the number of strong references by 1 and destroys the object when the counter reaches zero. More...
 
virtual IReferenceCountersGetReferenceCounters () const =0
 Returns the pointer to IReferenceCounters interface of the associated reference counters object. The metod does NOT increment the number of strong references to the returned object.
 

Detailed Description

Shader resource binding interface.

Member Function Documentation

virtual void Diligent::IShaderResourceBinding::BindResources ( Uint32  ShaderFlags,
IResourceMapping pResMapping,
Uint32  Flags 
)
pure virtual

Binds all resource using the resource mapping.

Parameters
[in]ShaderFlags- Flags for the shader stages, for which resources will be bound. Any combination of Diligent::SHADER_TYPE may be specified.
[in]pResMapping- Shader resource mapping, where required resources will be looked up
[in]Flags- Additional flags. See Diligent::BIND_SHADER_RESOURCES_FLAGS.

Implemented in Diligent::ShaderResourceBindingD3D11Impl, Diligent::ShaderResourceBindingD3D12Impl, and Diligent::ShaderResourceBindingGLImpl.

virtual class IPipelineState* Diligent::IShaderResourceBinding::GetPipelineState ( )
pure virtual
virtual IShaderVariable* Diligent::IShaderResourceBinding::GetVariable ( SHADER_TYPE  ShaderType,
const char *  Name 
)
pure virtual

Returns variable.

Parameters
[in]ShaderType- Type of the shader to look up the variable. Must be one of Diligent::SHADER_TYPE.
Name- Variable name

Implemented in Diligent::ShaderResourceBindingD3D11Impl, Diligent::ShaderResourceBindingD3D12Impl, and Diligent::ShaderResourceBindingGLImpl.