wgpu.js
WebGPU compute from plain JavaScript functions. See also Game of Life and the self test.
Device
checking…
Vector add
waiting for a device…
generated WGSL
Matrix multiply
waiting for a device…
| size | GPU | CPU | speedup | max error |
|---|
Mandelbrot
A 2D kernel writing one iteration count per pixel.
Chained kernels
kernel.pipe() keeps a result on the GPU so the next kernel can consume it
without a round trip through JavaScript.
waiting for a device…