Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype CompareOp where
- CompareOp Int32
- pattern COMPARE_OP_NEVER :: CompareOp
- pattern COMPARE_OP_LESS :: CompareOp
- pattern COMPARE_OP_EQUAL :: CompareOp
- pattern COMPARE_OP_LESS_OR_EQUAL :: CompareOp
- pattern COMPARE_OP_GREATER :: CompareOp
- pattern COMPARE_OP_NOT_EQUAL :: CompareOp
- pattern COMPARE_OP_GREATER_OR_EQUAL :: CompareOp
- pattern COMPARE_OP_ALWAYS :: CompareOp
Documentation
VkCompareOp - Comparison operator for depth, stencil, and sampler operations
Description
COMPARE_OP_NEVER
specifies that the comparison always evaluates false.
COMPARE_OP_LESS
specifies that the comparison evaluates reference < test.COMPARE_OP_EQUAL
specifies that the comparison evaluates reference = test.COMPARE_OP_LESS_OR_EQUAL
specifies that the comparison evaluates reference ≤ test.COMPARE_OP_GREATER
specifies that the comparison evaluates reference > test.COMPARE_OP_NOT_EQUAL
specifies that the comparison evaluates reference ≠ test.COMPARE_OP_GREATER_OR_EQUAL
specifies that the comparison evaluates reference ≥ test.COMPARE_OP_ALWAYS
specifies that the comparison always evaluates true.
Comparison operators are used for:
- The
Depth Compare Operation
operator for a sampler, specified by
SamplerCreateInfo
::compareOp
. - The stencil comparison operator for the
stencil test,
specified by
cmdSetStencilOp
::compareOp
orStencilOpState
::compareOp
. - The
Depth Comparison
operator for the
depth test,
specified by
cmdSetDepthCompareOp
::depthCompareOp
orPipelineDepthStencilStateCreateInfo
::depthCompareOp
.
Each such use describes how the reference and test values for that comparison are determined.
See Also
VK_VERSION_1_0,
PipelineDepthStencilStateCreateInfo
,
SamplerCreateInfo
,
StencilOpState
,
cmdSetDepthCompareOp
,
cmdSetDepthCompareOpEXT
,
cmdSetStencilOp
,
cmdSetStencilOpEXT
pattern COMPARE_OP_NEVER :: CompareOp | |
pattern COMPARE_OP_LESS :: CompareOp | |
pattern COMPARE_OP_EQUAL :: CompareOp | |
pattern COMPARE_OP_LESS_OR_EQUAL :: CompareOp | |
pattern COMPARE_OP_GREATER :: CompareOp | |
pattern COMPARE_OP_NOT_EQUAL :: CompareOp | |
pattern COMPARE_OP_GREATER_OR_EQUAL :: CompareOp | |
pattern COMPARE_OP_ALWAYS :: CompareOp |
Instances
Storable CompareOp Source # | |
Defined in Vulkan.Core10.Enums.CompareOp | |
Read CompareOp Source # | |
Show CompareOp Source # | |
Eq CompareOp Source # | |
Ord CompareOp Source # | |
Defined in Vulkan.Core10.Enums.CompareOp | |
Zero CompareOp Source # | |
Defined in Vulkan.Core10.Enums.CompareOp |