Skip to content

LiteFX::Rendering::Backends::VulkanCommandBuffer::draw

draw overloads

Synopses

Declared in <litefx/backends/vulkan.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 override;

» more...

Draws all vertices from the vertex buffer provided in vertexBuffer.

[[dllimport, dllexport]] virtual void draw(
    vertex_buffer_type const& vertexBuffer,
    UInt32 instances = 1,
    UInt32 firstVertex = 0,
    UInt32 firstInstance = 0) const;

» more...

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.
vertexBufferThe vertex buffer to draw from.

See Also

drawIndirect