openxr-0.1: Bindings to the OpenXR API
Safe HaskellNone
LanguageHaskell2010

OpenXR.Extensions.XR_KHR_opengl_es_enable

Description

Name

XR_KHR_opengl_es_enable - instance extension

Specification

See XR_KHR_opengl_es_enable in the main specification for complete information.

Registered Extension Number

25

Revision

7

Extension and Version Dependencies

  • Requires OpenXR 1.0

See Also

GraphicsBindingOpenGLESAndroidKHR, GraphicsRequirementsOpenGLESKHR, SwapchainImageOpenGLESKHR, getOpenGLESGraphicsRequirementsKHR

Document Notes

For more information, see the OpenXR Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

Synopsis

Documentation

getOpenGLESGraphicsRequirementsKHR Source #

Arguments

:: forall io. MonadIO io 
=> Instance

instance is an Instance handle previously created with createInstance.

-> SystemId

systemId is an https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId handle for the system which will be used to create a session.

-> io GraphicsRequirementsOpenGLESKHR 

xrGetOpenGLESGraphicsRequirementsKHR - Retrieve the OpenGL ES version requirements for an instance and system

Parameter Descriptions

Description

The getOpenGLESGraphicsRequirementsKHR function identifies to the application the minimum OpenGL ES version requirement and the highest known tested OpenGL ES version. The runtime must return ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING (ERROR_VALIDATION_FAILURE may be returned due to legacy behavior) on calls to createSession if getOpenGLESGraphicsRequirementsKHR has not been called for the same instance and systemId.

Valid Usage (Implicit)

Return Codes

Success
Failure

See Also

GraphicsRequirementsOpenGLESKHR, Instance, https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId

data GraphicsBindingOpenGLESAndroidKHR Source #

XrGraphicsBindingOpenGLESAndroidKHR - The graphics binding structure to be passed at session creation to use OpenGL ES on Android

Member Descriptions

Description

When creating an OpenGL ES-backed Session on Android, the application will provide a pointer to an GraphicsBindingOpenGLESAndroidKHR structure in the next chain of the SessionCreateInfo.

The required window system configuration define to expose this structure type is XR_USE_PLATFORM_ANDROID.

Valid Usage (Implicit)

See Also

StructureType, createSession

Constructors

GraphicsBindingOpenGLESAndroidKHR 

Fields

Instances

Instances details
Eq GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Show GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Storable GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Zero GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

ToCStruct GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

FromCStruct GraphicsBindingOpenGLESAndroidKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

data SwapchainImageOpenGLESKHR Source #

XrSwapchainImageOpenGLESKHR - OpenGL ES-specific swapchain image structure

Member Descriptions

Description

If a given session was created with a XrGraphicsBindingOpenGLES*KHR, the following conditions must apply.

The OpenXR runtime must interpret the bottom-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.

The OpenXR runtime must interpret the swapchain images in a clip space of positive Y pointing up, near Z plane at -1, and far Z plane at 1.

Valid Usage (Implicit)

See Also

StructureType, SwapchainImageBaseHeader

Constructors

SwapchainImageOpenGLESKHR 

Fields

  • image :: Word32

    image is an index indicating the current OpenGL ES swapchain image to use.

Instances

Instances details
Eq SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Show SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Storable SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Zero SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

ToCStruct SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

FromCStruct SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

IsSwapchainImage SwapchainImageOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

data GraphicsRequirementsOpenGLESKHR Source #

XrGraphicsRequirementsOpenGLESKHR - OpenGL ES API version requirements

Member Descriptions

Description

GraphicsRequirementsOpenGLESKHR is populated by getOpenGLESGraphicsRequirementsKHR with the runtime’s OpenGL ES API version requirements.

Valid Usage (Implicit)

See Also

StructureType, https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVersion, getOpenGLESGraphicsRequirementsKHR

Constructors

GraphicsRequirementsOpenGLESKHR 

Fields

  • minApiVersionSupported :: Version

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

  • maxApiVersionSupported :: Version

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

Instances

Instances details
Eq GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Show GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Storable GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

Zero GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

ToCStruct GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

FromCStruct GraphicsRequirementsOpenGLESKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_opengl_es_enable

type KHR_OPENGL_ES_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_es_enable" Source #

pattern KHR_OPENGL_ES_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #

type EGLConfig = Ptr () Source #