LiteFX::Rendering::DeviceState::add¶
Adds a new render pass to the device state and uses its name as identifier.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void add(SharedPtr<IRenderPass>&& renderPass);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another render pass with the same identifier has already been added. |
Parameters¶
| Name | Description |
|---|---|
| renderPass | The render pass to add to the device state. |