| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Vulkan.Core10.Enums.CompareOp
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_NEVERspecifies that the comparison always evaluates false.
COMPARE_OP_LESSspecifies that the comparison evaluates reference < test.COMPARE_OP_EQUALspecifies that the comparison evaluates reference = test.COMPARE_OP_LESS_OR_EQUALspecifies that the comparison evaluates reference ≤ test.COMPARE_OP_GREATERspecifies that the comparison evaluates reference > test.COMPARE_OP_NOT_EQUALspecifies that the comparison evaluates reference ≠ test.COMPARE_OP_GREATER_OR_EQUALspecifies that the comparison evaluates reference ≥ test.COMPARE_OP_ALWAYSspecifies 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::compareOporStencilOpState::compareOp. - The
Depth Comparison
operator for the
depth test,
specified by
cmdSetDepthCompareOp::depthCompareOporPipelineDepthStencilStateCreateInfo::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
Bundled Patterns
| 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 # | |
| Zero CompareOp Source # | |
Defined in Vulkan.Core10.Enums.CompareOp | |