Skip to content

LiteFX::Rendering::Backends::VulkanCommandBuffer::drawIndexed

drawIndexed overloads

Synopses

Declared in <litefx/backends/vulkan.hpp>

Draws the currently bound vertex buffer with a set of indices from the currently bound index buffer.

[[dllimport, dllexport]] virtual void drawIndexed(
    UInt32 indices,
    UInt32 instances = 1,
    UInt32 firstIndex = 0,
    Int32 vertexOffset = 0,
    UInt32 firstInstance = 0) const noexcept override;

» more...

Draws the currently bound vertex buffer with a set of indices from the currently bound index buffer.

[[dllimport, dllexport]] virtual void drawIndexed(
    index_buffer_type const& indexBuffer,
    UInt32 instances = 1,
    UInt32 firstIndex = 0,
    Int32 vertexOffset = 0,
    UInt32 firstInstance = 0) const;

» more...

Draws the vertex buffer provided by vertexBuffer using the index buffer, provided by indexBuffer.

[[dllimport, dllexport]] virtual void drawIndexed(
    vertex_buffer_type const& vertexBuffer,
    index_buffer_type const& indexBuffer,
    UInt32 instances = 1,
    UInt32 firstIndex = 0,
    Int32 vertexOffset = 0,
    UInt32 firstInstance = 0) const;

» more...

Parameters

NameDescription
indicesThe number of indices to draw.
instancesThe number of instances to draw.
firstIndexThe index of the first element of the index buffer to start drawing from.
vertexOffsetThe offset added to each index to find the corresponding vertex.
firstInstanceThe index of the first instance to draw.
vertexBufferThe vertex buffer to draw from.
indexBufferThe index buffer to draw with.

See Also

drawIndexedIndirect