| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_EXT_discard_rectangles
- newtype VkDiscardRectangleModeEXT = VkDiscardRectangleModeEXT Int32
- pattern VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT :: VkDiscardRectangleModeEXT
- pattern VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT :: VkDiscardRectangleModeEXT
- newtype VkPipelineDiscardRectangleStateCreateFlagsEXT = VkPipelineDiscardRectangleStateCreateFlagsEXT VkFlags
- pattern VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT :: VkDynamicState
- pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT :: VkStructureType
- pattern VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT :: VkStructureType
- pattern VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION :: Integral a => a
- pattern VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCmdSetDiscardRectangleEXT :: ("commandBuffer" ::: VkCommandBuffer) -> ("firstDiscardRectangle" ::: Word32) -> ("discardRectangleCount" ::: Word32) -> ("pDiscardRectangles" ::: Ptr VkRect2D) -> IO ()
- data VkPhysicalDeviceDiscardRectanglePropertiesEXT = VkPhysicalDeviceDiscardRectanglePropertiesEXT {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkMaxDiscardRectangles :: Word32
- data VkPipelineDiscardRectangleStateCreateInfoEXT = VkPipelineDiscardRectangleStateCreateInfoEXT {}
Documentation
newtype VkDiscardRectangleModeEXT Source #
VkDiscardRectangleModeEXT - Specify the discard rectangle mode
See Also
Constructors
| VkDiscardRectangleModeEXT Int32 |
pattern VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT :: VkDiscardRectangleModeEXT Source #
VK_DISCARD_RECTANGLE_MODE_INCLUSIVE_EXT specifies that a fragment
within any discard rectangle satisfies the test.
pattern VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT :: VkDiscardRectangleModeEXT Source #
VK_DISCARD_RECTANGLE_MODE_EXCLUSIVE_EXT specifies that a fragment not
within any of the discard rectangles satisfies the test.
newtype VkPipelineDiscardRectangleStateCreateFlagsEXT Source #
VkPipelineDiscardRectangleStateCreateFlagsEXT - Reserved for future use
Description
VkPipelineDiscardRectangleStateCreateFlagsEXT is a bitmask type for
setting a mask, but is currently reserved for future use.
See Also
Constructors
| VkPipelineDiscardRectangleStateCreateFlagsEXT VkFlags |
Instances
pattern VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT :: VkStructureType Source #
pattern VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT :: VkStructureType Source #
pattern VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION :: Integral a => a Source #
pattern VK_EXT_DISCARD_RECTANGLES_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCmdSetDiscardRectangleEXT :: ("commandBuffer" ::: VkCommandBuffer) -> ("firstDiscardRectangle" ::: Word32) -> ("discardRectangleCount" ::: Word32) -> ("pDiscardRectangles" ::: Ptr VkRect2D) -> IO () Source #
vkCmdSetDiscardRectangleEXT - Set discard rectangles dynamically
Parameters
commandBufferis the command buffer into which the command will be recorded.
firstDiscardRectangleis the index of the first discard rectangle whose state is updated by the command.discardRectangleCountis the number of discard rectangles whose state are updated by the command.pDiscardRectanglesis a pointer to an array ofVkRect2Dstructures specifying discard rectangles.
Description
The discard rectangle taken from element i of pDiscardRectangles
replace the current state for the discard rectangle index
firstDiscardRectangle + i, for i in [0, discardRectangleCount).
Valid Usage
- The bound graphics pipeline must have been created with the
VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXTdynamic state enabled
- The sum of
firstDiscardRectangleanddiscardRectangleCountmust be less than or equal toVkPhysicalDeviceDiscardRectanglePropertiesEXT::maxDiscardRectangles - The
xandymember ofoffsetin eachVkRect2Delement ofpDiscardRectanglesmust be greater than or equal to0 - Evaluation of (
offset.x+extent.width) in eachVkRect2Delement ofpDiscardRectanglesmust not cause a signed integer addition overflow - Evaluation of (
offset.y+extent.height) in eachVkRect2Delement ofpDiscardRectanglesmust not cause a signed integer addition overflow
Valid Usage (Implicit)
commandBuffermust be a validVkCommandBufferhandle
pDiscardRectanglesmust be a valid pointer to an array ofdiscardRectangleCountVkRect2DstructurescommandBuffermust be in the recording state- The
VkCommandPoolthatcommandBufferwas allocated from must support graphics operations discardRectangleCountmust be greater than0
Host Synchronization
- Host access to
commandBuffermust be externally synchronized
- Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
Command Properties
+-----------------+-----------------+-----------------+-----------------+ | <#VkCommandBuff | <#vkCmdBeginRen | <#VkQueueFlagBi | <#synchronizati | | erLevel Command | derPass Render | ts Supported Qu | on-pipeline-sta | | Buffer Levels> | Pass Scope> | eue Types> | ges-types Pipel | | | | | ine Type> | +=================+=================+=================+=================+ | Primary | Both | Graphics | | | Secondary | | | | +-----------------+-----------------+-----------------+-----------------+
See Also
data VkPhysicalDeviceDiscardRectanglePropertiesEXT Source #
VkPhysicalDeviceDiscardRectanglePropertiesEXT - Structure describing discard rectangle limits that can be supported by an implementation
Members
The members of the VkPhysicalDeviceDiscardRectanglePropertiesEXT
structure describe the following implementation-dependent limits:
Description
maxDiscardRectanglesis the maximum number of discard rectangles that can be specified.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT
If the VkPhysicalDeviceDiscardRectanglePropertiesEXT structure is
included in the pNext chain of
VkPhysicalDeviceProperties2,
it is filled with the implementation-dependent limits.
See Also
Constructors
| VkPhysicalDeviceDiscardRectanglePropertiesEXT | |
Fields
| |
data VkPipelineDiscardRectangleStateCreateInfoEXT Source #
VkPipelineDiscardRectangleStateCreateInfoEXT - Structure specifying discard rectangle
Description
Valid Usage
discardRectangleCountmust be between0andVkPhysicalDeviceDiscardRectanglePropertiesEXT::maxDiscardRectangles, inclusive
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT
flagsmust be0discardRectangleModemust be a validVkDiscardRectangleModeEXTvalue
See Also
VkDiscardRectangleModeEXT,
VkPipelineDiscardRectangleStateCreateFlagsEXT,
VkRect2D,
VkStructureType
Constructors
| VkPipelineDiscardRectangleStateCreateInfoEXT | |
Fields
| |