WebGPU
#Web #JavaScript
https://gyazo.com/5aeb633c414852bf20802e0f02e02db3
WebGLに取って代わる、次世代のWeb CG・GPGPU API
https://gpuweb.github.io/gpuweb/
https://github.com/gpuweb/gpuweb
https://developer.mozilla.org/ja/docs/Web/API/WebGPU_API
ここのLive Samplesがコードの勉強に丁度よい
https://webgpu.github.io/webgpu-samples/
対応状況
🐟 2023年10月現在
フラグ無しでサポートするブラウザはGoogle Chromeのみ
Secure Contextでないと動かないので注意
最新のImplementation Statusはで確認できる
各ライブラリのサポート
Three.jsはThree.js: NodeMaterialを使った対応を進行中
Babylon.jsはv5の時点ですでに対応できているっぽい
https://doc.babylonjs.com/setup/support/webGPU
https://doc.babylonjs.com/setup/support/webGPU/webGPUStatus
PlayCanvasはbeta版