| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Extensions.XR_KHR_D3D11_enable
Description
Name
XR_KHR_D3D11_enable - instance extension
Specification
See XR_KHR_D3D11_enable in the main specification for complete information.
Registered Extension Number
28
Revision
5
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
GraphicsBindingD3D11KHR, GraphicsRequirementsD3D11KHR,
SwapchainImageD3D11KHR, getD3D11GraphicsRequirementsKHR
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
- getD3D11GraphicsRequirementsKHR :: forall io. MonadIO io => Instance -> SystemId -> io GraphicsRequirementsD3D11KHR
- data GraphicsBindingD3D11KHR = GraphicsBindingD3D11KHR {}
- data SwapchainImageD3D11KHR = SwapchainImageD3D11KHR {}
- data GraphicsRequirementsD3D11KHR = GraphicsRequirementsD3D11KHR {}
- type KHR_D3D11_enable_SPEC_VERSION = 5
- pattern KHR_D3D11_enable_SPEC_VERSION :: forall a. Integral a => a
- type KHR_D3D11_ENABLE_EXTENSION_NAME = "XR_KHR_D3D11_enable"
- pattern KHR_D3D11_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- type LUID = Word64
- type D3D_FEATURE_LEVEL = Word32
- data ID3D11Device
- data ID3D11Texture2D
Documentation
getD3D11GraphicsRequirementsKHR Source #
Arguments
| :: forall io. MonadIO io | |
| => Instance |
|
| -> SystemId |
|
| -> io GraphicsRequirementsD3D11KHR |
xrGetD3D11GraphicsRequirementsKHR - Retrieve the D3D11 feature level and graphics device requirements for an instance and system
Parameter Descriptions
Description
The getD3D11GraphicsRequirementsKHR function identifies to the
application what graphics device (Windows LUID) needs to be used and the
minimum feature level to use. The runtime must return
ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING
(ERROR_VALIDATION_FAILURE may be returned
due to legacy behavior) on calls to createSession
if getD3D11GraphicsRequirementsKHR has not been called for the same
instance and systemId. The LUID and feature level that
getD3D11GraphicsRequirementsKHR returns should be used to create the
ID3D11Device that the application passes to
createSession in the GraphicsBindingD3D11KHR.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getD3D11GraphicsRequirementsKHR
-
instancemust be a validInstancehandle -
graphicsRequirementsmust be a pointer to anGraphicsRequirementsD3D11KHRstructure
Return Codes
See Also
GraphicsRequirementsD3D11KHR, Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
createSession
data GraphicsBindingD3D11KHR Source #
XrGraphicsBindingD3D11KHR - The graphics binding structure to be passed at session creation to use D3D11
Member Descriptions
Description
When creating a D3D11-backed Session, the
application will provide a pointer to an GraphicsBindingD3D11KHR in
the next chain of the SessionCreateInfo.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingD3D11KHR
-
typemust beTYPE_GRAPHICS_BINDING_D3D11_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
devicemust be a pointer to anID3D11Devicevalue
See Also
Constructors
| GraphicsBindingD3D11KHR | |
Fields
| |
Instances
data SwapchainImageD3D11KHR Source #
XrSwapchainImageD3D11KHR - D3D11-specific swapchain image structure
Member Descriptions
Description
If a given session was created with GraphicsBindingD3D11KHR, the
following conditions must apply.
- Calls to
enumerateSwapchainImageson anSwapchainin that session must return an array ofSwapchainImageD3D11KHRstructures. - Whenever an OpenXR function accepts an
SwapchainImageBaseHeaderpointer as a parameter in that session, the runtime must also accept a pointer to anSwapchainImageD3D11KHR.
The OpenXR runtime must interpret the top-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 0, and far Z plane at 1.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
SwapchainImageD3D11KHR
-
typemust beTYPE_SWAPCHAIN_IMAGE_D3D11_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
texturemust be a pointer to anID3D11Texture2Dvalue
See Also
Constructors
| SwapchainImageD3D11KHR | |
Fields
| |
Instances
data GraphicsRequirementsD3D11KHR Source #
XrGraphicsRequirementsD3D11KHR - D3D11 feature level and LUID requirements
Member Descriptions
Description
GraphicsRequirementsD3D11KHR is populated by
getD3D11GraphicsRequirementsKHR.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsRequirementsD3D11KHR
-
typemust beTYPE_GRAPHICS_REQUIREMENTS_D3D11_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
adapterLuidmust be a validLUIDvalue -
minFeatureLevelmust be a validD3D_FEATURE_LEVELvalue
See Also
Constructors
| GraphicsRequirementsD3D11KHR | |
Fields
| |
Instances
type KHR_D3D11_enable_SPEC_VERSION = 5 Source #
pattern KHR_D3D11_enable_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_D3D11_ENABLE_EXTENSION_NAME = "XR_KHR_D3D11_enable" Source #
pattern KHR_D3D11_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
type D3D_FEATURE_LEVEL = Word32 Source #
data ID3D11Device Source #
data ID3D11Texture2D Source #