wgpu-py on Dawn, in Pyodide, on your GPU

This page loads Pyodide, installs wgpu and the compiled wgpu_dawn bindings (cffi, built with pyodide build against Dawn's Emdawnwebgpu), then runs demo.py: a compute shader and a rendered triangle, through the browser's WebGPU (hardware accelerated). The same bindings and backend code also run natively on Dawn. See pygfx/wgpu-py#838.

Loading…