SDL_WindowSu...inComposition(3)
β¨ SDL_WindowSupportsGPUSwapchainComposition β¨
okay bestie, welcome to the SDL3 FUNCTIONS corner of the man pages, where we answer the big questions like "can this window even do that swapchain composition tho?" π
πΈ NAME πΈ
SDL_WindowSupportsGPUSwapchainComposition β literally just vibes-checks whether a swapchain composition is supported by the window. That's it. That's the whole job. π¦
π SYNOPSIS π
#include <SDL3/SDL_gpu.h>
bool SDL_WindowSupportsGPUSwapchainComposition(
SDL_GPUDevice *device,
SDL_Window *window,
SDL_GPUSwapchainComposition swapchain_composition);
like, copy it exactly, don't freestyle the signature, i'm watching π
π DESCRIPTION π
okay so the one thing you gotta know before you even think about calling this:
The window must be claimed before calling this function. no claim, no answer, periodt. π₯
That's the whole description. Short, sweet, iconic. Claim your window first (iykyk) and then come ask.
π FUNCTION PARAMETERS π
deviceβ a GPU context. your GPU device, your main character. π«Άwindowβ anSDL_Window. the window in question, the one we're checking on. πͺswapchain_compositionβ the swapchain composition to check. like, the specific one you wanna know about. π
π RETURN VALUE π
- Returns
trueif supported β - Returns
falseif unsupported β
that's it, that's the tea. no secret third option. π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on anything older, sorry babe, not for you π
π§ SEE ALSO π§
SDL_ClaimWindowForGPUDevice(3)β go claim that window first, bestie, you literally have to πΈ
Simple Directmedia Layer β’ SDL 3.4.18 β mwah, that's the version and the source, love that for us π and yes this was the SDL_WindowSu...inComposition(3) page the whole time, the title was just being shy. bye bestie, go claim your windows! πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms