Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new frame buffer to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if another frame buffer with the same id has already been added.

Parameters

NameDescription
idThe identifier for the frame buffer.
frameBufferThe frame buffer to add to the device state.