The scissor rectangles can be set dynamically with the command:
// 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 state for a given draw when the graphics pipeline is
VK_DYNAMIC_STATE_SCISSOR set in
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.