To dynamically set the scissor rectangles, call:
// Provided by VK_VERSION_1_0 void vkCmdSetScissor( VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors);
commandBufferis the command buffer into which the command will be recorded.
firstScissoris the index of the first scissor whose state is updated by the command.
scissorCountis the number of scissors whose rectangles are updated by the command.
pScissorsis a pointer to an array of VkRect2D structures defining scissor rectangles.
The scissor rectangles taken from element i of
the current state for the scissor index
firstScissor + i,
for i in [0,
This command sets the scissor rectangles for subsequent drawing commands
when drawing using shader objects, or
when the graphics pipeline is created with
set in VkPipelineDynamicStateCreateInfo::
Otherwise, this state is specified by the
pScissors values used to
create the currently active pipeline.
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.