C Specification
Possible values of VkStencilOpState::compareOp, specifying the
stencil comparison function, are:
// Provided by VK_VERSION_1_0
typedef enum VkCompareOp {
VK_COMPARE_OP_NEVER = 0,
VK_COMPARE_OP_LESS = 1,
VK_COMPARE_OP_EQUAL = 2,
VK_COMPARE_OP_LESS_OR_EQUAL = 3,
VK_COMPARE_OP_GREATER = 4,
VK_COMPARE_OP_NOT_EQUAL = 5,
VK_COMPARE_OP_GREATER_OR_EQUAL = 6,
VK_COMPARE_OP_ALWAYS = 7,
} VkCompareOp;
Description
-
VK_COMPARE_OP_NEVERspecifies that the test evaluates to false. -
VK_COMPARE_OP_LESSspecifies that the test evaluates A < B. -
VK_COMPARE_OP_EQUALspecifies that the test evaluates A = B. -
VK_COMPARE_OP_LESS_OR_EQUALspecifies that the test evaluates A ≤ B. -
VK_COMPARE_OP_GREATERspecifies that the test evaluates A > B. -
VK_COMPARE_OP_NOT_EQUALspecifies that the test evaluates A ≠ B. -
VK_COMPARE_OP_GREATER_OR_EQUALspecifies that the test evaluates A ≥ B. -
VK_COMPARE_OP_ALWAYSspecifies that the test evaluates to true.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.