Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
instance
is anInstance
handle previously created withcreateInstance
.
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.bufferCapacityInput
is the capacity of thebuffer
, or 0 to indicate a request to retrieve the required capacity.bufferCountOutput
is a pointer to the count of characters written (including terminating\0
), or a pointer to the required capacity in the case thatbufferCapacityInput
is 0.buffer
is a pointer to an array of characters, but can beNULL
ifbufferCapacityInput
is 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
buffer
size.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getVulkanInstanceExtensionsKHR
-
instance
must be a validInstance
handle -
bufferCountOutput
must be a pointer to auint32_t
value - If
bufferCapacityInput
is not0
,buffer
must be a pointer to an array ofbufferCapacityInput
null-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
instance
is anInstance
handle previously created withcreateInstance
.
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.bufferCapacityInput
is the capacity of thebuffer
, or 0 to indicate a request to retrieve the required capacity.bufferCountOutput
is a pointer to the count of characters written (including terminating\0
), or a pointer to the required capacity in the case thatbufferCapacityInput
is 0.buffer
is a pointer to an array of characters, but can beNULL
ifbufferCapacityInput
is 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
buffer
size.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
getVulkanDeviceExtensionsKHR
-
instance
must be a validInstance
handle -
bufferCountOutput
must be a pointer to auint32_t
value - If
bufferCapacityInput
is not0
,buffer
must be a pointer to an array ofbufferCapacityInput
null-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 #
:: 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
-
instance
must be a validInstance
handle -
vkInstance
must be a validVkInstance
value -
vkPhysicalDevice
must be a pointer to aVkPhysicalDevice
value
Return Codes
See Also
Instance
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId
getVulkanGraphicsRequirementsKHR Source #
:: 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
-
instance
must be a validInstance
handle -
graphicsRequirements
must be a pointer to anGraphicsRequirementsVulkanKHR
structure
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
instance
must have enabled a Vulkan API version in the range specified byGraphicsBindingVulkanKHR
instance
must have enabled all the instance extensions specified bygetVulkanInstanceExtensionsKHR
physicalDevice
VkPhysicalDevice
must match the device specified bygetVulkanGraphicsDeviceKHR
device
must have enabled all the device extensions specified bygetVulkanDeviceExtensionsKHR
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
GraphicsBindingVulkanKHR
-
type
must beTYPE_GRAPHICS_BINDING_VULKAN_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
instance
must be a validVkInstance
value -
physicalDevice
must be a validVkPhysicalDevice
value -
device
must be a validVkDevice
value
See Also
GraphicsBindingVulkanKHR | |
|
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
enumerateSwapchainImages
on anSwapchain
in that session must return an array ofSwapchainImageVulkanKHR
structures. - Whenever an OpenXR function accepts an
SwapchainImageBaseHeader
pointer 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
-
type
must beTYPE_SWAPCHAIN_IMAGE_VULKAN_KHR
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
image
must be a validVkImage
value
See Also
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
-
type
must beTYPE_GRAPHICS_REQUIREMENTS_VULKAN_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,
getVulkanGraphicsRequirements2KHR
,
getVulkanGraphicsRequirementsKHR
GraphicsRequirementsVulkanKHR | |
|
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 #