LiteFX::Rendering::ShaderProgramBuilder::makeShaderModule¶
Called to create a new shader module in the program that is loaded from a stream.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
constexpr virtual UniquePtr<shader_module_type> makeShaderModule(
ShaderStage type,
std::istream& stream,
String const& name,
String const& entryPoint,
Optional<DescriptorBindingPoint> const& shaderLocalDescriptor) = 0;
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. |