Class FBPassthrough
Passthrough is a way to show a user their physical environment in a light-blocking VR headset. Applications may use passthrough in a multitude of ways, including:
- Creating AR-like experiences, where virtual objects augment the user’s environment.
- Bringing real objects into a VR experience.
- Mapping the playspace such that a VR experience is customized to it.
This extension allows:
- An application to request passthrough to be composited with the application content.
- An application to specify the compositing and blending rules between passthrough and VR content.
- An application to apply styles, such as color mapping and edge rendering, to passthrough.
- An application to provide a geometry to be used in place of the user’s physical environment. Camera images will be projected onto the surface provided by the application. In some cases where a part of the environment, such as a desk, can be approximated well, this provides better visual experience.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExtendsXrResult.static final intExtendsXrResult.static final intExtendsXrResult.static final intExtendsXrResult.static final intExtendsXrResult.static final intExtendsXrResult.static final StringThe extension name.static final intThe extension specification version.static final intExtendsXrObjectType.static final intExtendsXrObjectType.static final intExtendsXrObjectType.static final intXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBstatic final intXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBstatic final intXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBstatic final intXR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FBstatic final intXrPassthroughFlagBitsFB - XrPassthroughFlagBitsFBstatic final intXrPassthroughFlagBitsFB - XrPassthroughFlagBitsFBstatic final intXrPassthroughLayerPurposeFB - Layer purposestatic final intXrPassthroughLayerPurposeFB - Layer purposestatic final intXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBstatic final intXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBstatic final intXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBstatic final intXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBstatic final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) Unsafe version of:CreateGeometryInstanceFBstatic intnxrCreatePassthroughFB(XrSession session, long createInfo, long outPassthrough) Unsafe version of:CreatePassthroughFBstatic intnxrCreatePassthroughLayerFB(XrSession session, long createInfo, long outLayer) Unsafe version of:CreatePassthroughLayerFBstatic intnxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) Unsafe version of:GeometryInstanceSetTransformFBstatic intnxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long style) Unsafe version of:PassthroughLayerSetStyleFBstatic intxrCreateGeometryInstanceFB(XrSession session, XrGeometryInstanceCreateInfoFB createInfo, org.lwjgl.PointerBuffer outGeometryInstance) Create a triangle mesh.static intxrCreatePassthroughFB(XrSession session, XrPassthroughCreateInfoFB createInfo, org.lwjgl.PointerBuffer outPassthrough) Create a passthrough feature.static intxrCreatePassthroughLayerFB(XrSession session, XrPassthroughLayerCreateInfoFB createInfo, org.lwjgl.PointerBuffer outLayer) Create a passthrough layer.static intDestroy a geometry instance.static intxrDestroyPassthroughFB(XrPassthroughFB passthrough) Destroy a passthrough feature.static intDestroy a passthrough layer.static intxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, XrGeometryInstanceTransformFB transformation) Create a triangle mesh.static intPause a passthrough layer.static intResume a passthrough layer.static intSet style on a passthrough layer.static intxrPassthroughPauseFB(XrPassthroughFB passthrough) Pause a passthrough feature.static intxrPassthroughStartFB(XrPassthroughFB passthrough) Start a passthrough feature.
-
Field Details
-
XR_FB_passthrough_SPEC_VERSION
public static final int XR_FB_passthrough_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_PASSTHROUGH_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB
public static final int XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_CREATE_INFO_FB
public static final int XR_TYPE_PASSTHROUGH_CREATE_INFO_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB
public static final int XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB
public static final int XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB
public static final int XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB
public static final int XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB
public static final int XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_STYLE_FB
public static final int XR_TYPE_PASSTHROUGH_STYLE_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB
public static final int XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB
public static final int XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB
public static final int XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
public static final int XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FBExtendsXrStructureType.Enum values:
TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBTYPE_PASSTHROUGH_CREATE_INFO_FBTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBTYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FBTYPE_PASSTHROUGH_STYLE_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FBTYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FBTYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FBTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB
- See Also:
-
XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB
public static final int XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB
public static final int XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB
public static final int XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FB
public static final int XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB
public static final int XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_ERROR_UNKNOWN_PASSTHROUGH_FB
public static final int XR_ERROR_UNKNOWN_PASSTHROUGH_FBExtendsXrResult.Enum values:
- See Also:
-
XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB
public static final int XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FBXR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB- See Also:
-
XR_OBJECT_TYPE_PASSTHROUGH_FB
public static final int XR_OBJECT_TYPE_PASSTHROUGH_FBExtendsXrObjectType.Enum values:
- See Also:
-
XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB
public static final int XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FBExtendsXrObjectType.Enum values:
- See Also:
-
XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB
public static final int XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FBExtendsXrObjectType.Enum values:
- See Also:
-
XR_PASSTHROUGH_CAPABILITY_BIT_FB
public static final int XR_PASSTHROUGH_CAPABILITY_BIT_FBXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBFlag Descriptions
PASSTHROUGH_CAPABILITY_BIT_FB— The system supports passthrough.PASSTHROUGH_CAPABILITY_COLOR_BIT_FB— The system can show passthrough with realistic colors.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_COLOR_BIT_FBis set.PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB— The system supports passthrough layers composited using depth testing.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FBis set.
- See Also:
-
XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB
public static final int XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FBXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBFlag Descriptions
PASSTHROUGH_CAPABILITY_BIT_FB— The system supports passthrough.PASSTHROUGH_CAPABILITY_COLOR_BIT_FB— The system can show passthrough with realistic colors.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_COLOR_BIT_FBis set.PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB— The system supports passthrough layers composited using depth testing.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FBis set.
- See Also:
-
XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB
public static final int XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FBXrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFBFlag Descriptions
PASSTHROUGH_CAPABILITY_BIT_FB— The system supports passthrough.PASSTHROUGH_CAPABILITY_COLOR_BIT_FB— The system can show passthrough with realistic colors.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_COLOR_BIT_FBis set.PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB— The system supports passthrough layers composited using depth testing.PASSTHROUGH_CAPABILITY_BIT_FBmust be set ifPASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FBis set.
- See Also:
-
XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB
public static final int XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FBXrPassthroughFlagBitsFB - XrPassthroughFlagBitsFBFlag Descriptions
PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB— The object (passthrough, layer) is running at creation.PASSTHROUGH_LAYER_DEPTH_BIT_FB— The passthrough system sends depth information to the compositor. Only applicable to layer objects.
- See Also:
-
XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB
public static final int XR_PASSTHROUGH_LAYER_DEPTH_BIT_FBXrPassthroughFlagBitsFB - XrPassthroughFlagBitsFBFlag Descriptions
PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB— The object (passthrough, layer) is running at creation.PASSTHROUGH_LAYER_DEPTH_BIT_FB— The passthrough system sends depth information to the compositor. Only applicable to layer objects.
- See Also:
-
XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB
public static final int XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FBXrPassthroughLayerPurposeFB - Layer purposeEnumerant Descriptions
PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB— Reconstruction passthrough (full screen environment)PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB— Projected passthrough (using a custom surface)PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB— Passthrough layer purpose for keyboard hands presence. (Added by theXR_FB_passthrough_keyboard_handsextension)PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB— Passthrough layer purpose for keyboard hands presence with keyboard masked hand transitions (i.e passthrough hands rendered only when they are over the keyboard). (Added by theXR_FB_passthrough_keyboard_handsextension)
See Also
- See Also:
-
XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB
public static final int XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FBXrPassthroughLayerPurposeFB - Layer purposeEnumerant Descriptions
PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB— Reconstruction passthrough (full screen environment)PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB— Projected passthrough (using a custom surface)PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB— Passthrough layer purpose for keyboard hands presence. (Added by theXR_FB_passthrough_keyboard_handsextension)PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB— Passthrough layer purpose for keyboard hands presence with keyboard masked hand transitions (i.e passthrough hands rendered only when they are over the keyboard). (Added by theXR_FB_passthrough_keyboard_handsextension)
See Also
- See Also:
-
XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB
public static final int XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FBXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBFlag Descriptions
PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB— Passthrough system requires reinitialization.PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB— Non-recoverable error has occurred. A device reboot or a firmware update may be required.PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB— A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB— The runtime has recovered from a previous error and is functioning normally.
- See Also:
-
XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB
public static final int XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FBXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBFlag Descriptions
PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB— Passthrough system requires reinitialization.PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB— Non-recoverable error has occurred. A device reboot or a firmware update may be required.PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB— A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB— The runtime has recovered from a previous error and is functioning normally.
- See Also:
-
XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB
public static final int XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FBXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBFlag Descriptions
PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB— Passthrough system requires reinitialization.PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB— Non-recoverable error has occurred. A device reboot or a firmware update may be required.PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB— A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB— The runtime has recovered from a previous error and is functioning normally.
- See Also:
-
XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB
public static final int XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FBXrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFBFlag Descriptions
PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB— Passthrough system requires reinitialization.PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB— Non-recoverable error has occurred. A device reboot or a firmware update may be required.PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB— A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB— The runtime has recovered from a previous error and is functioning normally.
- See Also:
-
-
Method Details
-
nxrCreatePassthroughFB
Unsafe version of:CreatePassthroughFB -
xrCreatePassthroughFB
public static int xrCreatePassthroughFB(XrSession session, XrPassthroughCreateInfoFB createInfo, org.lwjgl.PointerBuffer outPassthrough) Create a passthrough feature.C Specification
The
CreatePassthroughFBfunction is defined as:XrResult xrCreatePassthroughFB( XrSession session, const XrPassthroughCreateInfoFB* createInfo, XrPassthroughFB* outPassthrough);Description
Creates an
XrPassthroughFBhandle. The returned passthrough handle may be subsequently used in API calls.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingCreatePassthroughFB sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrPassthroughCreateInfoFBstructureoutPassthroughmust be a pointer to anXrPassthroughFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
ERROR_FUNCTION_UNSUPPORTEDERROR_VALIDATION_FAILUREERROR_RUNTIME_FAILUREERROR_HANDLE_INVALIDERROR_INSTANCE_LOSTERROR_SESSION_LOSTERROR_OUT_OF_MEMORYERROR_LIMIT_REACHEDERROR_UNKNOWN_PASSTHROUGH_FBERROR_NOT_PERMITTED_PASSTHROUGH_FBERROR_FEATURE_UNSUPPORTEDERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB
See Also
- Parameters:
session- theXrSession.createInfo- theXrPassthroughCreateInfoFB.outPassthrough- theXrPassthroughFB.
- The
-
xrDestroyPassthroughFB
Destroy a passthrough feature.C Specification
The
DestroyPassthroughFBfunction is defined as:XrResult xrDestroyPassthroughFB( XrPassthroughFB passthrough);Description
Destroys an
XrPassthroughFBhandle.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingDestroyPassthroughFB passthroughmust be a validXrPassthroughFBhandle
Thread Safety
- Access to
passthrough, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
passthrough- theXrPassthroughFBto be destroyed.
- The
-
xrPassthroughStartFB
Start a passthrough feature.C Specification
The
PassthroughStartFBfunction is defined as:XrResult xrPassthroughStartFB( XrPassthroughFB passthrough);Description
Starts an
XrPassthroughFBfeature. If the feature is not started, either explicitly with a call toPassthroughStartFB, or implicitly at creation using the behavior flags, it is considered paused. When the feature is paused, runtime will stop rendering and compositing all passthrough layers produced on behalf of the application, and may free up some or all the resources used to produce passthrough untilPassthroughStartFBis called.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingPassthroughStartFB passthroughmust be a validXrPassthroughFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
passthrough- theXrPassthroughFBto be started.
- The
-
xrPassthroughPauseFB
Pause a passthrough feature.C Specification
The
PassthroughPauseFBfunction is defined as:XrResult xrPassthroughPauseFB( XrPassthroughFB passthrough);Description
Pauses an
XrPassthroughFBfeature. When the feature is paused, runtime will stop rendering and compositing all passthrough layers produced on behalf of the application, and may free up some or all the resources used to produce passthrough untilPassthroughStartFBis called.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingPassthroughPauseFB passthroughmust be a validXrPassthroughFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
passthrough- theXrPassthroughFBto be paused.
- The
-
nxrCreatePassthroughLayerFB
Unsafe version of:CreatePassthroughLayerFB -
xrCreatePassthroughLayerFB
public static int xrCreatePassthroughLayerFB(XrSession session, XrPassthroughLayerCreateInfoFB createInfo, org.lwjgl.PointerBuffer outLayer) Create a passthrough layer.C Specification
The
CreatePassthroughLayerFBfunction is defined as:XrResult xrCreatePassthroughLayerFB( XrSession session, const XrPassthroughLayerCreateInfoFB* createInfo, XrPassthroughLayerFB* outLayer);Description
Creates an
XrPassthroughLayerFBhandle. The returned layer handle may be subsequently used in API calls. Layer objects may be used to specify rendering properties of the layer, such as styles, and compositing rules.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingCreatePassthroughLayerFB sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrPassthroughLayerCreateInfoFBstructureoutLayermust be a pointer to anXrPassthroughLayerFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
ERROR_FUNCTION_UNSUPPORTEDERROR_VALIDATION_FAILUREERROR_RUNTIME_FAILUREERROR_HANDLE_INVALIDERROR_INSTANCE_LOSTERROR_SESSION_LOSTERROR_OUT_OF_MEMORYERROR_LIMIT_REACHEDERROR_UNKNOWN_PASSTHROUGH_FBERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FBERROR_FEATURE_UNSUPPORTEDERROR_FEATURE_REQUIRED_PASSTHROUGH_FB
See Also
- Parameters:
session- theXrSession.createInfo- theXrPassthroughLayerCreateInfoFB.outLayer- theXrPassthroughLayerFB.
- The
-
xrDestroyPassthroughLayerFB
Destroy a passthrough layer.C Specification
The
DestroyPassthroughLayerFBfunction is defined as:XrResult xrDestroyPassthroughLayerFB( XrPassthroughLayerFB layer);Description
Destroys an
XrPassthroughLayerFBhandle.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingDestroyPassthroughLayerFB layermust be a validXrPassthroughLayerFBhandle
Thread Safety
- Access to
layer, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
layer- theXrPassthroughLayerFBto be destroyed.
- The
-
xrPassthroughLayerPauseFB
Pause a passthrough layer.C Specification
The
PassthroughLayerPauseFBfunction is defined as:XrResult xrPassthroughLayerPauseFB( XrPassthroughLayerFB layer);Description
Pauses an
XrPassthroughLayerFBlayer. Runtime will not render or composite paused layers.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingPassthroughLayerPauseFB layermust be a validXrPassthroughLayerFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
layer- theXrPassthroughLayerFBto be paused.
- The
-
xrPassthroughLayerResumeFB
Resume a passthrough layer.C Specification
The
PassthroughLayerResumeFBfunction is defined as:XrResult xrPassthroughLayerResumeFB( XrPassthroughLayerFB layer);Description
Resumes an
XrPassthroughLayerFBlayer.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingPassthroughLayerResumeFB layermust be a validXrPassthroughLayerFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
layer- theXrPassthroughLayerFBto be resumed.
- The
-
nxrPassthroughLayerSetStyleFB
Unsafe version of:PassthroughLayerSetStyleFB -
xrPassthroughLayerSetStyleFB
public static int xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, XrPassthroughStyleFB style) Set style on a passthrough layer.C Specification
The
PassthroughLayerSetStyleFBfunction is defined as:XrResult xrPassthroughLayerSetStyleFB( XrPassthroughLayerFB layer, const XrPassthroughStyleFB* style);Description
Sets an
XrPassthroughStyleFBstyle on anXrPassthroughLayerFBlayer.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingPassthroughLayerSetStyleFB layermust be a validXrPassthroughLayerFBhandlestylemust be a pointer to a validXrPassthroughStyleFBstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
layer- theXrPassthroughLayerFBto get the style.style- theXrPassthroughStyleFBto be set.
- The
-
nxrCreateGeometryInstanceFB
public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) Unsafe version of:CreateGeometryInstanceFB -
xrCreateGeometryInstanceFB
public static int xrCreateGeometryInstanceFB(XrSession session, XrGeometryInstanceCreateInfoFB createInfo, org.lwjgl.PointerBuffer outGeometryInstance) Create a triangle mesh.C Specification
The
CreateGeometryInstanceFBfunction is defined as:XrResult xrCreateGeometryInstanceFB( XrSession session, const XrGeometryInstanceCreateInfoFB* createInfo, XrGeometryInstanceFB* outGeometryInstance);Description
Creates an
XrGeometryInstanceFBhandle. Geometry instance functionality requiresXR_FB_triangle_meshextension to be enabled. AnXrGeometryInstanceFBconnects a layer, a mesh, and a transformation, with the semantics that a specific mesh will be instantiated in a specific layer with a specific transformation. A mesh can be instantiated multiple times, in the same or in different layers.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingCreateGeometryInstanceFB sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrGeometryInstanceCreateInfoFBstructureoutGeometryInstancemust be a pointer to anXrGeometryInstanceFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSession.createInfo- theXrGeometryInstanceCreateInfoFB.outGeometryInstance- theXrGeometryInstanceFB.
- The
-
xrDestroyGeometryInstanceFB
Destroy a geometry instance.C Specification
The
DestroyGeometryInstanceFBfunction is defined as:XrResult xrDestroyGeometryInstanceFB( XrGeometryInstanceFB instance);Description
Destroys an
XrGeometryInstanceFBhandle. Destroying anXrGeometryInstanceFBdoes not destroy a mesh and does not free mesh resources. Destroying a layer invalidates all geometry instances attached to it. Destroying a mesh invalidates all its instances.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingDestroyGeometryInstanceFB instancemust be a validXrGeometryInstanceFBhandle
Thread Safety
- Access to
instance, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
instance- theXrGeometryInstanceFBto be destroyed.
- The
-
nxrGeometryInstanceSetTransformFB
public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) Unsafe version of:GeometryInstanceSetTransformFB -
xrGeometryInstanceSetTransformFB
public static int xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, XrGeometryInstanceTransformFB transformation) Create a triangle mesh.C Specification
The
GeometryInstanceSetTransformFBfunction is defined as:XrResult xrGeometryInstanceSetTransformFB( XrGeometryInstanceFB instance, const XrGeometryInstanceTransformFB* transformation);Description
Sets an
XrGeometryInstanceTransformFBtransform on anXrGeometryInstanceFBgeometry instance.Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to callingGeometryInstanceSetTransformFB instancemust be a validXrGeometryInstanceFBhandletransformationmust be a pointer to a validXrGeometryInstanceTransformFBstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- theXrGeometryInstanceFBto get the transform.transformation- theXrGeometryInstanceTransformFBto be set.
- The
-