Skip to content

LiteFX::Rendering::ShaderRecordCollection::withShaderRecord

withShaderRecord overloads

Synopses

Declared in <litefx/rendering_api.hpp>

Adds a new shader record based on the name of a shader module in the parent shader program.

[[dllimport, dllexport]] ShaderRecordCollection&& withShaderRecord(StringView shaderName);

» more...

Adds a new shader record to the shader record collection.

[[dllimport, dllexport]] ShaderRecordCollection&& withShaderRecord(ShaderRecord<>::shader_group_type shaderGroup);

» more...

Adds a new shader record based on the name of a shader module in the parent shader program.

template<typename TLocalData>
requires (std::alignment_of_v<TLocalData> == SHADER_RECORD_LOCAL_DATA_ALIGNMENT)
ShaderRecordCollection&& withShaderRecord(
    StringView shaderName,
    TLocalData payload);

» more...

Adds a new shader record to the shader record collection.

template<typename TLocalData>
requires (std::alignment_of_v<TLocalData> == SHADER_RECORD_LOCAL_DATA_ALIGNMENT)
ShaderRecordCollection&& withShaderRecord(
    ShaderRecord<TLocalData>::shader_group_type shaderGroup,
    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
shaderNameThe name of the shader module.
shaderGroupThe shader module or hit group.
payloadThe shader-local data of the shader record.