Skip to content

LiteFX::Rendering::Backends::DirectX12ShaderModule

Implements a DirectX 12 IShaderModule.

Synopsis

Declared in <litefx/backends/dx12.hpp>

class [[dllimport, dllexport]] DirectX12ShaderModule final
    : public IShaderModule
    , public ComResource<IDxcBlob>

Base Classes

NameDescription
IShaderModuleRepresents a single shader module, i.e. a part of a IShaderProgram.
ComResource<IDxcBlob>A resource that is hold by a ComPtr.

Type Aliases

Member Functions

NameDescription
DirectX12ShaderModule [constructor] [deleted]Copy constructor
DirectX12ShaderModule [constructor]Move constructor
DirectX12ShaderModule [constructor]Initializes a new DirectX 12 shader module.
DirectX12ShaderModule [constructor]Initializes a new DirectX 12 shader module.
~DirectX12ShaderModule [destructor] [virtual]Destructor
operator= [deleted]Copy assignment operator
operator= Move assignment operator
entryPoint [virtual]Returns the name of the shader module entry point.
fileName [virtual]Returns the file name of the shader module.
handle [virtual]Returns the resource managed by the class.
shaderLocalDescriptor [virtual]For ray-tracing shader modules returns the binding point for the descriptor that receives shader-local data.
type [virtual]Returns the type of the shader module.

Protected Member Functions

NameDescription
operator= Copy assignment operator
operator= Move assignment operator
operator= [deleted]Assignment operator
operator= Assignment operator
handle [virtual]Returns the resource managed by the class.

Friends

NameDescription
LiteFX::Rendering::Backends::DirectX12ShaderModule::DirectX12ShaderModuleImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.

See Also

DirectX12ShaderProgram

https://github.com/crud89/LiteFX/wiki/Shader-Development