Diligent Engine API Reference
|
Template class implementing base functionality for a shader object. More...
Public Member Functions | |
ShaderBase (IReferenceCounters *pRefCounters, IRenderDevice *pDevice, const ShaderDesc &ShdrDesc, bool bIsDeviceInternal=false) | |
![]() | |
DeviceObjectBase (IReferenceCounters *pRefCounters, IRenderDevice *pDevice, const ShaderDesc &ObjDesc, 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. | |
![]() | |
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). |
|
inline |
pRefCounters | - reference counters object that controls the lifetime of this shader. |
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. |