LiteFX::Rendering::CommandBuffer::draw¶
draw overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Draws a number of vertices from the currently bound vertex buffer.
[[dllimport, dllexport]] virtual void draw(
UInt32 vertices,
UInt32 instances = 1,
UInt32 firstVertex = 0,
UInt32 firstInstance = 0) const noexcept = 0;
Draws all vertices from the vertex buffer provided in vertexBuffer.
[[dllimport, dllexport]] void draw(
IVertexBuffer const& vertexBuffer,
UInt32 instances = 1,
UInt32 firstVertex = 0,
UInt32 firstInstance = 0) const;
Draws all vertices from the vertex buffer provided in vertexBuffer.
virtual void draw(
vertex_buffer_type const& vertexBuffer,
UInt32 instances = 1,
UInt32 firstVertex = 0,
UInt32 firstInstance = 0) const;
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. |
| vertexBuffer | The vertex buffer to draw from. |
See Also¶
drawIndirect