Using WebGPU in Emscripten

Emscripten supports using WebGPU via Emdawnwebgpu, an external Emscripten port that implements a Dawn-like version of the webgpu.h C API, on top of the browser’s WebGPU. See the Emdawnwebgpu link for documentation, and this article for an example of how to use it.