LiteFX::Rendering::ShaderRecordCollection::addMeshGeometryShaderHitGroupRecord¶
Adds a new mesh geometry hit group record based on names of the shader modules.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void addMeshGeometryShaderHitGroupRecord(
std::optional<StringView> anyHitShaderName,
std::optional<StringView> closestHitShaderName);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if both provided shader names are empty or not found, the shaders are not of the right type or do not belong to the parent shader program. |
Parameters¶
| Name | Description |
|---|---|
| anyHitShaderName | The name of the any hit shader module. |
| closestHitShaderName | The name of the closest hit shader module. |