LiteFX::Rendering::ShaderProgramBuilder::withAnyHitShaderModule¶
Adds an any hit shader module to the program.
Synopsis¶
Declared in <litefx/rendering_builders.hpp>
template<typename TSelf>
[[nodiscard]] constexpr TSelf&& withAnyHitShaderModule(this
TSelf&& self,
String const& fileName,
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¶
| Name | Description |
|---|---|
| fileName | The file name of the module. |
| shaderLocalDescriptor | The descriptor that binds shader-local data. |
| entryPoint | The name of the entry point for the module. |