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¶
| Name | Description |
|---|---|
| type | The type of the shader module. |
| stream | The file stream of the module. |
| name | The file name of the module. |
| entryPoint | The name of the entry point for the module. |
| shaderLocalDescriptor | The descriptor that binds shader-local data for ray-tracing shaders. |