SDL_WindowSupportsGPUSwapchainComposition
Determines whether a swapchain composition is supported by the window.
Synopsis
#include <SDL3/SDL_gpu.h>
bool SDL_WindowSupportsGPUSwapchainComposition(
SDL_GPUDevice *device,
SDL_Window *window,
SDL_GPUSwapchainComposition swapchain_composition);Description
The window must be claimed before calling this function.
Function Parameters
- device
a GPU context.
- window
an SDL_Window.
- swapchain_composition
the swapchain composition to check.
Return Value
Returns true if supported, false if unsupported.
Availability
This function is available since SDL 3.2.0.
See Also
Info
SDL 3.4.20 Simple Directmedia Layer SDL3 FUNCTIONS