Function SDL_WindowSupportsGPUPresentMode

pub unsafe extern "C" fn SDL_WindowSupportsGPUPresentMode(
    device: *mut SDL_GPUDevice,
    window: *mut SDL_Window,
    present_mode: SDL_GPUPresentMode,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Determines whether a presentation mode is supported by the window.

The window must be claimed before calling this 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