Skip to content

LiteFX::Rendering::ShaderProgramBuilder::makeShaderModule

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

Synopsis

Declared in <litefx/rendering_builders.hpp>

constexpr virtual UniquePtr<shader_module_type> makeShaderModule(
    ShaderStage type,
    String const& fileName,
    String const& entryPoint,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor) = 0;

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.