Skip to content

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

NameDescription
verticesThe number of vertices to draw.
instancesThe number of instances to draw.
firstVertexThe index of the first vertex to start drawing from.
firstInstanceThe index of the first instance to draw.

See Also

drawIndirect