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

SDL_OpenXR_LoadLibrary

Dynamically load the OpenXR loader.

Header File

Defined in <SDL3/SDL_openxr.h>

Syntax

bool SDL_OpenXR_LoadLibrary(void);

Return Value

(bool) Returns true on success or false on failure; call SDL_GetError() for more information.

Remarks

This can be called at any time.

SDL keeps a reference count of the OpenXR loader, calling this function multiple times will increment that count, rather than loading the library multiple times.

If not called, this will be implicitly called when creating a GPU device with OpenXR.

This function will use the platform default OpenXR loader name, unless the SDL_HINT_OPENXR_LIBRARY hint is set.

Thread Safety

This function is not thread safe.

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.