Determines whether a swapchain composition is supported by the window.
Defined in <SDL3/SDL_gpu.h>
bool SDL_WindowSupportsGPUSwapchainComposition(
SDL_GPUDevice *device,
SDL_Window *window, SDL_GPUSwapchainComposition swapchain_composition);
SDL_GPUDevice * | device | a GPU context. |
SDL_Window * | window | an SDL_Window. |
SDL_GPUSwapchainComposition | swapchain_composition | the swapchain composition to check. |
(bool) Returns true if supported, false if unsupported.
The window must be claimed before calling this function.
This function is available since SDL 3.1.3.