logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_WaitForGPUFences - Blocks the thread until the given fences are signaled.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

device a GPU context.

       wait_all
              if 0, wait for any fence to be signaled, if 1, wait for all fences to be signaled.

       fences an array of fences to wait on.

       num_fences
              the number of fences in the fences array.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_WaitForGPUFences - Blocks the thread until the given fences are signaled.

Return Value

       Returns true on success, false on failure; call

       SDL_GetError () for more information.

See Also

(3), SDL_SubmitGPUCommandBufferAndAcquireFence(3), (3), SDL_WaitForGPUIdle(3)

Simple Directmedia Layer                           SDL 3.2.10                            SDL_WaitForGPUFences(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_WaitForGPUFences(SDL_GPUDevice*device,boolwait_all,SDL_GPUFence*const*fences,Uint32num_fences);

See Also