LiteFX::Rendering::ShaderRecordCollection::withMeshGeometryHitGroupRecord¶
Adds a new mesh geometry hit group record based on names of the shader modules.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] ShaderRecordCollection&& withMeshGeometryHitGroupRecord(
std::optional<StringView> anyHitShaderName,
std::optional<StringView> closestHitShaderName);
Return Value¶
A reference to the current shader record collection.
Parameters¶
| Name | Description |
|---|---|
| anyHitShaderName | The name of the any hit shader module. |
| closestHitShaderName | The name of the closest hit shader module. |