SDL_WindowSupportsGPUPresentMode - Man Page

Determines whether a presentation mode is supported by the window.

Header File

Defined in SDL3/SDL_gpu.h

Synopsis

#include "SDL3/SDL.h"

bool SDL_WindowSupportsGPUPresentMode(
    SDL_GPUDevice *device,
    SDL_Window *window,
    SDL_GPUPresentMode present_mode);

Description

The window must be claimed before calling this function.

Function Parameters

device

a GPU context.

window

an SDL_Window .

present_mode

the presentation mode to check.

Return Value

Returns true if supported, false if unsupported.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_ClaimWindowForGPUDevice(3)

Referenced By

SDL_ClaimWindowForGPUDevice(3), SDL_GPUPresentMode.3type(3), SDL_SetGPUSwapchainParameters(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS