Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class VARJOEnvironmentDepthEstimation

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

The XR_VARJO_environment_depth_estimation extension.

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.

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
XR_VARJO_environment_depth_estimation_SPEC_VERSION

The extension specification version.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
xrSetEnvironmentDepthEstimationVARJO(XrSession
an XrSession handle previously created with CreateSession.
session
,
boolean
a boolean that specifies whether depth estimation functionality should be activated. Compositor will disable depth estimation functionality if environment blend mode is not ENVIRONMENT_BLEND_MODE_ALPHA_BLEND and will enable the functionality when environment blend mode is set to ENVIRONMENT_BLEND_MODE_ALPHA_BLEND.
enabled
)

Enable or disable environment depth estimation functionality.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAMEback to summary
public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME

The extension name.

XR_VARJO_environment_depth_estimation_SPEC_VERSIONback to summary
public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION

The extension specification version.

Constructor Detail

VARJOEnvironmentDepthEstimationback to summary
protected VARJOEnvironmentDepthEstimation()

Method Detail

xrSetEnvironmentDepthEstimationVARJOback to summary
public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, boolean enabled)

Enable or disable environment depth estimation functionality.

C Specification

The SetEnvironmentDepthEstimationVARJO function is defined as:


XrResult xrSetEnvironmentDepthEstimationVARJO(
    XrSession                                   session,
    XrBool32                                    enabled);
Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
Parameters
session:XrSession

an XrSession handle previously created with CreateSession.

enabled:boolean

a boolean that specifies whether depth estimation functionality should be activated. Compositor will disable depth estimation functionality if environment blend mode is not ENVIRONMENT_BLEND_MODE_ALPHA_BLEND and will enable the functionality when environment blend mode is set to ENVIRONMENT_BLEND_MODE_ALPHA_BLEND.

Annotations
@NativeType:XrResult