Skip to content

LiteFX::Rendering::Backends::DirectX12ShaderModule::DirectX12ShaderModule

Initializes a new DirectX 12 shader module.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] explicit DirectX12ShaderModule(
    DirectX12Device const& device,
    ShaderStage type,
    String const& fileName,
    String const& entryPoint = "main",
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor = std::nullopt);

Parameters

NameDescription
deviceThe parent device, this shader module has been created from.
typeThe shader stage, this module is used in.
fileNameThe file name of the module source.
entryPointThe name of the module entry point.
shaderLocalDescriptorThe descriptor that binds shader-local data for ray-tracing shaders.