Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new render pass to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] void add(
    String const& id,
    SharedPtr<IRenderPass>&& renderPass);

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another render pass with the same id has already been added.

Parameters

NameDescription
idThe identifier for the render pass.
renderPassThe render pass to add to the device state.