Queries the GPU device for supported XR swapchain image formats.
Defined in <SDL3/SDL_openxr.h>
SDL_GPUTextureFormat * SDL_GetGPUXRSwapchainFormats(SDL_GPUDevice *device, XrSession session, int *num_formats);| SDL_GPUDevice * | device | a GPU context. |
| XrSession | session | an OpenXR session created for the given device. |
| int * | num_formats | a pointer filled with the number of supported XR swapchain formats. |
(SDL_GPUTextureFormat *) Returns a 0 terminated array of supported formats or NULL on failure; call SDL_GetError() for more information. This should be freed with SDL_free() when it is no longer needed.
The returned pointer should be allocated with SDL_malloc() and will be passed to SDL_free().
This function is available since SDL 3.6.0.