Skip to content

LiteFX::Rendering::Backends::VulkanShaderProgramBuilder::withAnyHitShaderModule

Adds an any hit shader module to the program.

Synopses

Declared in <litefx/rendering_builders.hpp>

Adds an any hit shader module to the program.

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withAnyHitShaderModule(this 
    TSelf&& self,
    String const& fileName,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor = std::nullopt,
    String const& entryPoint = "main");

» more...

Adds an any hit shader module to the program.

template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withAnyHitShaderModule(this 
    TSelf&& self,
    std::istream& stream,
    String const& name,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor = std::nullopt,
    String const& entryPoint = "main");

» more...

Return Value

Note

The return value should not be discarded.

Parameters

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