Diligent Engine API Reference
|
Template class implementing base functionality for a shader object. More...
Public Member Functions | |
ShaderBase (ShaderObjAllocator &ObjAllocator, IRenderDevice *pDevice, const ShaderDesc &ShdrDesc, bool bIsDeviceInternal=false) | |
Public Member Functions inherited from Diligent::DeviceObjectBase< BaseInterface, ShaderDesc, ShaderObjAllocator > | |
DeviceObjectBase (ShaderObjAllocator &ObjAllocator, class IRenderDevice *pDevice, const ShaderDesc &ObjDesc, IObject *pOwner=nullptr, bool bIsDeviceInternal=false) | |
UniqueIdentifier | GetUniqueID () const |
Returns unique identifier. More... | |
Protected Attributes | |
DummyShaderVariable | m_DummyShaderVar |
Dummy shader variable. | |
std::vector< ShaderVariableDesc, STDAllocatorRawMem< ShaderVariableDesc > > | m_VariablesDesc |
Shader variable descriptions. | |
std::vector< String, STDAllocatorRawMem< String > > | m_StringPool |
String pool that is used to hold copies of variable names and static sampler names. | |
std::vector< StaticSamplerDesc, STDAllocatorRawMem< StaticSamplerDesc > > | m_StaticSamplers |
Static sampler descriptions. | |
Protected Attributes inherited from Diligent::DeviceObjectBase< BaseInterface, ShaderDesc, ShaderObjAllocator > | |
const String | m_ObjectNameCopy |
Copy of a device object name. More... | |
ShaderDesc | m_Desc |
Object description. | |
Template class implementing base functionality for a shader object.
BaseInterface | - base interface that this class will inheret (Diligent::IShaderD3D11, Diligent::IShaderD3D12 or Diligent::IShaderGL). |
RenderDeviceBaseInterface | - base interface for the render device (Diligent::IRenderDeviceD3D11, Diligent::IRenderDeviceD3D12, Diligent::IRenderDeviceGL, or Diligent::IRenderDeviceGLES). |
ShaderObjAllocator | - type of the allocator that is used to allocate memory for the shader object instances |
|
inline |
ObjAllocator | - allocator that was used to allocate memory for this instance of the shader object |
pDevice | - pointer to the device. |
ShdrDesc | - shader description. |
bIsDeviceInternal | - flag indicating if the shader is an internal device object and must not keep a strong reference to the device. |