OpenXR add missing foveation

This commit is contained in:
Lubos 2022-04-21 21:15:02 +02:00
parent 4ff90d8ba0
commit 8431b1aa83

View file

@ -90,6 +90,13 @@ void VR_InitRenderer( engine_t* engine ) {
int eyeW, eyeH; int eyeW, eyeH;
VR_GetResolution(engine, &eyeW, &eyeH); VR_GetResolution(engine, &eyeW, &eyeH);
ovrRenderer_Create(engine->session, &engine->renderer, eyeW, eyeH); ovrRenderer_Create(engine->session, &engine->renderer, eyeW, eyeH);
ovrRenderer_SetFoveation(
&engine->instance,
&engine->session,
&engine->renderer,
XR_FOVEATION_LEVEL_HIGH_FB,
0,
XR_FOVEATION_DYNAMIC_DISABLED_FB);
XrReferenceSpaceCreateInfo spaceCreateInfo = {}; XrReferenceSpaceCreateInfo spaceCreateInfo = {};
spaceCreateInfo.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO; spaceCreateInfo.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO;