Scroll to navigation

SDL_WindowSupportsGPUSwapchainComposition(3) SDL3 FUNCTIONS SDL_WindowSupportsGPUSwapchainComposition(3)

NAME

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

HEADER FILE

Defined in SDL3/SDL_gpu.h

SYNOPSIS

#include "SDL3/SDL.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

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

RETURN VALUE

Returns true if supported, false if unsupported.

AVAILABILITY

This function is available since SDL 3.1.3.

SEE ALSO

(3), SDL_ClaimWindowForGPUDevice(3)

SDL 3.1.6 Simple Directmedia Layer