目前Chrome正式版没有开启WebGPU,
我们需要下载金丝雀版本:
https://www.google.com/chrome/canary/
然后输入 chrome://flags/
,找到 #enable-unsafe-webgpu
并打开
目前three.js和babylon等主流Web库都已支持WebGPU,可以查看一下Demo:
ThreeJS: https://threejs.org/examples/?q=webgpu#webgpu_compute
BabylonJS: https://playground.babylonjs.com/
右上角选择 webgpu
学习实例:https://austin-eng.com/webgpu-samples/samples/helloTriangle
文章搜集:https://github.com/mikbry/awesome-webgpu