Dynamically load the OpenXR loader.
Defined in <SDL3/SDL_openxr.h>
bool SDL_OpenXR_LoadLibrary(void);(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
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.
This function is not thread safe.
This function is available since SDL 3.6.0.