Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new frame buffer to the device state and uses its name as identifier.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Exceptions

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

Parameters

NameDescription
frameBufferThe render pass to add to the device state.