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

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

Documentation

getD3D11GraphicsRequirementsKHR 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 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)

Return Codes

Success
Failure

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)

See Also

StructureType, createSession

Constructors

GraphicsBindingD3D11KHR 

Fields

Instances

Instances details
Eq GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Show GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Storable GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Zero GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

ToCStruct GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

FromCStruct GraphicsBindingD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

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.

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)

See Also

StructureType, SwapchainImageBaseHeader

Constructors

SwapchainImageD3D11KHR 

Fields

Instances

Instances details
Eq SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Show SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Storable SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Zero SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

ToCStruct SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

FromCStruct SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

IsSwapchainImage SwapchainImageD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

data GraphicsRequirementsD3D11KHR Source #

XrGraphicsRequirementsD3D11KHR - D3D11 feature level and LUID requirements

Member Descriptions

Description

GraphicsRequirementsD3D11KHR is populated by getD3D11GraphicsRequirementsKHR.

Valid Usage (Implicit)

See Also

StructureType, getD3D11GraphicsRequirementsKHR

Constructors

GraphicsRequirementsD3D11KHR 

Fields

Instances

Instances details
Eq GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Show GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Storable GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

Zero GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

ToCStruct GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

FromCStruct GraphicsRequirementsD3D11KHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_D3D11_enable

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 #