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

SDL_OpenXR_GetXrGetInstanceProcAddr

Get the address of the xrGetInstanceProcAddr function.

Header File

Defined in <SDL3/SDL_openxr.h>

Syntax

PFN_xrGetInstanceProcAddr SDL_OpenXR_GetXrGetInstanceProcAddr(void);

Return Value

(PFN_xrGetInstanceProcAddr) Returns the function pointer for xrGetInstanceProcAddr or NULL on failure; call SDL_GetError() for more information.

Remarks

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.

Version

This function is available since SDL 3.6.0.


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.