Package org.lwjgl.openxr
Class MNDHeadless
java.lang.Object
org.lwjgl.openxr.MNDHeadless
The XR_MND_headless extension.
Some applications may wish to access XR interaction devices without presenting any image content on the display(s). This extension provides a mechanism for writing such an application using the OpenXR API. It modifies the specification in the following ways, without adding any new named entities.
- When this extension is enabled, an application may call
CreateSessionwithout an stext:XrGraphicsBinding* structure in itsnextchain. In this case, the runtime must create a "headless" session that does not interact with the display. - In a headless session, the session state should proceed to
SESSION_STATE_READYdirectly fromSESSION_STATE_IDLE. - In a headless session, the
XrSessionBeginInfo::primaryViewConfigurationTypemust be ignored and may be 0. - In a headless session, the session state proceeds to
SESSION_STATE_SYNCHRONIZED, thenSESSION_STATE_VISIBLEandSESSION_STATE_FOCUSED, after the call toBeginSession. The application does not need to callWaitFrame,BeginFrame, orEndFrame, unlike with non-headless sessions. - In a headless session,
EnumerateSwapchainFormatsmust returnSUCCESSbut enumerate 0 formats. WaitFramemust setXrFrameState::shouldRendertoFALSEin a headless session. The VISIBLE and FOCUSED states are only used for their input-related semantics, not their rendering-related semantics, and these functions are permitted to allow minimal change between headless and non-headless code if desired.
Because WaitFrame is not required, an application using a headless session should sleep periodically to avoid consuming all available system resources in a busy-wait loop.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
-
Field Details
-
XR_MND_headless_SPEC_VERSION
public static final int XR_MND_headless_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_MND_HEADLESS_EXTENSION_NAME
The extension name.- See Also:
-