Class FBCompositionLayerDepthTest
This extension enables depth-tested layer composition. The compositor will maintain a depth buffer in addition to a color buffer. The depth buffer is cleared to a depth corresponding to the infinitely far distance at the beginning of composition.
When composing each layer, if depth testing is requested, the incoming layer depths are transformed into the compositor window space depth and compared to the depth stored in the frame buffer. After the transformation, incoming depths that are outside of the range of the compositor window space depth must be clamped. If the depth test fails, the fragment is discarded. If the depth test passes the depth buffer is updated if depth writes are enabled, and color processing continues.
Depth testing requires depth values for the layer. For projection layers, this can be supplied via the XR_KHR_composition_layer_depth extension. For geometric primitive layers, the runtime computes the depth of the sample directly from the layer parameters. An XrCompositionLayerDepthTestFB chained to layers without depth must be ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final intXrCompareOpFB - Compare Operationstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_FB_composition_layer_depth_test_SPEC_VERSION
public static final int XR_FB_composition_layer_depth_test_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB
public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FBExtendsXrStructureType.- See Also:
-
XR_COMPARE_OP_NEVER_FB
public static final int XR_COMPARE_OP_NEVER_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_LESS_FB
public static final int XR_COMPARE_OP_LESS_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_EQUAL_FB
public static final int XR_COMPARE_OP_EQUAL_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_LESS_OR_EQUAL_FB
public static final int XR_COMPARE_OP_LESS_OR_EQUAL_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_GREATER_FB
public static final int XR_COMPARE_OP_GREATER_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_NOT_EQUAL_FB
public static final int XR_COMPARE_OP_NOT_EQUAL_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_GREATER_OR_EQUAL_FB
public static final int XR_COMPARE_OP_GREATER_OR_EQUAL_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-
XR_COMPARE_OP_ALWAYS_FB
public static final int XR_COMPARE_OP_ALWAYS_FBXrCompareOpFB - Compare OperationEnumerant Descriptions
COMPARE_OP_NEVER_FB— Comparison is never true.COMPARE_OP_LESS_FB— Comparison is true if source less than is destination.COMPARE_OP_EQUAL_FB— Comparison is true if source is equal to destination.COMPARE_OP_LESS_OR_EQUAL_FB— Comparison is true if source is less than or equal to destination.COMPARE_OP_GREATER_FB— Comparison is true if source is greater than destination.COMPARE_OP_NOT_EQUAL_FB— Comparison is true if source is not equal to destination.COMPARE_OP_GREATER_OR_EQUAL_FB— Comparison is true if source is greater than or equal to destination.COMPARE_OP_ALWAYS_FB— Comparison is always true.
See Also
- See Also:
-