VKVERTEXINPUTATTRIBU(3)

NAME
VkVertexInputAttributeDescription - Structure specifying vertex input attribute description

C SPECIFICATION

The VkVertexInputAttributeDescription structure is defined as:

    typedef struct VkVertexInputAttributeDescription {
        uint32_t    location;
        uint32_t    binding;
        VkFormat    format;
        uint32_t    offset;
    } VkVertexInputAttributeDescription;

MEMBERS

    • location is the shader binding location number for this attribute.

    • binding is the binding number which this attribute takes its data from.

    • format is the size and type of the vertex attribute data.

    • offset is a byte offset of this attribute relative to the start of an element in the vertex input binding.

DESCRIPTION

VALID USAGE

    • format must be a valid VkFormat value

    • location must be less than VkPhysicalDeviceLimits::maxVertexInputAttributes

    • binding must be less than VkPhysicalDeviceLimits::maxVertexInputBindings

    • offset must be less than or equal to VkPhysicalDeviceLimits::maxVertexInputAttributeOffset

    • format must be allowed as a vertex buffer format, as specified by the VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT flag in VkFormatProperties::bufferFeatures returned by vkGetPhysicalDeviceFormatProperties

SEE ALSO

VkFormat, VkPipelineVertexInputStateCreateInfo

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

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

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.