Skip to content

LiteFX::Rendering::Backends::VulkanShaderProgramBuilder::makeShaderModule

Called to create a new shader module in the program that is loaded from a stream.

Synopsis

Declared in <litefx/backends/vulkan_builders.hpp>

[[dllexport]] virtual UniquePtr<VulkanShaderModule> makeShaderModule(
    ShaderStage type,
    std::istream& stream,
    String const& name,
    String const& entryPoint,
    Optional<DescriptorBindingPoint> const& shaderLocalDescriptor) override;

Return Value

The shader module instance.

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.