Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new buffer to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Exceptions

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

Parameters

NameDescription
idThe identifier for the buffer.
bufferThe buffer to add to the device state.