SDL_WaitForGPUFences(3)
π SDL_WaitForGPUFences π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_WaitForGPUFences(3) β the function that just waits. patiently. dramatically. on purpose.
πΈ NAME πΈ
SDL_WaitForGPUFences</purl> β blocks the thread until the given fences are signaled.
like literally, it will sit there. it will not move. it is β¨committedβ¨.
π¦ SYNOPSIS π¦
#include <SDL3/SDL_gpu.h>
bool SDL_WaitForGPUFences(
SDL_GPUDevice *device,
bool wait_all,
SDL_GPUFence *const *fences,
Uint32 num_fences);
no cap, that's the whole vibe right there π
π FUNCTION PARAMETERS π
deviceβ a GPU context. it's giving "the whole entire world this function lives in" energy. you gotta hand it over.wait_allβ the picker of destinies, bestie:- if it's
0, you wait for any fence to be signaled (whoever gets there first, slay). - if it's
1, you wait for all fences to be signaled (every single one, no one left behind, periodt).
- if it's
fencesβ an array of fences to wait on. yes, an array, plural energy, we love a group activity π«Άnum_fencesβ the number of fences in thefencesarray. gotta tell it how many besties are in the group chat.
π RETURN VALUE π
Returns true on success, false on failure. and if it fails? don't just stand there looking cute β call SDL_GetError() for more information, because it will tell you what went wrong π
β¨ AVAILABILITY β¨
this function is available since SDL 3.2.0. so if you're on something older, no it's not, sorry babes π
π₯ SEE ALSO π₯
iykyk β go read those next, they're the whole friend group π§
and that's the page!! brought to you by Simple Directmedia Layer, living its SDL 3.4.18 era, and filed under SDL_WaitForGPUFences(3) forever and ever. πβπ
π¦ 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