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¶
| Name | Thrown on |
|---|---|
ArgumentNotInitializedException | Thrown, if the shader record was not initialized. |
InvalidArgumentException | Thrown, 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¶
| Name | Description |
|---|---|
| record | The shader record to add to the shader record collection. |