Function SDL_WaitForGPUFences

pub unsafe extern "C" fn SDL_WaitForGPUFences(
    device: *mut SDL_GPUDevice,
    wait_all: bool,
    fences: *const *mut SDL_GPUFence,
    num_fences: u32,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Blocks the thread until the given fences are signaled.

§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.

§Return value

Returns true on success, false on failure; call [SDL_GetError()] for more information.

§Availability

This function is available since SDL 3.2.0.

§See also