Skip to content

LiteFX::Rendering::ShaderRecordCollection::addShaderRecord

Adds a new shader record to the shader record collection.

Synopsis

Declared in <litefx/rendering_api.hpp>

template<typename TLocalData>
requires (std::alignment_of_v<TLocalData> == SHADER_RECORD_LOCAL_DATA_ALIGNMENT)
void addShaderRecord(
    ShaderRecord<TLocalData>::shader_group_type shaderGroup,
    TLocalData payload);

Template Parameters

NameDescription
TLocalDataThe type of the shader record local data.

Parameters

NameDescription
shaderGroupThe shader module or hit group.
payloadThe shader-local data of the shader record.