LiteFX::Rendering::DeviceState::add¶
Adds a new vertex buffer to the device state.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void add(
String const& id,
SharedPtr<IVertexBuffer>&& vertexBuffer);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another vertex buffer with the same id has already been added. |
Parameters¶
| Name | Description |
|---|---|
| id | The identifier for the vertex buffer. |
| vertexBuffer | The vertex buffer to add to the device state. |