XRFoveationFeature

This OpenXRInteractionFeature configures the XR_FB_foveation

extension at OpenXR runtime.

Summary

Inheritance

Inherits from: OpenXRFeature

Public attributes

ExtensionString = "XR_KHR_android_create_instance" + " XR_FB_foveation" + " XR_FB_foveation_configuration" + " XR_FB_swapchain_update_state" + " XR_FB_foveation_vulkan"
const string
The OpenXR Extension string.
FeatureId = "com.google.xr.extensions.foveation"
const string
The feature ID string.
UiName = "Foveation (Legacy)"
const string
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

Public static functions

FBSetFoveationLevel(XRFoveationLevel foveationLevel, float verticalOffset, bool foveationDynamic)
void
Configures foveation as if you were creating and setting a foveation profile via XrFoveationLevelProfileCreateInfoFB.

Public attributes

ExtensionString

const string ExtensionString = "XR_KHR_android_create_instance"
                                              + " XR_FB_foveation"
                                              + " XR_FB_foveation_configuration"
                                              + " XR_FB_swapchain_update_state"
                                              + " XR_FB_foveation_vulkan"

The OpenXR Extension string.

Used to check if this extensions is available or enabled.

FeatureId

const string FeatureId = "com.google.xr.extensions.foveation"

The feature ID string.

UiName

const string UiName = "Foveation (Legacy)"

The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

Public static functions

FBSetFoveationLevel

void FBSetFoveationLevel(
  XRFoveationLevel foveationLevel,
  float verticalOffset,
  bool foveationDynamic
)

Configures foveation as if you were creating and setting a foveation profile via XrFoveationLevelProfileCreateInfoFB.

Details
Parameters
foveationLevel
Corresponds to XrFoveationLevelProfileCreateInfoFB::level.
verticalOffset
Corresponds to XrFoveationLevelProfileCreateInfoFB::verticalOffset.
foveationDynamic
Corresponds to XrFoveationLevelProfileCreateInfoFB::dynamic.