Class EXTXOverlay
Application developers may desire to implement an OpenXR application that renders content on top of another OpenXR application. These additional applications will execute in a separate process, create a separate session, generate separate content, but want the OpenXR runtime to composite their content on top of the main OpenXR application. Examples of these applications might include:
- A debug environment outputting additional content
- A Store application that hovers to one side of the user’s view
- A interactive HUD designed to expose additional chat features
This extension introduces the concept of "Overlay Sessions" in order to expose this usage model.
This extension allows:
- An application to identify when the current sessions composition layers will be applied during composition
- The ability for an overlay session to get information about what is going on with the main application
To enable the functionality of this extension, an application must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
To create an overlay session, an application must pass an XrSessionCreateInfoOverlayEXTX structure to CreateSession via the XrSessionCreateInfo structure’s next parameter.
An overlay application should not assume that the values returned to it by WaitFrame in predictedDisplayTime in XrFrameState will be the same as the values returned to the main application or even correlated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intXrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTXstatic final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
-
Field Details
-
XR_EXTX_overlay_SPEC_VERSION
public static final int XR_EXTX_overlay_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_EXTX_OVERLAY_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX
public static final int XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTXExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX
public static final int XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTXExtendsXrStructureType.Enum values:
- See Also:
-
XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTX
public static final int XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTXXrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTX- See Also:
-