Skip to content

LiteFX::Rendering::ShaderRecordCollection::withMeshGeometryHitGroupRecord

Adds a new mesh geometry hit group record based on names of the shader modules.

Synopses

Declared in <litefx/rendering_api.hpp>

Adds a new mesh geometry hit group record based on names of the shader modules.

[[dllimport, dllexport]] ShaderRecordCollection&& withMeshGeometryHitGroupRecord(
    std::optional<StringView> anyHitShaderName,
    std::optional<StringView> closestHitShaderName);

» more...

Adds a new mesh geometry hit group record based on names of the shader modules.

template<typename TLocalData>
requires (std::alignment_of_v<TLocalData> == SHADER_RECORD_LOCAL_DATA_ALIGNMENT)
ShaderRecordCollection&& withMeshGeometryHitGroupRecord(
    std::optional<StringView> anyHitShaderName,
    std::optional<StringView> closestHitShaderName,
    TLocalData payload);

» more...

Return Value

A reference to the current shader record collection.

Template Parameters

NameDescription
TLocalDataThe type of the shader record local data.

Parameters

NameDescription
anyHitShaderNameThe name of the any hit shader module.
closestHitShaderNameThe name of the closest hit shader module.
payloadThe shader-local data of the shader record.