Skip to content

LiteFX::Rendering::DeviceState::add

Adds a new index buffer to the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

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

Exceptions

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

Parameters

NameDescription
idThe identifier for the index buffer.
indexBufferThe index buffer to add to the device state.