Whether WebGPU can be used here. Natively it is always true, though there may still be no adapter. In the browser it is false when the page has no WebGPU or can't suspend the program while it waits, so a program can fall back instead of failing at its first call.
if !webgpu_available() {
print("this browser has no WebGPU\n");
return;
}This one is only checked to compile, not run.
webgpu_available :: () -> bool
Returns
- bool