Diligent Engine API Reference
|
Shader 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 const ShaderDesc & | GetDesc () const =0 |
Returns the shader description. | |
virtual void | BindResources (IResourceMapping *pResourceMapping, Uint32 Flags)=0 |
Binds shader resources. More... | |
virtual IShaderVariable * | GetShaderVariable (const Char *Name)=0 |
Returns an interface to a shader variable. If the shader variable is not found, an interface to a dummy variable will be returned. 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 interface.
|
pure virtual |
Binds shader resources.
[in] | pResourceMapping | - Pointer to IResourceMapping interface to look for resources. |
[in] | Flags | - Additional flags for the operation. See Diligent::BIND_SHADER_RESOURCES_FLAGS for details. |
Implemented in Diligent::ShaderGLImpl, Diligent::ShaderD3D12Impl, and Diligent::ShaderD3D11Impl.
|
pure virtual |
Returns an interface to a shader variable. If the shader variable is not found, an interface to a dummy variable will be returned.
[in] | Name | - Name of the variable. |
Implemented in Diligent::ShaderGLImpl, Diligent::ShaderD3D12Impl, and Diligent::ShaderD3D11Impl.