OpenXR - Increase foveation level

This commit is contained in:
Lubos 2023-03-09 21:04:30 +01:00
parent 7536b8dda0
commit f24026d163
2 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,7 @@ void VR_InitRenderer( engine_t* engine, bool multiview ) {
multiview, vulkanContext);
#ifdef ANDROID
if (VR_GetPlatformFlag(VR_PLATFORM_EXTENSION_FOVEATION)) {
ovrRenderer_SetFoveation(&engine->appState.Instance, &engine->appState.Session, &engine->appState.Renderer, XR_FOVEATION_LEVEL_HIGH_FB, 0, XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB);
ovrRenderer_SetFoveation(&engine->appState.Instance, &engine->appState.Session, &engine->appState.Renderer, XR_FOVEATION_LEVEL_HIGH_TOP_FB, 0, XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB);
}
#endif
initialized = true;

View File

@ -3476,6 +3476,7 @@ typedef enum XrFoveationLevelFB {
XR_FOVEATION_LEVEL_LOW_FB = 1,
XR_FOVEATION_LEVEL_MEDIUM_FB = 2,
XR_FOVEATION_LEVEL_HIGH_FB = 3,
XR_FOVEATION_LEVEL_HIGH_TOP_FB = 4,
XR_FOVEATION_LEVEL_MAX_ENUM_FB = 0x7FFFFFFF
} XrFoveationLevelFB;