Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- getOpenGLESGraphicsRequirementsKHR :: forall io. MonadIO io => Instance -> SystemId -> io GraphicsRequirementsOpenGLESKHR
- data GraphicsBindingOpenGLESAndroidKHR = GraphicsBindingOpenGLESAndroidKHR {}
- data SwapchainImageOpenGLESKHR = SwapchainImageOpenGLESKHR {}
- data GraphicsRequirementsOpenGLESKHR = GraphicsRequirementsOpenGLESKHR {}
- type KHR_opengl_es_enable_SPEC_VERSION = 7
- pattern KHR_opengl_es_enable_SPEC_VERSION :: forall a. Integral a => a
- type KHR_OPENGL_ES_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_es_enable"
- pattern KHR_OPENGL_ES_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- type EGLDisplay = Ptr ()
- type EGLConfig = Ptr ()
- type EGLContext = Ptr ()
Documentation
getOpenGLESGraphicsRequirementsKHR Source #
:: forall io. MonadIO io | |
=> Instance |
|
-> SystemId |
|
-> 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)
- The
@@ extension must be enabled prior to calling
getOpenGLESGraphicsRequirementsKHR
-
instance
must be a validInstance
handle -
graphicsRequirements
must be a pointer to anGraphicsRequirementsOpenGLESKHR
structure
Return Codes
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)
- The
@@ extension must be enabled prior to using
GraphicsBindingOpenGLESAndroidKHR
-
type
must beTYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
display
must be a validEGLDisplay
value -
config
must be a validEGLConfig
value -
context
must be a validEGLContext
value
See Also
GraphicsBindingOpenGLESAndroidKHR | |
|
Instances
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.
- Calls to
enumerateSwapchainImages
on anSwapchain
in that session must return an array ofSwapchainImageOpenGLESKHR
structures. - Whenever an OpenXR function accepts an
SwapchainImageBaseHeader
pointer as a parameter in that session, the runtime must also accept a pointer to anSwapchainImageOpenGLESKHR
structure.
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)
- The @@
extension must be enabled prior to using
SwapchainImageOpenGLESKHR
-
type
must beTYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain
See Also
Instances
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)
- The @@
extension must be enabled prior to using
GraphicsRequirementsOpenGLESKHR
-
type
must beTYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain
See Also
StructureType
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrVersion,
getOpenGLESGraphicsRequirementsKHR
GraphicsRequirementsOpenGLESKHR | |
|
Instances
type KHR_opengl_es_enable_SPEC_VERSION = 7 Source #
pattern KHR_opengl_es_enable_SPEC_VERSION :: forall a. Integral a => a Source #
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 EGLDisplay = Ptr () Source #
type EGLContext = Ptr () Source #