Skip to content

LiteFX::Rendering::Backends::VulkanShaderProgramBuilder::withCallableShaderModule

Adds a callable shader module to the program.

Synopsis

Declared in <litefx/rendering_builders.hpp>

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

Description

This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.

Return Value

Note

The return value should not be discarded.

Parameters

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