Skip to content

LiteFX::Rendering::DeviceState::indexBuffer

Returns an index buffer from the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] IIndexBuffer& indexBuffer(String const& id) const;

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if no index buffer has been added for the provided id.

Return Value

A reference of the index buffer.

Parameters

NameDescription
idThe identifier associated with the index buffer.