DOKK / manpages / debian 13 / libsdl3-doc / SDL_WindowSupportsGPUSwapchainComposition.3.en
SDL_WindowSupportsGPUSwapchainComposition(3) SDL3 FUNCTIONS SDL_WindowSupportsGPUSwapchainComposition(3)

SDL_WindowSupportsGPUSwapchainComposition - Determines whether a swapchain composition is supported by the window.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
bool SDL_WindowSupportsGPUSwapchainComposition(
    SDL_GPUDevice *device,
    SDL_Window *window,
    SDL_GPUSwapchainComposition swapchain_composition);

The window must be claimed before calling this function.

a GPU context.
an SDL_Window .
the swapchain composition to check.

Returns true if supported, false if unsupported.

This function is available since SDL 3.2.0.

(3), SDL_ClaimWindowForGPUDevice(3)

SDL 3.2.10 Simple Directmedia Layer