Class VkPipelineDiscardRectangleStateCreateInfoEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkPipelineDiscardRectangleStateCreateInfoEXT extends Struct<VkPipelineDiscardRectangleStateCreateInfoEXT> implements NativeResource
Structure specifying discard rectangle.
Description

If the DYNAMIC_STATE_DISCARD_RECTANGLE_EXT dynamic state is enabled for a pipeline, the pDiscardRectangles member is ignored. If the DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT dynamic state is not enabled for the pipeline the presence of this structure in the VkGraphicsPipelineCreateInfo chain, and a discardRectangleCount greater than zero, implicitly enables discard rectangles in the pipeline, otherwise discard rectangles must enabled or disabled by CmdSetDiscardRectangleEnableEXT. If the DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT dynamic state is enabled for the pipeline, the discardRectangleMode member is ignored, and the discard rectangle mode must be set by CmdSetDiscardRectangleModeEXT.

When this structure is included in the pNext chain of VkGraphicsPipelineCreateInfo, it defines parameters of the discard rectangle test. If the DYNAMIC_STATE_DISCARD_RECTANGLE_EXT dynamic state is not enabled, and this structure is not included in the pNext chain, it is equivalent to specifying this structure with a discardRectangleCount of 0.

Valid Usage
Valid Usage (Implicit)
See Also

VkRect2D

Layout


 struct VkPipelineDiscardRectangleStateCreateInfoEXT {
     VkStructureType sType();
     void const * pNext();
     VkPipelineDiscardRectangleStateCreateFlagsEXT flags();
     VkDiscardRectangleModeEXT discardRectangleMode();
     uint32_t discardRectangleCount();
     VkRect2D const * pDiscardRectangles();
 }