Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
Instances
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
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
commandBuffer
is the command buffer into which the command will be recorded.
firstDiscardRectangle
is the index of the first discard rectangle whose state is updated by the command.discardRectangleCount
is the number of discard rectangles whose state are updated by the command.pDiscardRectangles
is a pointer to an array ofVkRect2D
structures 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_EXT
dynamic state enabled
- The sum of
firstDiscardRectangle
anddiscardRectangleCount
must be less than or equal toVkPhysicalDeviceDiscardRectanglePropertiesEXT
::maxDiscardRectangles
- The
x
andy
member ofoffset
in eachVkRect2D
element ofpDiscardRectangles
must be greater than or equal to0
- Evaluation of (
offset.x
+extent.width
) in eachVkRect2D
element ofpDiscardRectangles
must not cause a signed integer addition overflow - Evaluation of (
offset.y
+extent.height
) in eachVkRect2D
element ofpDiscardRectangles
must not cause a signed integer addition overflow
Valid Usage (Implicit)
commandBuffer
must be a validVkCommandBuffer
handle
pDiscardRectangles
must be a valid pointer to an array ofdiscardRectangleCount
VkRect2D
structurescommandBuffer
must be in the recording state- The
VkCommandPool
thatcommandBuffer
was allocated from must support graphics operations discardRectangleCount
must be greater than0
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
VkCommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
'
Command Buffer Levels | Render Pass Scope | Supported Queue Types | Pipeline Type |
---|---|---|---|
Primary Secondary | Both | Graphics |
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
maxDiscardRectangles
is the maximum number of discard rectangles that can be specified.
Valid Usage (Implicit)
sType
must 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
VkPhysicalDeviceDiscardRectanglePropertiesEXT | |
|
Instances
data VkPipelineDiscardRectangleStateCreateInfoEXT Source #
VkPipelineDiscardRectangleStateCreateInfoEXT - Structure specifying discard rectangle
Valid Usage
discardRectangleCount
must be between0
andVkPhysicalDeviceDiscardRectanglePropertiesEXT
::maxDiscardRectangles
, inclusive
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT
flags
must be0
discardRectangleMode
must be a validVkDiscardRectangleModeEXT
value
See Also
VkDiscardRectangleModeEXT
,
VkPipelineDiscardRectangleStateCreateFlagsEXT
,
VkRect2D
,
VkStructureType
VkPipelineDiscardRectangleStateCreateInfoEXT | |
|