The scissor test determines if a fragment’s framebuffer coordinates
(xf,yf) lie within the scissor rectangle corresponding to the
viewport index (see Controlling the Viewport)
used by the primitive that generated the fragment.
If the pipeline state object is created without
VK_DYNAMIC_STATE_SCISSOR enabled then the scissor rectangles are set
by the VkPipelineViewportStateCreateInfo state of the pipeline state
Otherwise, to dynamically set the scissor rectangles call:
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,
Each scissor rectangle is described by a VkRect2D structure, with the
offset.y values determining the upper left corner
of the scissor rectangle, and the
values determining the size in pixels.
For more information, see the Vulkan Specification at URL
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2018 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.