cmdSetExclusiveScissorNV :: MonadIO io=> CommandBuffercommandBufferis the command buffer into which the command will be recorded.->"firstExclusiveScissor"
::: Word32firstExclusiveScissoris the index of the first exclusive scissor rectangle whose state is updated by the command.->"exclusiveScissors"
::: Vector Rect2DpExclusiveScissorsis a pointer to an array of Rect2D structures defining exclusive scissor rectangles.-> io ()
vkCmdSetExclusiveScissorNV - Set exclusive scissor rectangles dynamically for a command buffer
Description
The scissor rectangles taken from element i of pExclusiveScissors
replace the current state for the scissor index firstExclusiveScissor
+ i, for i in [0, exclusiveScissorCount).
This command sets the exclusive scissor rectangles for subsequent
drawing commands when drawing using
shader objects,
or when the graphics pipeline is created with
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
set in
PipelineDynamicStateCreateInfo::pDynamicStates.
Otherwise, this state is specified by the
PipelineViewportExclusiveScissorStateCreateInfoNV::pExclusiveScissors
values used to create the currently active pipeline.
Valid Usage
The exclusiveScissor feature must be enabled
The sum of
firstExclusiveScissorandexclusiveScissorCountmust be between1and PhysicalDeviceLimits::maxViewports, inclusiveIf the multiViewport feature is not enabled,
firstExclusiveScissormust be0If the multiViewport feature is not enabled,
exclusiveScissorCountmust be1The
xandymembers ofoffsetin each member ofpExclusiveScissorsmust be greater than or equal to0Evaluation of (
offset.x+extent.width) for each member ofpExclusiveScissorsmust not cause a signed integer addition overflowEvaluation of (
offset.y+extent.height) for each member ofpExclusiveScissorsmust not cause a signed integer addition overflow
Valid Usage (Implicit)
commandBuffermust be a valid CommandBuffer handle
pExclusiveScissorsmust be a valid pointer to an array ofexclusiveScissorCountRect2D structurescommandBuffermust 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
exclusiveScissorCountmust be greater than0
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
vkCmdSetExclusiveScissorNV is not affected by conditional rendering