XrInstance
XrInstance is the top-level handle in the OpenXR API that represents a connection between an application and an OpenXR runtime. An application creates an XrInstance by calling xrCreateInstance and later destroys it with xrDestroyInstance. The instance owns runtime configuration, available extensions, and validation layers used during the lifetime of the application’s OpenXR usage. A single application may create multiple instances, though typically one per process.
Creation and configuration are performed by supplying an XrInstanceCreateInfo structure. This includes applicationInfo, which identifies the
Instances expose runtime properties through calls such as xrGetInstanceProperties and xrEnumerateInstanceExtensionProperties. These allow an application to
XrSession creation depends on the chosen system and is performed with xrCreateSession. An application may create
Error handling during creation and usage covers common OpenXR error codes, such as initialization or availability