Top Description Fields Constructors Methods
org.lwjgl.openxr

public final Class FBCompositionLayerDepthTest

extends Object
Class Inheritance

The XR_FB_composition_layer_depth_test extension.

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

Modifier and TypeField 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
public static final int
XR_FB_composition_layer_depth_test_SPEC_VERSION

The extension specification version.

public static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_COMPARE_OP_ALWAYS_FBback to summary
public static final int XR_COMPARE_OP_ALWAYS_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_EQUAL_FBback to summary
public static final int XR_COMPARE_OP_EQUAL_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_GREATER_FBback to summary
public static final int XR_COMPARE_OP_GREATER_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_GREATER_OR_EQUAL_FBback to summary
public static final int XR_COMPARE_OP_GREATER_OR_EQUAL_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_LESS_FBback to summary
public static final int XR_COMPARE_OP_LESS_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_LESS_OR_EQUAL_FBback to summary
public static final int XR_COMPARE_OP_LESS_OR_EQUAL_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_NEVER_FBback to summary
public static final int XR_COMPARE_OP_NEVER_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_COMPARE_OP_NOT_EQUAL_FBback to summary
public static final int XR_COMPARE_OP_NOT_EQUAL_FB

XrCompareOpFB - Compare Operation

Enumerant Descriptions
See Also

XrCompositionLayerDepthTestFB

XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAMEback to summary
public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME

The extension name.

XR_FB_composition_layer_depth_test_SPEC_VERSIONback to summary
public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION

The extension specification version.

XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FBback to summary
public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB

Extends XrStructureType.

Constructor Detail

FBCompositionLayerDepthTestback to summary
private FBCompositionLayerDepthTest()