C Specification
To dynamically control which special vertex index value is treated as restarting the assembly of primitives, call:
// Provided by VK_EXT_primitive_restart_index
void vkCmdSetPrimitiveRestartIndexEXT(
VkCommandBuffer commandBuffer,
uint32_t primitiveRestartIndex);
Parameters
-
commandBufferis the command buffer into which the command will be recorded. -
primitiveRestartIndexcontrols which special vertex index value is treated as restarting the assembly of primitives. This overrides the default values specified in VkPipelineInputAssemblyStateCreateInfo::primitiveRestartEnable.
Description
This command sets a custom primitive restart index for subsequent drawing commands. Binding an index buffer invalidates the custom index value.
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.