Skip to content

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

NameThrown on
InvalidArgumentExceptionThrown, 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

NameDescription
anyHitShaderNameThe name of the any hit shader module.
closestHitShaderNameThe name of the closest hit shader module.