Skip to content

LiteFX::Rendering::Backends::VulkanShaderProgramBuilder::withShaderModule

Adds a shader module to the program.

Synopsis

Declared in <litefx/rendering_builders.hpp>

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

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
typeThe type of the shader module.
streamThe file stream of the module.
nameThe 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.