Skip to content

LiteFX::Rendering::Backends::DirectX12ShaderProgramBuilder::makeShaderModule

makeShaderModule overloads

Synopses

Declared in <litefx/backends/dx12_builders.hpp>

Called to create a new shader module in the program that is stored in a file.

[[dllexport]] virtual UniquePtr<DirectX12ShaderModule> makeShaderModule(
    ShaderStage type,
    String const& fileName,
    String const& entryPoint,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor) override;

» more...

Called to create a new shader module in the program that is loaded from a stream.

[[dllexport]] virtual UniquePtr<DirectX12ShaderModule> makeShaderModule(
    ShaderStage type,
    std::istream& stream,
    String const& name,
    String const& entryPoint,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor) override;

» more...

Return Value

The shader module instance.

Parameters

NameDescription
typeThe type of the shader module.
fileNameThe file name of the module.
entryPointThe name of the entry point for the module.
shaderLocalDescriptorThe descriptor that binds shader-local data for ray-tracing shaders.
streamThe file stream of the module.
nameThe file name of the module.