Man page - sdl_windowsupportsgpupresentmode(3)

Packages contas this manual

Manual

SDL_WindowSupportsGPUPresentMode(3) SDL3 FUNCTIONS SDL_WindowSupportsGPUPresentMode(3)

SDL_WindowSupportsGPUPresentMode - Determines whether a presentation mode is supported by the window.

Defined in SDL3/SDL_gpu.h

#include "SDL3/SDL.h"
bool SDL_WindowSupportsGPUPresentMode(
    SDL_GPUDevice *device,
    SDL_Window *window,
    SDL_GPUPresentMode present_mode);

The window must be claimed before calling this function.

a GPU context.
an SDL_Window .
the presentation mode 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