LiteFX::Rendering::ICommandBuffer::drawIndexed¶
drawIndexed overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Draws the currently bound vertex buffer with a set of indices from the currently bound index buffer.
[[dllimport, dllexport]] virtual void drawIndexed(
UInt32 indices,
UInt32 instances = 1,
UInt32 firstIndex = 0,
Int32 vertexOffset = 0,
UInt32 firstInstance = 0) const noexcept = 0;
Draws the currently bound vertex buffer using the index buffer provided in indexBuffer.
[[dllimport, dllexport]] void drawIndexed(
IIndexBuffer const& indexBuffer,
UInt32 instances = 1,
UInt32 firstIndex = 0,
Int32 vertexOffset = 0,
UInt32 firstInstance = 0) const;
Draws the vertex buffer provided by vertexBuffer using the index buffer, provided by indexBuffer.
[[dllimport, dllexport]] void drawIndexed(
IVertexBuffer const& vertexBuffer,
IIndexBuffer const& indexBuffer,
UInt32 instances = 1,
UInt32 firstIndex = 0,
Int32 vertexOffset = 0,
UInt32 firstInstance = 0) const;
Parameters¶
| Name | Description |
|---|---|
| indices | The number of indices to draw. |
| instances | The number of instances to draw. |
| firstIndex | The index of the first element of the index buffer to start drawing from. |
| vertexOffset | The offset added to each index to find the corresponding vertex. |
| firstInstance | The index of the first instance to draw. |
| indexBuffer | The index buffer to draw with. |
| vertexBuffer | The vertex buffer to draw from. |
See Also¶
drawIndexedIndirect