This extension provides a mechanism for enabling depth estimation of the environment in the runtime-supplied compositor. This is an extension to ENVIRONMENT_BLEND_MODE_ALPHA_BLEND mode to not only use the color but also depth for composition of the final image.
Mixed reality applications might want to mix real and virtual content based on the depth information for proper occlusion. XR hardware and runtime may offer various ways to estimate the depth of the environment inside the compositor. When this estimation is enabled, the compositor can generate properly occluded final image when layers are submitted with depth information (both XR_KHR_composition_layer_depth and XR_VARJO_composition_layer_depth_test).
This extension defines a new function, SetEnvironmentDepthEstimationVARJO, which can be used to toggle environment depth estimation in the compositor. Toggling depth estimation is an asynchronous operation and the feature may not be activated immediately. Function can be called immediately after the session is created. Composition of the environment layer follows the rules as described in XR_VARJO_composition_layer_depth_test.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME
The extension name. |
| public static final int | XR_VARJO_environment_depth_estimation_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | xrSetEnvironmentDepthEstimationVARJO(XrSession
an session, boolean XrSession handle previously created with CreateSession.a boolean that specifies whether depth estimation functionality should be activated. Compositor will disable depth estimation functionality if environment blend mode is not enabled)ENVIRONMENT_BLEND_MODE_ALPHA_BLEND and will enable the functionality when environment blend mode is set to ENVIRONMENT_BLEND_MODE_ALPHA_BLEND.Enable or disable environment depth estimation functionality. |
| XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME The extension name. | |
| XR_VARJO_environment_depth_estimation_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION The extension specification version. | |
| VARJOEnvironmentDepthEstimation | back to summary |
|---|---|
| protected VARJOEnvironmentDepthEstimation() | |
| xrSetEnvironmentDepthEstimationVARJO | back to summary |
|---|---|
| public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, boolean enabled) Enable or disable environment depth estimation functionality. C SpecificationThe
Valid Usage (Implicit)
Return Codes
| |