Skip to content

LiteFX::Rendering::ShaderRecordCollection::addShaderRecord

Adds a new shader record to the shader record collection.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void addShaderRecord(UniquePtr<IShaderRecord const>&& record);

Exceptions

NameThrown on
ArgumentNotInitializedExceptionThrown, if the shader record was not initialized.
InvalidArgumentExceptionThrown, if the shader module(s) within the shader record are of invalid type, or the parent shader program does not contain the shader module(s).

Parameters

NameDescription
recordThe shader record to add to the shader record collection.