Skip to content

LiteFX::Rendering::ShaderRecordCollection::withShaderRecord

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

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Description

Note that this will create a new shader record for every invocation. If you want to create a shader record with a mesh geometry hit group with containing both, an any and closest hit shader, use withMeshGeometryHitGroupRecord instead.

Return Value

A reference to the current shader record collection.

Parameters

NameDescription
shaderNameThe name of the shader module.