LiteFX::Rendering::ICommandBuffer::draw¶
Draws a number of vertices from the currently bound vertex buffer.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual void draw(
UInt32 vertices,
UInt32 instances = 1,
UInt32 firstVertex = 0,
UInt32 firstInstance = 0) const noexcept = 0;
Parameters¶
| Name | Description |
|---|---|
| vertices | The number of vertices to draw. |
| instances | The number of instances to draw. |
| firstVertex | The index of the first vertex to start drawing from. |
| firstInstance | The index of the first instance to draw. |
See Also¶
drawIndirect