Skip to content

LiteFX::Rendering::ShaderRecordCollection::addShaderRecord

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]] void addShaderRecord(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 addMeshGeometryShaderHitGroupRecord instead.

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if no shader module with the provided name was found in the parent shader program.

Parameters

NameDescription
shaderNameThe name of the shader module.