table of contents
other versions
| SDL_CreateGPUXRSession(3) | SDL3 FUNCTIONS | SDL_CreateGPUXRSession(3) |
NAME¶
SDL_CreateGPUXRSession - Creates an OpenXR session.
SYNOPSIS¶
#include <SDL3/SDL_openxr.h>
XrResult SDL_CreateGPUXRSession(SDL_GPUDevice *device, const XrSessionCreateInfo *createinfo, XrSession *session);
DESCRIPTION¶
The OpenXR system ID is pulled from the passed GPU context.
FUNCTION PARAMETERS¶
- device
- a GPU context.
- createinfo
- the create info for the OpenXR session, sans the system ID.
- session
- a pointer filled in with an OpenXR session created for the given device.
RETURN VALUE¶
Returns the result of the call.
AVAILABILITY¶
This function is available since SDL 3.6.0.
SEE ALSO¶
| SDL 3.5.0 | Simple Directmedia Layer |