VKVERTEXINPUTBINDING(3)

NAME
VkVertexInputBindingDescription - Structure specifying vertex input binding description

C SPECIFICATION

The VkVertexInputBindingDescription structure is defined as:

    typedef struct VkVertexInputBindingDescription {
        uint32_t             binding;
        uint32_t             stride;
        VkVertexInputRate    inputRate;
    } VkVertexInputBindingDescription;

MEMBERS

    • binding is the binding number that this structure describes.

    • stride is the distance in bytes between two consecutive elements within the buffer.

    • inputRate specifies whether vertex attribute addressing is a function of the vertex index or of the instance index. Possible values include:

        typedef enum VkVertexInputRate {
            VK_VERTEX_INPUT_RATE_VERTEX = 0,
            VK_VERTEX_INPUT_RATE_INSTANCE = 1,
        } VkVertexInputRate;

        • VK_VERTEX_INPUT_RATE_VERTEX indicates that vertex attribute addressing is a function of the vertex index.

        • VK_VERTEX_INPUT_RATE_INSTANCE indicates that vertex attribute addressing is a function of the instance index.

DESCRIPTION
Valid Usage

    • binding must be less than VkPhysicalDeviceLimits::maxVertexInputBindings

    • stride must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputBindingStride
Valid Usage (Implicit)

    • inputRate must be a valid VkVertexInputRate value

SEE ALSO

VkPipelineVertexInputStateCreateInfo, VkVertexInputRate

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

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

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.