Function SDL_WindowSupportsGPUSwapchainComposition
pub unsafe extern "C" fn SDL_WindowSupportsGPUSwapchainComposition(
device: *mut SDL_GPUDevice,
window: *mut SDL_Window,
swapchain_composition: SDL_GPUSwapchainComposition,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Determines whether a swapchain composition is supported by the window.
The window must be claimed before calling this function.
§Parameters
device
: a GPU context.window
: anSDL_Window
.swapchain_composition
: the swapchain composition to check.
§Return value
Returns true if supported, false if unsupported.
§Availability
This function is available since SDL 3.2.0.