C Specification
The XrGraphicsBindingMetalKHR structure is defined as:
// Provided by XR_KHR_metal_enable
typedef struct XrGraphicsBindingMetalKHR {
XrStructureType type;
const void* next;
void* commandQueue;
} XrGraphicsBindingMetalKHR;
Members
Description
To create a Metal-backed XrSession, the application provides a pointer
to an XrGraphicsBindingMetalKHR in the
XrSessionCreateInfo::next field of structure passed to
xrCreateSession.
The Metal command queue specified in
XrGraphicsBindingMetalKHR::commandQueue must be created on the
Metal device retrieved through
XrGraphicsRequirementsMetalKHR::metalDevice, otherwise
xrCreateSession must return XR_ERROR_GRAPHICS_DEVICE_INVALID.
Creating a session using this structure triggers several requirements on the runtime regarding swapchain images. See the specification of XrSwapchainImageMetalKHR for details.
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.