SDL_WINDOWSUPPORTSGPUPRESENTMODE(3)
β¨ SDL_WindowSupportsGPUPresentMode(3) β¨
okay so bestie, welcome to the SDL3 FUNCTIONS corner of the manual π
this one's called SDL_WindowSupportsGPUPresentMode and it lives in the SDL3 function family, no cap.
πΈ NAME πΈ
SDL_WindowSupportsGPUPresentMode β determines whether a presentation mode is supported by the window.
like. it literally just checks if your window can vibe with a given present mode. that's the whole job. π
π SYNOPSIS π
#include <SDL3/SDL_gpu.h>
bool SDL_WindowSupportsGPUPresentMode(
SDL_GPUDevice *device,
SDL_Window *window,
SDL_GPUPresentMode present_mode);
three args, one bool back. she's simple, she's efficient, she's iconic π¦
π DESCRIPTION π
The window must be claimed before calling this function.
and I cannot stress this enough bestie β CLAIMED FIRST. if you haven't claimed that window for the GPU device yet, this function is not gonna have a good time. go do your SDL_ClaimWindowForGPUDevice homework first, then come back. periodt. π«Ά
π FUNCTION PARAMETERS π
deviceβ a GPU context. that's your GPU brain, your main character, the thing doing all the actual work β¨windowβ anSDL_Window. yes. the window. the literal window. the one on your screen. πpresent_modeβ the presentation mode to check. like we're putting it up against the vibe check and seeing if it passes π
β RETURN VALUE β
Returns true if supported, false if unsupported.
that's it. that's the tea. true = slay, go ahead. false = nope, not happening, pick a different present mode babe π
π¦ AVAILABILITY π¦
This function is available since SDL 3.2.0.
so if you're on anything older than 3.2.0, she simply does not exist for you. upgrade era, fr fr π
π SEE ALSO π
SDL_ClaimWindowForGPUDevice(3)β the prerequisite bestie. the one you call FIRST. the opening act before the main event π
π reminder bestie: claim the window. I'm not gonna say it a fourth time. (I said it four times.) π«Ά
Simple Directmedia Layer β’ SDL 3.4.18 β mwah, that's the version and the source, love that for us π thanks for reading, go claim your window, drink some water, and stay hydrated my little GPU gremlin π§β¨
π¦ 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