SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_CreateGPUXRSession

Creates an OpenXR session.

Header File

Defined in <SDL3/SDL_openxr.h>

Syntax

XrResult SDL_CreateGPUXRSession(SDL_GPUDevice *device, const XrSessionCreateInfo *createinfo, XrSession *session);

Function Parameters

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.

Return Value

(XrResult) Returns the result of the call.

Remarks

The OpenXR system ID is pulled from the passed GPU context.

Version

This function is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryOpenxr


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.