Skip to content

LiteFX::Rendering::DeviceState::buffer

Returns a buffer from the device state.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] IBuffer& buffer(String const& id) const;

Exceptions

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

Return Value

A reference of the buffer.

Parameters

NameDescription
idThe identifier associated with the buffer.