WVR_GetFoveationDefaultConfig

WVR_EXPORT WVR_Result WVR_GetFoveationDefaultConfig(const WVR_Eye eye, WVR_RenderFoveationParams_t * foveatedParam)

Get default foveated rendering config of this device.

The default config will vary depending on the device. This function must be called after calling WVR_RenderInit.

Version
API Level 5
Parameters
  • eye: WVR_Eye, eye id to specify the side of scene.
  • foveatedParam: Foveated rendering config
Return Value
  • WVR_Success: get config successfully.
  • others: WVR_Result mean failure.

Struct and enumeration

WVR_RenderFoveationParams_t is defined as:

struct WVR_RenderFoveationParams

Foveation parameters.

Aggregate custom informations of foveated rendering. Using in WVR_PreRenderEye.

Public Members

float focalX

focalX: The x coordinate of the focal point in normalized device coordinates.

float focalY

focalY: The y coordinate of the focal point in normalized device coordinates.

float fovealFov

fovealFov: The fov of the foveal.

WVR_PeripheralQuality periQuality

periQuality: The peripheral quality of foveated rendering.

enum WVR_PeripheralQuality

Peripheral Quality which using in WVR_RenderFoveationParams_t.

Values:

WVR_PeripheralQuality_Low = 0x0000

WVR_PeripheralQuality_Low: Peripheral quity is low and power saving is high.

WVR_PeripheralQuality_Medium = 0x0001

WVR_PeripheralQuality_Medium: Peripheral quity is medium and power saving is medium.

WVR_PeripheralQuality_High = 0x0002

WVR_PeripheralQuality_High: Peripheral quity is high and power saving is low.

How to use

Here is an example for the function:

// Left eye
WVR_RenderFoveationParams_t foveated;
WVR_GetFoveationDefaultConfig(WVR_Eye_Left, &foveated)
LOGI("Foveated rendering focal on (%f,%f) fov %d quality %d",
        foveated.focalX, foveated.focalY
        foveated.fovealFov, foveated.periQuality);