hasWebGPU property
bool
get
hasWebGPU
True when WebGPU (navigator.gpu) is available.
Requires Chrome 113+, Edge 113+ (or earlier with --enable-unsafe-webgpu).
Firefox and Safari do not yet ship WebGPU unconditionally.
Implementation
static bool get hasWebGPU {
final v = _navigatorGpu;
return v != null && !v.isUndefined;
}