Safe Haskell | None |
---|---|
Language | Haskell2010 |
Name
XR_KHR_opengl_enable - instance extension
Specification
See XR_KHR_opengl_enable in the main specification for complete information.
Registered Extension Number
24
Revision
9
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
GraphicsBindingOpenGLWaylandKHR
, GraphicsBindingOpenGLWin32KHR
,
GraphicsBindingOpenGLXcbKHR
, GraphicsBindingOpenGLXlibKHR
,
GraphicsRequirementsOpenGLKHR
, SwapchainImageOpenGLKHR
,
getOpenGLGraphicsRequirementsKHR
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
- getOpenGLGraphicsRequirementsKHR :: forall io. MonadIO io => Instance -> SystemId -> io GraphicsRequirementsOpenGLKHR
- data GraphicsBindingOpenGLWin32KHR = GraphicsBindingOpenGLWin32KHR {}
- data GraphicsBindingOpenGLXlibKHR = GraphicsBindingOpenGLXlibKHR {}
- data GraphicsBindingOpenGLXcbKHR = GraphicsBindingOpenGLXcbKHR {}
- data GraphicsBindingOpenGLWaylandKHR = GraphicsBindingOpenGLWaylandKHR {
- display :: Ptr Wl_display
- data SwapchainImageOpenGLKHR = SwapchainImageOpenGLKHR {}
- data GraphicsRequirementsOpenGLKHR = GraphicsRequirementsOpenGLKHR {}
- type KHR_opengl_enable_SPEC_VERSION = 9
- pattern KHR_opengl_enable_SPEC_VERSION :: forall a. Integral a => a
- type KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable"
- pattern KHR_OPENGL_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- type HDC = Ptr ()
- type HGLRC = Ptr ()
- type Display = Ptr ()
- type Xcb_visualid_t = Word32
- type Xcb_glx_fbconfig_t = Word32
- type Xcb_glx_drawable_t = Word32
- type Xcb_glx_context_t = Word32
- type GLXFBConfig = Ptr ()
- type GLXDrawable = Word64
- type GLXContext = Ptr ()
- data Xcb_connection_t
- data Wl_display
Documentation
getOpenGLGraphicsRequirementsKHR Source #
:: forall io. MonadIO io | |
=> Instance |
|
-> SystemId |
|
-> io GraphicsRequirementsOpenGLKHR |
xrGetOpenGLGraphicsRequirementsKHR - Retrieve the OpenGL version requirements for an instance and system
Parameter Descriptions
Description
The getOpenGLGraphicsRequirementsKHR
function identifies to the
application the minimum OpenGL version requirement and the highest known
tested OpenGL 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 getOpenGLGraphicsRequirementsKHR
has not been called for the same
instance
and systemId
.
Valid Usage (Implicit)
- The
@@ extension must be enabled prior to calling
getOpenGLGraphicsRequirementsKHR
-
instance
must be a validInstance
handle -
graphicsRequirements
must be a pointer to anGraphicsRequirementsOpenGLKHR
structure
Return Codes
See Also
GraphicsRequirementsOpenGLKHR
, Instance
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId
data GraphicsBindingOpenGLWin32KHR Source #
XrGraphicsBindingOpenGLWin32KHR - The graphics binding structure to be passed at session creation to use OpenGL on Windows
Member Descriptions
Description
When creating an OpenGL-backed Session
on
Microsoft Windows, the application will provide a pointer to an
GraphicsBindingOpenGLWin32KHR
in the next
chain of the
SessionCreateInfo
. As no standardized way exists
for OpenGL to create the graphics context on a specific GPU, the runtime
must assume that the application uses the operating systems default
GPU. If the GPU used by the runtime does not match the GPU on which the
OpenGL context of the application got created,
createSession
must return
ERROR_GRAPHICS_DEVICE_INVALID
.
The required window system configuration define to expose this structure type is XR_USE_PLATFORM_WIN32.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingOpenGLWin32KHR
-
type
must beTYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
hDC
must be a validHDC
value -
hGLRC
must be a validHGLRC
value
See Also
Instances
data GraphicsBindingOpenGLXlibKHR Source #
XrGraphicsBindingOpenGLXlibKHR - The graphics binding structure to be passed at session creation to use OpenGL on X11 via Xlib
Member Descriptions
Description
When creating an OpenGL-backed Session
on any
Linux/Unix platform that utilizes X11 and GLX, via the Xlib library,
the application will provide a pointer to an
GraphicsBindingOpenGLXlibKHR
in the next
chain of the
SessionCreateInfo
.
The required window system configuration define to expose this structure type is XR_USE_PLATFORM_XLIB.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingOpenGLXlibKHR
-
type
must beTYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
xDisplay
must be a pointer to aDisplay
value -
glxFBConfig
must be a validGLXFBConfig
value -
glxDrawable
must be a validGLXDrawable
value -
glxContext
must be a validGLXContext
value
See Also
GraphicsBindingOpenGLXlibKHR | |
|
Instances
data GraphicsBindingOpenGLXcbKHR Source #
XrGraphicsBindingOpenGLXcbKHR - The graphics binding structure to be passed at session creation to use OpenGL on X11 via XCB
Member Descriptions
Description
When creating an OpenGL-backed Session
on any
Linux/Unix platform that utilizes X11 and GLX, via the Xlib library,
the application will provide a pointer to an
GraphicsBindingOpenGLXcbKHR
in the next
chain of the
SessionCreateInfo
.
The required window system configuration define to expose this structure type is XR_USE_PLATFORM_XCB.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingOpenGLXcbKHR
-
type
must beTYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
connection
must be a pointer to anxcb_connection_t
value -
fbconfigid
must be a validxcb_glx_fbconfig_t
value -
visualid
must be a validxcb_visualid_t
value -
glxDrawable
must be a validxcb_glx_drawable_t
value -
glxContext
must be a validxcb_glx_context_t
value
See Also
GraphicsBindingOpenGLXcbKHR | |
|
Instances
data GraphicsBindingOpenGLWaylandKHR Source #
XrGraphicsBindingOpenGLWaylandKHR - The graphics binding structure to be passed at session creation to use OpenGL on Wayland
Member Descriptions
Description
When creating an OpenGL-backed Session
on any
Linux/Unix platform that utilizes the Wayland protocol with its
compositor, the application will provide a pointer to an
GraphicsBindingOpenGLWaylandKHR
in the next
chain of the
SessionCreateInfo
.
The required window system configuration define to expose this structure type is XR_USE_PLATFORM_WAYLAND.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingOpenGLWaylandKHR
-
type
must beTYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
display
must be a pointer to awl_display
value
See Also
GraphicsBindingOpenGLWaylandKHR | |
|
Instances
data SwapchainImageOpenGLKHR Source #
XrSwapchainImageOpenGLKHR - OpenGL-specific swapchain image structure
Member Descriptions
Description
If a given session was created with a XrGraphicsBindingOpenGL*KHR
, the
following conditions must apply.
- Calls to
enumerateSwapchainImages
on anSwapchain
in that session must return an array ofSwapchainImageOpenGLKHR
structures. - Whenever an OpenXR function accepts an
SwapchainImageBaseHeader
pointer as a parameter in that session, the runtime must also accept a pointer to anSwapchainImageOpenGLKHR
.
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
SwapchainImageOpenGLKHR
-
type
must beTYPE_SWAPCHAIN_IMAGE_OPENGL_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain
See Also
Instances
data GraphicsRequirementsOpenGLKHR Source #
XrGraphicsRequirementsOpenGLKHR - OpenGL API version requirements
Member Descriptions
Description
GraphicsRequirementsOpenGLKHR
is populated by
getOpenGLGraphicsRequirementsKHR
with the runtime’s OpenGL API version
requirements.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsRequirementsOpenGLKHR
-
type
must beTYPE_GRAPHICS_REQUIREMENTS_OPENGL_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,
getOpenGLGraphicsRequirementsKHR
GraphicsRequirementsOpenGLKHR | |
|
Instances
type KHR_opengl_enable_SPEC_VERSION = 9 Source #
pattern KHR_opengl_enable_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable" Source #
pattern KHR_OPENGL_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
type Xcb_visualid_t = Word32 Source #
type Xcb_glx_fbconfig_t = Word32 Source #
type Xcb_glx_drawable_t = Word32 Source #
type Xcb_glx_context_t = Word32 Source #
type GLXFBConfig = Ptr () Source #
type GLXDrawable = Word64 Source #
type GLXContext = Ptr () Source #
data Xcb_connection_t Source #
data Wl_display Source #