LiteFX::Rendering::Backends::DirectX12CommandBuffer::drawIndexed¶
Draws the currently bound vertex buffer with a set of indices from the currently bound index buffer.
Synopsis¶
Declared in <litefx/rendering.hpp>
[[dllimport, dllexport]] virtual void drawIndexed(
index_buffer_type const& indexBuffer,
UInt32 instances = 1,
UInt32 firstIndex = 0,
Int32 vertexOffset = 0,
UInt32 firstInstance = 0) const;
Parameters¶
| Name | Description |
|---|---|
| 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. |
See Also¶
drawIndexedIndirect