cmdSetPrimitiveRestartIndexEXT :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.->"primitiveRestartIndex"
::: Word32primitiveRestartIndexcontrols which special vertex index value is treated as restarting the assembly of primitives. This overrides the default values specified in PipelineInputAssemblyStateCreateInfo::primitiveRestartEnable.-> io ()
vkCmdSetPrimitiveRestartIndexEXT - Set primitive assembly restart index dynamically for a command buffer
Description
This command sets a custom primitive restart index for subsequent drawing commands. Binding an index buffer invalidates the custom index value.
Valid Usage
The primitiveRestartIndex feature must be enabled
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
commandBuffermust be in the recording stateThe CommandPool that
commandBufferwas allocated from must support QUEUE_GRAPHICS_BIT operationsThis command must only be called outside of a video coding scope
Host Synchronization
Host access to
commandBuffermust be externally synchronized
Host access to the CommandPool that
commandBufferwas allocated from must be externally synchronized
Command Properties
'
Primary Secondary | Both | Outside | VK_QUEUE_GRAPHICS_BIT | State |
Conditional Rendering
vkCmdSetPrimitiveRestartIndexEXT is not affected by conditional rendering