openxr topic

CategoryOpenXR

Functions for creating OpenXR handles for GPU API contexts.

For the most part, OpenXR operates independent of SDL, but the graphics initialization depends on direct support from the GPU API.

Functions

sdlCreateGpuxrSession(Pointer<SdlGpuDevice> device, Pointer<XrSessionCreateInfo> createinfo, Pointer<Uint64> session) int openxr
Creates an OpenXR session.
sdlCreateGpuxrSwapchain(Pointer<SdlGpuDevice> device, int session, Pointer<XrSwapchainCreateInfo> createinfo, int format, Pointer<Uint64> swapchain, Pointer<Pointer<Pointer<SdlGpuTexture>>> textures) int openxr
Creates an OpenXR swapchain.
sdlDestroyGpuxrSwapchain(Pointer<SdlGpuDevice> device, int swapchain, Pointer<Pointer<SdlGpuTexture>> swapchainImages) int openxr
Destroys and OpenXR swapchain previously returned by SDL_CreateGPUXRSwapchain.
sdlGetGpuxrSwapchainFormats(Pointer<SdlGpuDevice> device, int session, Pointer<Int32> numFormats) Pointer<Int32> openxr
Queries the GPU device for supported XR swapchain image formats.
sdlOpenXrGetXrGetInstanceProcAddr() Pointer<NativeType> openxr
Get the address of the xrGetInstanceProcAddr function.
sdlOpenXrLoadLibrary() bool openxr
Dynamically load the OpenXR loader.
sdlOpenXrUnloadLibrary() → void openxr
Unload the OpenXR loader previously loaded by SDL_OpenXR_LoadLibrary.