VkPipelineVertexInputStateCreateInfo
The VkPipelineVertexInputStateCreateInfo structure is defined as:
typedef struct VkPipelineVertexInputStateCreateInfo {
VkStructureType sType;
const void* pNext;
VkPipelineVertexInputStateCreateFlags flags;
uint32_t vertexBindingDescriptionCount;
const VkVertexInputBindingDescription* pVertexBindingDescriptions;
uint32_t vertexAttributeDescriptionCount;
const VkVertexInputAttributeDescription* pVertexAttributeDescriptions;
} VkPipelineVertexInputStateCreateInfo;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.flagsis reserved for future use.vertexBindingDescriptionCountis the number of vertex binding descriptions provided inpVertexBindingDescriptions.pVertexBindingDescriptionsis a pointer to an array of VkVertexInputBindingDescription structures.vertexAttributeDescriptionCountis the number of vertex attribute descriptions provided inpVertexAttributeDescriptions.pVertexAttributeDescriptionsis a pointer to an array of VkVertexInputAttributeDescription structures.
Valid Usage
VUID-VkPipelineVertexInputStateCreateInfo-vertexBindingDescriptionCount-00613
vertexBindingDescriptionCount must be less than or equal to
VkPhysicalDeviceLimits::maxVertexInputBindings
VUID-VkPipelineVertexInputStateCreateInfo-vertexAttributeDescriptionCount-00614
vertexAttributeDescriptionCount must be less than or equal to
VkPhysicalDeviceLimits::maxVertexInputAttributes
VUID-VkPipelineVertexInputStateCreateInfo-binding-00615
For every binding specified by each element of
pVertexAttributeDescriptions, a
VkVertexInputBindingDescription must exist in
pVertexBindingDescriptions with the same value of binding
VUID-VkPipelineVertexInputStateCreateInfo-pVertexBindingDescriptions-00616
All elements of pVertexBindingDescriptions must describe distinct
binding numbers
VUID-VkPipelineVertexInputStateCreateInfo-pVertexAttributeDescriptions-00617
All elements of pVertexAttributeDescriptions must describe
distinct attribute locations
Valid Usage (Implicit)
VUID-VkPipelineVertexInputStateCreateInfo-sType-sType
sType must be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO
VUID-VkPipelineVertexInputStateCreateInfo-pNext-pNext
pNext must be NULL or a pointer to a valid instance of VkPipelineVertexInputDivisorStateCreateInfo
VUID-VkPipelineVertexInputStateCreateInfo-sType-unique
The sType value of each structure in the pNext chain must be unique
VUID-VkPipelineVertexInputStateCreateInfo-flags-zerobitmask
flags must be 0
VUID-VkPipelineVertexInputStateCreateInfo-pVertexBindingDescriptions-parameter
If vertexBindingDescriptionCount is not 0, pVertexBindingDescriptions must be a valid pointer to an array of vertexBindingDescriptionCount valid VkVertexInputBindingDescription structures
VUID-VkPipelineVertexInputStateCreateInfo-pVertexAttributeDescriptions-parameter
If vertexAttributeDescriptionCount is not 0, pVertexAttributeDescriptions must be a valid pointer to an array of vertexAttributeDescriptionCount valid VkVertexInputAttributeDescription structures