C Specification

The possible comparison operations are specified by the XrCompareOpFB enumeration.

// Provided by XR_FB_composition_layer_depth_test
typedef enum XrCompareOpFB {
    XR_COMPARE_OP_NEVER_FB = 0,
    XR_COMPARE_OP_LESS_FB = 1,
    XR_COMPARE_OP_EQUAL_FB = 2,
    XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3,
    XR_COMPARE_OP_GREATER_FB = 4,
    XR_COMPARE_OP_NOT_EQUAL_FB = 5,
    XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6,
    XR_COMPARE_OP_ALWAYS_FB = 7,
    XR_COMPARE_OP_MAX_ENUM_FB = 0x7FFFFFFF
} XrCompareOpFB;

Description

Enumerant Descriptions
  • XR_COMPARE_OP_NEVER_FB — Comparison is never true.

  • XR_COMPARE_OP_LESS_FB — Comparison is true if source less than is destination.

  • XR_COMPARE_OP_EQUAL_FB — Comparison is true if source is equal to destination.

  • XR_COMPARE_OP_LESS_OR_EQUAL_FB — Comparison is true if source is less than or equal to destination.

  • XR_COMPARE_OP_GREATER_FB — Comparison is true if source is greater than destination.

  • XR_COMPARE_OP_NOT_EQUAL_FB — Comparison is true if source is not equal to destination.

  • XR_COMPARE_OP_GREATER_OR_EQUAL_FB — Comparison is true if source is greater than or equal to destination.

  • XR_COMPARE_OP_ALWAYS_FB — Comparison is always true.

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2024, The Khronos Group Inc.