whenGpuDone property

Future<void> whenGpuDone
final

Completes once the GPU has finished every command the frame submitted, so a runtime may release the targets (an OpenXR swapchain image) or read them back.

This is true GPU completion on Metal and Vulkan and in-order completion on WebGL. On OpenGL ES through Flutter GPU it completes when the commands reach the driver, not when they finish, since the engine exposes no fence yet (part of flutter/flutter#192059).

Implementation

final Future<void> whenGpuDone;