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

Implementation of the Diligent::IShaderD3D12 interface. More...

Inheritance diagram for Diligent::ShaderD3D12Impl:
Diligent::ShaderBase< IShaderD3D12, IRenderDeviceD3D12, FixedBlockMemoryAllocator > Diligent::DeviceObjectBase< IShaderD3D12, ShaderDesc, FixedBlockMemoryAllocator > Diligent::ObjectBase< IShaderD3D12, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IShaderD3D12, FixedBlockMemoryAllocator > Diligent::IShaderD3D12 Diligent::IShader Diligent::IDeviceObject Diligent::IObject

Public Member Functions

virtual void BindResources (IResourceMapping *pResourceMapping, Uint32 Flags) override
 Binds shader resources. More...
 
virtual IShaderVariableGetShaderVariable (const Char *Name) override
 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::ShaderBase< IShaderD3D12, IRenderDeviceD3D12, FixedBlockMemoryAllocator >
 ShaderBase (FixedBlockMemoryAllocator &ObjAllocator, IRenderDevice *pDevice, const ShaderDesc &ShdrDesc, bool bIsDeviceInternal=false)
 
- Public Member Functions inherited from Diligent::DeviceObjectBase< IShaderD3D12, ShaderDesc, FixedBlockMemoryAllocator >
 DeviceObjectBase (FixedBlockMemoryAllocator &ObjAllocator, class IRenderDevice *pDevice, const ShaderDesc &ObjDesc, IObject *pOwner=nullptr, bool bIsDeviceInternal=false)
 
virtual const ShaderDescGetDesc () const override final
 
UniqueIdentifier GetUniqueID () const
 Returns unique identifier. More...
 
- Public Member Functions inherited from Diligent::ObjectBase< IShaderD3D12, FixedBlockMemoryAllocator >
virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)
 
- Public Member Functions inherited from Diligent::RefCountedObject< IShaderD3D12, FixedBlockMemoryAllocator >
virtual IReferenceCountersGetReferenceCounters () const override final
 
virtual Atomics::Long AddRef () override
 
virtual Atomics::Long Release () override
 

Additional Inherited Members

- Protected Attributes inherited from Diligent::ShaderBase< IShaderD3D12, IRenderDeviceD3D12, FixedBlockMemoryAllocator >
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< IShaderD3D12, ShaderDesc, FixedBlockMemoryAllocator >
const String m_ObjectNameCopy
 Copy of a device object name. More...
 
ShaderDesc m_Desc
 Object description.
 

Detailed Description

Implementation of the Diligent::IShaderD3D12 interface.

Member Function Documentation

void Diligent::ShaderD3D12Impl::BindResources ( IResourceMapping pResourceMapping,
Uint32  Flags 
)
overridevirtual

Binds shader resources.

Parameters
[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.
Remarks
The shader will keep strong references to all resources bound to it.

Implements Diligent::IShader.

IShaderVariable * Diligent::ShaderD3D12Impl::GetShaderVariable ( const Char *  Name)
overridevirtual

Returns an interface to a shader variable. If the shader variable is not found, an interface to a dummy variable will be returned.

Parameters
[in]Name- Name of the variable.
Remarks
The method does not increment the reference counter of the returned interface.

Implements Diligent::IShader.