Diligent Engine API Reference
|
Shader resource binding interface. More...
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 IPipelineState * | GetPipelineState ()=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 IShaderVariable * | GetVariable (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 IReferenceCounters * | GetReferenceCounters () 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. | |
Shader resource binding interface.
|
pure virtual |
Binds all resource using the resource mapping.
[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.
|
pure virtual |
Returns pointer to the referenced buffer object.
The method calls AddRef() on the returned interface, so Release() must be called to avoid memory leaks.
Implemented in Diligent::ShaderResourceBindingBase< IShaderResourceBindingD3D12, FixedBlockMemoryAllocator >, Diligent::ShaderResourceBindingBase< IShaderResourceBindingD3D11, FixedBlockMemoryAllocator >, and Diligent::ShaderResourceBindingBase< IShaderResourceBindingGL, FixedBlockMemoryAllocator >.
|
pure virtual |
Returns variable.
[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.