waitForIdle method

bool waitForIdle()

Blocks the thread until the GPU is completely idle.

\param device a GPU context. \returns true on success, false on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_WaitForGPUFences

extern SDL_DECLSPEC bool SDLCALL SDL_WaitForGPUIdle( SDL_GPUDevice *device)

See also:

Implementation

bool waitForIdle() => sdlWaitForGpuIdle(this);