
org.lwjgl.openxr.VARJOQuadViews Maven / Gradle / Ivy
Show all versions of lwjgl-openxr Show documentation
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openxr;
/**
* The XR_VARJO_quad_views extension.
*
* This extension adds a new view configuration type - {@link #XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO} to {@code XrViewConfigurationType} which can be returned by {@link XR10#xrEnumerateViewConfigurations EnumerateViewConfigurations} to indicate that the runtime supports 4 viewports.
*
* In this configuration each eye consists of two viewports of which one is smaller (in terms of field of view) of the other and fully included inside of the larger FoV one. The small FoV viewport however can have a higher resolution with respect to the same field of view in the outer viewport. The motivation is special hardware which superimposes a smaller, high resolution screen for the fovea region onto a larger screen for the periphery.
*
* The runtime guarantees that the inner viewport of each eye is fully inside of the outer viewport.
*
* To enumerate the 4 views {@link XR10#xrEnumerateViewConfigurationViews EnumerateViewConfigurationViews} can be used. The first two views ({@link XrViewConfigurationView}) will be for the left and right eyes for the outer viewport. The views 2 and 3 are for the left and right eyes for the inner viewport.
*
* The relative position of the inner views relative to the outer views can change at run-time.
*
* The runtime must set {@code pose} for view 0 and 2 to be identical and must set {@code pose} for view 1 and 3 to be be identical when application calls {@link XR10#xrLocateViews LocateViews}.
*
* The runtime might blend between the views at the edges, so the application should not omit the inner field of view from being generated in the outer view.
*/
public final class VARJOQuadViews {
/** The extension specification version. */
public static final int XR_VARJO_quad_views_SPEC_VERSION = 2;
/** The extension name. */
public static final String XR_VARJO_QUAD_VIEWS_EXTENSION_NAME = "XR_VARJO_quad_views";
/** Extends {@code XrViewConfigurationType}. */
public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO = 1000037000;
private VARJOQuadViews() {}
}