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
-
commandBuffer
is the command buffer into which the command will be recorded. -
vertexBindingDescriptionCount
is the number of vertex binding descriptions provided inpVertexBindingDescriptions
. -
pVertexBindingDescriptions
is a pointer to an array ofVkVertexInputBindingDescription2EXT
structures. -
vertexAttributeDescriptionCount
is the number of vertex attribute descriptions provided inpVertexAttributeDescriptions
. -
pVertexAttributeDescriptions
is a pointer to an array ofVkVertexInputAttributeDescription2EXT
structures.
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.