LiteFX::Rendering::DeviceState::add¶
Adds a new index buffer to the device state and uses its name as identifier.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] void add(SharedPtr<IIndexBuffer>&& indexBuffer);
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if another index buffer with the same identifier has already been added. |
Parameters¶
| Name | Description |
|---|---|
| indexBuffer | The index buffer to add to the device state. |