SDL_QueryGPUFence(3)
π SDL_QueryGPUFence π
okay bestie, welcome to SDL_QueryGPUFence(3) β it's a real one from the SDL3 FUNCTIONS collection, and honestly? it's giving "am I done yet" energy and I am obsessed. π¦
β¨ NAME β¨
SDL_QueryGPUFence β checks the status of a fence. that's it. that's the whole job. she's a yes/no girlie and she's thriving. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_gpu.h>
bool SDL_QueryGPUFence(
SDL_GPUDevice *device,
SDL_GPUFence *fence);
no cap, that's the entire vibe. two little args and a bool coming back at you. π
π«Ά FUNCTION PARAMETERS π«Ά
deviceβ a GPU context. like, the whole GPU situation you're working inside. your main character. πfenceβ a fence. literally just a fence. she's the thing you're checking up on. β
π RETURN VALUE π
- returns
trueif the fence is signaled β so like, yes bestie, it's done, we're so back π₯ - returns
falseif it is not β not yet, hold on, keep waiting, it's giving "buffering" π
π AVAILABILITY π
this one has been around since SDL 3.2.0. so if your SDL is older than that... girl. upgrade. π
π SEE ALSO π
SDL_SubmitGPUCommandBufferAndAcquireFence(3)β the function that hands you a fence in the first place, iykyk. the prequel. the origin story. π§
and that's the whole page, periodt. go check your fences, bestie, they're not gonna query themselves. π
with love from Simple Directmedia Layer, running SDL 3.4.18, mwah π
π¦ 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