| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Extensions.XR_KHR_vulkan_enable
Description
Name
XR_KHR_vulkan_enable - instance extension
Specification
See XR_KHR_vulkan_enable in the main specification for complete information.
Registered Extension Number
26
Revision
7
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
GraphicsBindingVulkanKHR, GraphicsRequirementsVulkanKHR,
SwapchainImageVulkanKHR, getVulkanDeviceExtensionsKHR,
getVulkanGraphicsDeviceKHR, getVulkanGraphicsRequirementsKHR,
getVulkanInstanceExtensionsKHR
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
- getVulkanInstanceExtensionsKHR :: forall io. MonadIO io => Instance -> SystemId -> io ("buffer" ::: ByteString)
- getVulkanDeviceExtensionsKHR :: forall io. MonadIO io => Instance -> SystemId -> io ("buffer" ::: ByteString)
- getVulkanGraphicsDeviceKHR :: forall io. MonadIO io => Instance -> SystemId -> ("vkInstance" ::: Ptr Instance_T) -> io ("vkPhysicalDevice" ::: Ptr PhysicalDevice_T)
- getVulkanGraphicsRequirementsKHR :: forall io. MonadIO io => Instance -> SystemId -> io GraphicsRequirementsVulkanKHR
- data GraphicsBindingVulkanKHR = GraphicsBindingVulkanKHR {}
- data SwapchainImageVulkanKHR = SwapchainImageVulkanKHR {}
- data GraphicsRequirementsVulkanKHR = GraphicsRequirementsVulkanKHR {}
- type KHR_vulkan_enable_SPEC_VERSION = 7
- pattern KHR_vulkan_enable_SPEC_VERSION :: forall a. Integral a => a
- type KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable"
- pattern KHR_VULKAN_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
getVulkanInstanceExtensionsKHR :: forall io. MonadIO io => Instance -> SystemId -> io ("buffer" ::: ByteString) Source #
xrGetVulkanInstanceExtensionsKHR - Get list of required Vulkan instance extensions for an OpenXR instance and system
Parameter Descriptions
instanceis anInstancehandle previously created withcreateInstance.
systemIdis 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.bufferCapacityInputis the capacity of thebuffer, or 0 to indicate a request to retrieve the required capacity.bufferCountOutputis a pointer to the count of characters written (including terminating\0), or a pointer to the required capacity in the case thatbufferCapacityInputis 0.bufferis a pointer to an array of characters, but can beNULLifbufferCapacityInputis 0. The format of the output is a single space (ASCII0x20) delimited string of extension names.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
buffersize.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getVulkanInstanceExtensionsKHR
-
instancemust be a validInstancehandle -
bufferCountOutputmust be a pointer to auint32_tvalue - If
bufferCapacityInputis not0,buffermust be a pointer to an array ofbufferCapacityInputnull-terminated UTF-8 strings
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
getVulkanDeviceExtensionsKHR
getVulkanDeviceExtensionsKHR :: forall io. MonadIO io => Instance -> SystemId -> io ("buffer" ::: ByteString) Source #
xrGetVulkanDeviceExtensionsKHR - Get list of required Vulkan device extensions for an OpenXR instance and system
Parameter Descriptions
instanceis anInstancehandle previously created withcreateInstance.
systemIdis 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.bufferCapacityInputis the capacity of thebuffer, or 0 to indicate a request to retrieve the required capacity.bufferCountOutputis a pointer to the count of characters written (including terminating\0), or a pointer to the required capacity in the case thatbufferCapacityInputis 0.bufferis a pointer to an array of characters, but can beNULLifbufferCapacityInputis 0. The format of the output is a single space (ASCII0x20) delimited string of extension names.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
buffersize.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getVulkanDeviceExtensionsKHR
-
instancemust be a validInstancehandle -
bufferCountOutputmust be a pointer to auint32_tvalue - If
bufferCapacityInputis not0,buffermust be a pointer to an array ofbufferCapacityInputnull-terminated UTF-8 strings
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
getVulkanInstanceExtensionsKHR
getVulkanGraphicsDeviceKHR Source #
Arguments
| :: forall io. MonadIO io | |
| => Instance |
|
| -> SystemId |
|
| -> ("vkInstance" ::: Ptr Instance_T) |
|
| -> io ("vkPhysicalDevice" ::: Ptr PhysicalDevice_T) |
xrGetVulkanGraphicsDeviceKHR - Retrieve the Vulkan physical device associated with an OpenXR instance and system
Parameter Descriptions
Description
getVulkanGraphicsDeviceKHR function identifies to the application what
graphics device (Vulkan VkPhysicalDevice) needs to be used.
getVulkanGraphicsDeviceKHR must be called prior to calling
createSession, and the VkPhysicalDevice that
getVulkanGraphicsDeviceKHR returns should be passed to
createSession in the GraphicsBindingVulkanKHR.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getVulkanGraphicsDeviceKHR
-
instancemust be a validInstancehandle -
vkInstancemust be a validVkInstancevalue -
vkPhysicalDevicemust be a pointer to aVkPhysicalDevicevalue
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId
getVulkanGraphicsRequirementsKHR Source #
Arguments
| :: forall io. MonadIO io | |
| => Instance |
|
| -> SystemId |
|
| -> io GraphicsRequirementsVulkanKHR |
xrGetVulkanGraphicsRequirementsKHR - Retrieve the Vulkan version requirements for an instance and system
Parameter Descriptions
Description
The getVulkanGraphicsRequirementsKHR function identifies to the
application the minimum Vulkan version requirement and the highest known
tested Vulkan 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 getVulkanGraphicsRequirementsKHR has not been called for the same
instance and systemId.
Valid Usage (Implicit)
- The
@@ extension must be enabled prior to calling
getVulkanGraphicsRequirementsKHR
-
instancemust be a validInstancehandle -
graphicsRequirementsmust be a pointer to anGraphicsRequirementsVulkanKHRstructure
Return Codes
See Also
GraphicsRequirementsVulkanKHR, Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId
data GraphicsBindingVulkanKHR Source #
XrGraphicsBindingVulkanKHR - The graphics binding structure to be passed at session creation to use Vulkan
Member Descriptions
Description
When creating a Vulkan-backed Session, the
application will provide a pointer to an GraphicsBindingVulkanKHR in
the next chain of the SessionCreateInfo.
Valid Usage
instancemust have enabled a Vulkan API version in the range specified byGraphicsBindingVulkanKHR
instancemust have enabled all the instance extensions specified bygetVulkanInstanceExtensionsKHRphysicalDeviceVkPhysicalDevicemust match the device specified bygetVulkanGraphicsDeviceKHRdevicemust have enabled all the device extensions specified bygetVulkanDeviceExtensionsKHR
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingVulkanKHR
-
typemust beTYPE_GRAPHICS_BINDING_VULKAN_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
instancemust be a validVkInstancevalue -
physicalDevicemust be a validVkPhysicalDevicevalue -
devicemust be a validVkDevicevalue
See Also
Constructors
| GraphicsBindingVulkanKHR | |
Fields
| |
Instances
data SwapchainImageVulkanKHR Source #
XrSwapchainImageVulkanKHR - Vulkan-specific swapchain image structure
Member Descriptions
Description
If a given session was created with GraphicsBindingVulkanKHR, the
following conditions must apply.
- Calls to
enumerateSwapchainImageson anSwapchainin that session must return an array ofSwapchainImageVulkanKHRstructures. - Whenever an OpenXR function accepts an
SwapchainImageBaseHeaderpointer as a parameter in that session, the runtime must also accept a pointer to anSwapchainImageVulkanKHR.
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 down, near Z plane at 0, and far Z plane at 1.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
SwapchainImageVulkanKHR
-
typemust beTYPE_SWAPCHAIN_IMAGE_VULKAN_KHR -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
imagemust be a validVkImagevalue
See Also
Constructors
| SwapchainImageVulkanKHR | |
Instances
data GraphicsRequirementsVulkanKHR Source #
XrGraphicsRequirementsVulkanKHR - Vulkan API version requirements
Member Descriptions
Description
GraphicsRequirementsVulkanKHR is populated by
getVulkanGraphicsRequirementsKHR with the runtime’s Vulkan API version
requirements.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsRequirementsVulkanKHR
-
typemust beTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR -
nextmust beNULLor 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,
getVulkanGraphicsRequirements2KHR,
getVulkanGraphicsRequirementsKHR
Constructors
| GraphicsRequirementsVulkanKHR | |
Fields
| |
Instances
type KHR_vulkan_enable_SPEC_VERSION = 7 Source #
pattern KHR_vulkan_enable_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable" Source #
pattern KHR_VULKAN_ENABLE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #