cmdSetPatchControlPointsEXT :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.->"patchControlPoints"
::: Word32patchControlPointsspecifies the number of control points per patch.-> io ()
vkCmdSetPatchControlPointsEXT - Specify the number of control points per patch dynamically for a command buffer
Description
This command sets the number of control points per patch for subsequent
drawing commands when drawing using
shader objects,
or when the graphics pipeline is created with
DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
set in
PipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
PipelineTessellationStateCreateInfo::patchControlPoints
value used to create the currently active pipeline.
Valid Usage
At least one of the following must be true:
The extendedDynamicState2PatchControlPoints feature is enabled
The shaderObject feature is enabled
patchControlPointsmust be greater than zero and less than or equal to PhysicalDeviceLimits::maxTessellationPatchSize
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
vkCmdSetPatchControlPointsEXT is not affected by conditional rendering
See Also
VK_EXT_extended_dynamic_state2, VK_EXT_shader_object, CommandBuffer