Scroll to navigation

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

a GPU context.
the create info for the OpenXR session, sans the system ID.
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_CreateGPUDeviceWithProperties(3)

SDL 3.5.0 Simple Directmedia Layer