Class METAFoveationEyeTracked
Eye tracked foveated rendering renders lower pixel density in the periphery of the user’s gaze, taking advantage of low peripheral acuity.
This extension allows:
- An application to query eye tracked foveation availability.
- An application to request eye tracked foveation profile supported by the runtime and apply them to foveation-supported swapchains.
- An application to query foveation center position every frame.
- An application to request a foveation pattern update from the runtime. As a consequence, runtime knows how to adjust the eye tracking camera exposure start time in order to optimize the total pipeline latency.
In order to enable the functionality of this extension, the application must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXR_FOVEATION_CENTER_SIZE_METAstatic final intXrFoveationEyeTrackedStateFlagBitsMETA - XrFoveationEyeTrackedStateFlagBitsMETAstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrGetFoveationEyeTrackedStateMETA(XrSession session, long foveationState) Unsafe version of:GetFoveationEyeTrackedStateMETAstatic intxrGetFoveationEyeTrackedStateMETA(XrSession session, XrFoveationEyeTrackedStateMETA foveationState) Get the current eye tracked foveation state.
-
Field Details
-
XR_META_foveation_eye_tracked_SPEC_VERSION
public static final int XR_META_foveation_eye_tracked_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_META_FOVEATION_EYE_TRACKED_EXTENSION_NAME
The extension name.- See Also:
-
XR_FOVEATION_CENTER_SIZE_META
public static final int XR_FOVEATION_CENTER_SIZE_METAXR_FOVEATION_CENTER_SIZE_META- See Also:
-
XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META
public static final int XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_METAExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META
public static final int XR_TYPE_FOVEATION_EYE_TRACKED_STATE_METAExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META
public static final int XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_METAExtendsXrStructureType.Enum values:
- See Also:
-
XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META
public static final int XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_METAXrFoveationEyeTrackedStateFlagBitsMETA - XrFoveationEyeTrackedStateFlagBitsMETAFlag Descriptions
FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META— Indicates whether or not foveation data is valid. This can happen if the eye tracker is obscured, the camera has dirt, or eye lid is closed, etc.
- See Also:
-
-
Method Details
-
nxrGetFoveationEyeTrackedStateMETA
Unsafe version of:GetFoveationEyeTrackedStateMETA -
xrGetFoveationEyeTrackedStateMETA
public static int xrGetFoveationEyeTrackedStateMETA(XrSession session, XrFoveationEyeTrackedStateMETA foveationState) Get the current eye tracked foveation state.C Specification
The
GetFoveationEyeTrackedStateMETAfunction is defined as:XrResult xrGetFoveationEyeTrackedStateMETA( XrSession session, XrFoveationEyeTrackedStateMETA* foveationState);Description
The
GetFoveationEyeTrackedStateMETAfunction returns the current eye tracked foveation state including the center of the foveal region, validity of the foveation data, etc.Note that
UpdateSwapchainFBshould be called right before theGetFoveationEyeTrackedStateMETAfunction in order to (1) request a foveation pattern update by the runtime (2) optionally instruct the runtime to adjust the eye tracking camera capture start time in order to optimize for pipeline latency.Valid Usage (Implicit)
- The
XR_META_foveation_eye_trackedextension must be enabled prior to callingGetFoveationEyeTrackedStateMETA sessionmust be a validXrSessionhandlefoveationStatemust be a pointer to anXrFoveationEyeTrackedStateMETAstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- theXrSessionin which the eye tracked foveation profile is applied.foveationState- a pointer to anXrFoveationEyeTrackedStateMETAstructure returning the current eye tracked foveation state.
- The
-