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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_COMPARE_OP_ALWAYS_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_EQUAL_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_GREATER_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_GREATER_OR_EQUAL_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_LESS_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_LESS_OR_EQUAL_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_NEVER_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final int | XR_COMPARE_OP_NOT_EQUAL_FB
XrCompareOpFB - Compare Operation Enumerant Descriptions
|
| public static final String | XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME
The extension name. |
| public static final int | XR_FB_composition_layer_depth_test_SPEC_VERSION
The extension specification version. |
| public static final int | XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB
Extends |
| Access | Constructor and Description |
|---|---|
| private |
| XR_COMPARE_OP_ALWAYS_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_ALWAYS_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_EQUAL_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_EQUAL_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_GREATER_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_GREATER_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_GREATER_OR_EQUAL_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_GREATER_OR_EQUAL_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_LESS_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_LESS_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_LESS_OR_EQUAL_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_LESS_OR_EQUAL_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_NEVER_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_NEVER_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_COMPARE_OP_NOT_EQUAL_FB | back to summary |
|---|---|
| public static final int XR_COMPARE_OP_NOT_EQUAL_FB XrCompareOpFB - Compare Operation Enumerant Descriptions
See Also | |
| XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME The extension name. | |
| XR_FB_composition_layer_depth_test_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION The extension specification version. | |
| XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB | back to summary |
|---|---|
| public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB Extends | |
| FBCompositionLayerDepthTest | back to summary |
|---|---|
| private FBCompositionLayerDepthTest() | |