C Specification
An alternative to specifying the vertex input attribute and vertex input
binding descriptions as part of graphics pipeline creation, the pipeline
can be created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic
state enabled, and for that state to be set dynamically with:
// Provided by VK_EXT_vertex_input_dynamic_state
void vkCmdSetVertexInputEXT(
VkCommandBuffer commandBuffer,
uint32_t vertexBindingDescriptionCount,
const VkVertexInputBindingDescription2EXT* pVertexBindingDescriptions,
uint32_t vertexAttributeDescriptionCount,
const VkVertexInputAttributeDescription2EXT* pVertexAttributeDescriptions);
Parameters
-
commandBufferis the command buffer into which the command will be recorded. -
vertexBindingDescriptionCountis the number of vertex binding descriptions provided inpVertexBindingDescriptions. -
pVertexBindingDescriptionsis a pointer to an array ofVkVertexInputBindingDescription2EXTstructures. -
vertexAttributeDescriptionCountis the number of vertex attribute descriptions provided inpVertexAttributeDescriptions. -
pVertexAttributeDescriptionsis a pointer to an array ofVkVertexInputAttributeDescription2EXTstructures.
Description
This command sets the vertex input attribute and vertex input binding descriptions state for subsequent draw commands.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.