Structures
VkPipelineVertexInputDivisorStateCreateInfoKHR
Structure specifying vertex attributes assignment during instanced rendering
If the vertexAttributeInstanceRateDivisor
feature is enabled and the
pNext
chain of VkPipelineVertexInputStateCreateInfo includes a
VkPipelineVertexInputDivisorStateCreateInfoKHR
structure, then that
structure controls how vertex attributes are assigned to an instance when
instanced rendering is enabled.
The VkPipelineVertexInputDivisorStateCreateInfoKHR
structure is
defined as:
typedef struct VkPipelineVertexInputDivisorStateCreateInfoKHR {
VkStructureType sType;
const void* pNext;
uint32_t vertexBindingDivisorCount;
const VkVertexInputBindingDivisorDescriptionKHR* pVertexBindingDivisors;
} VkPipelineVertexInputDivisorStateCreateInfoKHR;
or the equivalent
typedef VkPipelineVertexInputDivisorStateCreateInfoKHR VkPipelineVertexInputDivisorStateCreateInfoEXT;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.vertexBindingDivisorCount
is the number of elements in thepVertexBindingDivisors
array.pVertexBindingDivisors
is a pointer to an array of VkVertexInputBindingDivisorDescriptionKHR structures specifying the divisor value for each binding.
Valid Usage (Implicit)
VUID-VkPipelineVertexInputDivisorStateCreateInfoKHR-sType-sType
sType
must be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_KHR
VUID-VkPipelineVertexInputDivisorStateCreateInfoKHR-pVertexBindingDivisors-parameter
pVertexBindingDivisors
must be a valid pointer to an array of vertexBindingDivisorCount
VkVertexInputBindingDivisorDescriptionKHR structures
VUID-VkPipelineVertexInputDivisorStateCreateInfoKHR-vertexBindingDivisorCount-arraylength
vertexBindingDivisorCount
must be greater than 0