sdlOpenXrGetXrGetInstanceProcAddr function openxr
Get the address of the xrGetInstanceProcAddr function.
This should be called after either calling SDL_OpenXR_LoadLibrary() or creating an OpenXR SDL_GPUDevice.
The actual type of the returned function pointer is PFN_xrGetInstanceProcAddr, but that isn't always available. You should include the OpenXR headers before this header, or cast the return value of this function to the correct type.
\returns the function pointer for xrGetInstanceProcAddr or NULL on
failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.6.0.
extern SDL_DECLSPEC PFN_xrGetInstanceProcAddr SDLCALL SDL_OpenXR_GetXrGetInstanceProcAddr(void)
Implementation
Pointer<NativeType> sdlOpenXrGetXrGetInstanceProcAddr() {
final sdlOpenXrGetXrGetInstanceProcAddrLookupFunction = _libSdl
.lookupFunction<
Pointer<NativeType> Function(),
Pointer<NativeType> Function()
>('SDL_OpenXR_GetXrGetInstanceProcAddr');
return sdlOpenXrGetXrGetInstanceProcAddrLookupFunction();
}