Creates an OpenXR session.
Defined in <SDL3/SDL_openxr.h>
XrResult SDL_CreateGPUXRSession(SDL_GPUDevice *device, const XrSessionCreateInfo *createinfo, XrSession *session);| SDL_GPUDevice * | device | a GPU context. |
| const XrSessionCreateInfo * | createinfo | the create info for the OpenXR session, sans the system ID. |
| XrSession * | session | a pointer filled in with an OpenXR session created for the given device. |
(XrResult) Returns the result of the call.
The OpenXR system ID is pulled from the passed GPU context.
This function is available since SDL 3.6.0.