C Specification

The XrGraphicsRequirementsOpenGLKHR structure is defined as:

typedef struct XrGraphicsRequirementsOpenGLKHR {
    XrStructureType       type;
    void* XR_MAY_ALIAS    next;
    uint32_t              minApiVersionSupported;
    uint32_t              maxApiVersionSupported;
} XrGraphicsRequirementsOpenGLKHR;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to an extension-specific structure.

  • minApiVersionSupported is the minimum version of OpenGL that the runtime supports. Uses XR_MAKE_VERSION on major and minor API version, ignoring any patch version component.

  • maxApiVersionSupported is the maximum version of OpenGL that the runtime has been tested on and is known to support. Newer OpenGL versions might work if they are compatible. Uses XR_MAKE_VERSION on major and minor API version, ignoring any patch version component.

Description

XrGraphicsRequirementsOpenGLKHR is populated by xrGetOpenGLGraphicsRequirementsKHR with the runtime’s OpenGL API version requirements.

Valid Usage (Implicit)
  • The [XR_KHR_opengl_enable] extension must be enabled prior to using XrGraphicsRequirementsOpenGLKHR

  • type must be XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR

  • next must be NULL

  • minApiVersionSupported must be a valid uint32_t value

  • maxApiVersionSupported must be a valid uint32_t value

See Also

Document Notes

For more information, see the OpenXR Specification at URL

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.