SDL_QueryGPUFence

Checks the status of a fence.

Header File

Defined in <SDL3/SDL_gpu.h>

Syntax

bool SDL_QueryGPUFence(
    SDL_GPUDevice *device,
    SDL_GPUFence *fence);

Function Parameters

SDL_GPUDevice * device a GPU context.
SDL_GPUFence * fence a fence.

Return Value

(bool) Returns true if the fence is signaled, false if it is not.

Version

This function is available since SDL 3.2.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryGPU