Package org.lwjgl.openxr
Class METAPassthroughPreferences
java.lang.Object
org.lwjgl.openxr.METAPassthroughPreferences
The XR_META_passthrough_preferences extension.
This extension provides applications with access to system preferences concerning passthrough. For more information on how applications can control the display of passthrough, see XR_FB_passthrough.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intXrPassthroughPreferenceFlagBitsMETA - XrPassthroughPreferenceFlagBitsMETAstatic final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrGetPassthroughPreferencesMETA(XrSession session, long preferences) Unsafe version of:GetPassthroughPreferencesMETAstatic intxrGetPassthroughPreferencesMETA(XrSession session, XrPassthroughPreferencesMETA preferences) Get passthrough preferences.
-
Field Details
-
XR_META_passthrough_preferences_SPEC_VERSION
public static final int XR_META_passthrough_preferences_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_META_PASSTHROUGH_PREFERENCES_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_PASSTHROUGH_PREFERENCES_META
public static final int XR_TYPE_PASSTHROUGH_PREFERENCES_METAExtendsXrStructureType.- See Also:
-
XR_PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META
public static final int XR_PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_METAXrPassthroughPreferenceFlagBitsMETA - XrPassthroughPreferenceFlagBitsMETAFlag Descriptions
PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META— Indicates that the runtime recommends apps to default to a mixed reality experience with passthrough (if supported).
- See Also:
-
-
Method Details
-
nxrGetPassthroughPreferencesMETA
Unsafe version of:GetPassthroughPreferencesMETA -
xrGetPassthroughPreferencesMETA
public static int xrGetPassthroughPreferencesMETA(XrSession session, XrPassthroughPreferencesMETA preferences) Get passthrough preferences.C Specification
The
GetPassthroughPreferencesMETAfunction is defined as:XrResult xrGetPassthroughPreferencesMETA( XrSession session, XrPassthroughPreferencesMETA* preferences);Description
An application can call
GetPassthroughPreferencesMETAto retrieve passthrough-related preferences from the system.Valid Usage (Implicit)
- The
XR_META_passthrough_preferencesextension must be enabled prior to callingGetPassthroughPreferencesMETA sessionmust be a validXrSessionhandlepreferencesmust be a pointer to anXrPassthroughPreferencesMETAstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSession.preferences- points to an instance ofXrPassthroughPreferencesMETAstructure, that will be filled with returned information
- The
-