Whichever WebGPU example (austin-eng, jack1232/WebGPU-Step-By-Step, etc...) I run in Chrome Canary 97.0.4686.0 with unsafe WebGPU flag enabled I get some errors in console that indicate that my browser does not support WebGPU.
Example: https://austin-eng.com/webgpu-samples/samples/helloTriangle
Is WebGPU Enabled?
TypeError: Cannot read property 'requestDevice' of null
Can you reproduce this behavior?
As https://web.dev/gpu/#enabling-via-about:flags says, to experiment with WebGPU locally, enable the
#enable-unsafe-webgpuflag inabout://flags.To check if WebGPU is supported, use:
Caution: The GPU adapter returned by
navigator.gpu.requestAdapter()may benull.At the time of writing, WebGPU is available on select devices on Chrome OS, macOS, and Windows 10 in Chrome 94 with more devices being supported in the future. Linux experimental support is available by running Chrome with
--enable-features=Vulkan. More support for more platforms will follow.