Class HTCFoveation
This extension enables an application to gain rendering performance improvement by reducing the pixel density of areas in the peripheral vision. The areas near the focal point still sustains the original pixel density than periphery.
The application can use this extension in the following steps:
- Create an
XrFoveationApplyInfoHTCstructure with the desired foveation configurations. - Apply the foveation configuration by calling
ApplyFoveationHTCwith desiredXrFoveationApplyInfoHTC.
Note
This extension is recommended for XrSession whose XrViewConfigurationType is VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modestatic final intXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modestatic final intXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modestatic final intXrFoveationLevelHTC - The pixel density drop level of periphery areastatic final intXrFoveationLevelHTC - The pixel density drop level of periphery areastatic final intXrFoveationLevelHTC - The pixel density drop level of periphery areastatic final intXrFoveationLevelHTC - The pixel density drop level of periphery areastatic final intXrFoveationModeHTC - Foveation modestatic final intXrFoveationModeHTC - Foveation modestatic final intXrFoveationModeHTC - Foveation modestatic final intXrFoveationModeHTC - Foveation modestatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrApplyFoveationHTC(XrSession session, long applyInfo) Unsafe version of:ApplyFoveationHTCstatic intxrApplyFoveationHTC(XrSession session, XrFoveationApplyInfoHTC applyInfo) Apply foveation config to system.
-
Field Details
-
XR_HTC_foveation_SPEC_VERSION
public static final int XR_HTC_foveation_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_HTC_FOVEATION_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_FOVEATION_APPLY_INFO_HTC
public static final int XR_TYPE_FOVEATION_APPLY_INFO_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC
public static final int XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC
public static final int XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTCExtendsXrStructureType.Enum values:
- See Also:
-
XR_FOVEATION_MODE_DISABLE_HTC
public static final int XR_FOVEATION_MODE_DISABLE_HTCXrFoveationModeHTC - Foveation modeEnumerant Descriptions
FOVEATION_MODE_DISABLE_HTC— No foveationFOVEATION_MODE_FIXED_HTC— Apply system default setting with fixed clear FOV and periphery quality.FOVEATION_MODE_DYNAMIC_HTC— Allow system to set foveation dynamically according realtime system metric or other extensions.FOVEATION_MODE_CUSTOM_HTC— Allow application to set foveation with desired clear FOV, periphery quality, and focal center offset.
See Also
- See Also:
-
XR_FOVEATION_MODE_FIXED_HTC
public static final int XR_FOVEATION_MODE_FIXED_HTCXrFoveationModeHTC - Foveation modeEnumerant Descriptions
FOVEATION_MODE_DISABLE_HTC— No foveationFOVEATION_MODE_FIXED_HTC— Apply system default setting with fixed clear FOV and periphery quality.FOVEATION_MODE_DYNAMIC_HTC— Allow system to set foveation dynamically according realtime system metric or other extensions.FOVEATION_MODE_CUSTOM_HTC— Allow application to set foveation with desired clear FOV, periphery quality, and focal center offset.
See Also
- See Also:
-
XR_FOVEATION_MODE_DYNAMIC_HTC
public static final int XR_FOVEATION_MODE_DYNAMIC_HTCXrFoveationModeHTC - Foveation modeEnumerant Descriptions
FOVEATION_MODE_DISABLE_HTC— No foveationFOVEATION_MODE_FIXED_HTC— Apply system default setting with fixed clear FOV and periphery quality.FOVEATION_MODE_DYNAMIC_HTC— Allow system to set foveation dynamically according realtime system metric or other extensions.FOVEATION_MODE_CUSTOM_HTC— Allow application to set foveation with desired clear FOV, periphery quality, and focal center offset.
See Also
- See Also:
-
XR_FOVEATION_MODE_CUSTOM_HTC
public static final int XR_FOVEATION_MODE_CUSTOM_HTCXrFoveationModeHTC - Foveation modeEnumerant Descriptions
FOVEATION_MODE_DISABLE_HTC— No foveationFOVEATION_MODE_FIXED_HTC— Apply system default setting with fixed clear FOV and periphery quality.FOVEATION_MODE_DYNAMIC_HTC— Allow system to set foveation dynamically according realtime system metric or other extensions.FOVEATION_MODE_CUSTOM_HTC— Allow application to set foveation with desired clear FOV, periphery quality, and focal center offset.
See Also
- See Also:
-
XR_FOVEATION_LEVEL_NONE_HTC
public static final int XR_FOVEATION_LEVEL_NONE_HTCXrFoveationLevelHTC - The pixel density drop level of periphery areaEnumerant Descriptions
FOVEATION_LEVEL_NONE_HTC— No foveationFOVEATION_LEVEL_LOW_HTC— Light periphery pixel density drop and lower performance gain.FOVEATION_LEVEL_MEDIUM_HTC— Medium periphery pixel density drop and medium performance gainFOVEATION_LEVEL_HIGH_HTC— Heavy periphery pixel density drop and higher performance gain
See Also
- See Also:
-
XR_FOVEATION_LEVEL_LOW_HTC
public static final int XR_FOVEATION_LEVEL_LOW_HTCXrFoveationLevelHTC - The pixel density drop level of periphery areaEnumerant Descriptions
FOVEATION_LEVEL_NONE_HTC— No foveationFOVEATION_LEVEL_LOW_HTC— Light periphery pixel density drop and lower performance gain.FOVEATION_LEVEL_MEDIUM_HTC— Medium periphery pixel density drop and medium performance gainFOVEATION_LEVEL_HIGH_HTC— Heavy periphery pixel density drop and higher performance gain
See Also
- See Also:
-
XR_FOVEATION_LEVEL_MEDIUM_HTC
public static final int XR_FOVEATION_LEVEL_MEDIUM_HTCXrFoveationLevelHTC - The pixel density drop level of periphery areaEnumerant Descriptions
FOVEATION_LEVEL_NONE_HTC— No foveationFOVEATION_LEVEL_LOW_HTC— Light periphery pixel density drop and lower performance gain.FOVEATION_LEVEL_MEDIUM_HTC— Medium periphery pixel density drop and medium performance gainFOVEATION_LEVEL_HIGH_HTC— Heavy periphery pixel density drop and higher performance gain
See Also
- See Also:
-
XR_FOVEATION_LEVEL_HIGH_HTC
public static final int XR_FOVEATION_LEVEL_HIGH_HTCXrFoveationLevelHTC - The pixel density drop level of periphery areaEnumerant Descriptions
FOVEATION_LEVEL_NONE_HTC— No foveationFOVEATION_LEVEL_LOW_HTC— Light periphery pixel density drop and lower performance gain.FOVEATION_LEVEL_MEDIUM_HTC— Medium periphery pixel density drop and medium performance gainFOVEATION_LEVEL_HIGH_HTC— Heavy periphery pixel density drop and higher performance gain
See Also
- See Also:
-
XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC
public static final int XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTCXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modeFlag Descriptions
FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC— Allow system to set periphery pixel density dynamically.FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC— Allow system to set clear FOV degree dynamically.FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC— Allow system to set focal center offset dynamically.
- See Also:
-
XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC
public static final int XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTCXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modeFlag Descriptions
FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC— Allow system to set periphery pixel density dynamically.FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC— Allow system to set clear FOV degree dynamically.FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC— Allow system to set focal center offset dynamically.
- See Also:
-
XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC
public static final int XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTCXrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic modeFlag Descriptions
FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC— Allow system to set periphery pixel density dynamically.FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC— Allow system to set clear FOV degree dynamically.FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC— Allow system to set focal center offset dynamically.
- See Also:
-
-
Method Details
-
nxrApplyFoveationHTC
Unsafe version of:ApplyFoveationHTC -
xrApplyFoveationHTC
Apply foveation config to system.C Specification
The
ApplyFoveationHTCfunction is defined as:XrResult xrApplyFoveationHTC( XrSession session, const XrFoveationApplyInfoHTC* applyInfo);Description
The foveation configuration will be applied after this call, and the state will persist until the next call to
ApplyFoveationHTCor the end of thisXrSession, whichever comes first. You should not callApplyFoveationHTCduring rendering to target image layerXrSwapchainSubImagein render loop.Valid Usage (Implicit)
- The
XR_HTC_foveationextension must be enabled prior to callingApplyFoveationHTC sessionmust be a validXrSessionhandleapplyInfomust be a pointer to a validXrFoveationApplyInfoHTCstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- a handle to anXrSessionin which the foveation will apply to.applyInfo- a pointer to anXrFoveationApplyInfoHTCstructure containing information about the foveation configuration and appliedXrSwapchainSubImage.
- The
-