VKDRAWINDEXEDINDIREC(3)

NAME
VkDrawIndexedIndirectCommand - Structure specifying a draw indexed indirect command

C SPECIFICATION

The VkDrawIndexedIndirectCommand structure is defined as:

    typedef struct VkDrawIndexedIndirectCommand {
        uint32_t    indexCount;
        uint32_t    instanceCount;
        uint32_t    firstIndex;
        int32_t     vertexOffset;
        uint32_t    firstInstance;
    } VkDrawIndexedIndirectCommand;

MEMBERS

    • indexCount is the number of vertices to draw.

    • instanceCount is the number of instances to draw.

    • firstIndex is the base index within the index buffer.

    • vertexOffset is the value added to the vertex index before indexing into the vertex buffer.

    • firstInstance is the instance ID of the first instance to draw.

DESCRIPTION

The members of VkDrawIndexedIndirectCommand have the same meaning as the similarly named parameters of vkCmdDrawIndexed.

VALID USAGE

    • For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in ???

    • (indexSize * (firstIndex + indexCount) + offset) must be less than or equal to the size of the currently bound index buffer, with indexSize being based on the type specified by indexType, where the index buffer, indexType, and offset are specified via vkCmdBindIndexBuffer

    • If the drawIndirectFirstInstance feature is not enabled, firstInstance must be 0

SEE ALSO

vkCmdDrawIndexedIndirect

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkDrawIndexedIndirectCommand

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.