This is a simple proof of concept, a minimal 3D engine written in C++, compiled to WASM with Emscripten. Running in the browser, rendering with WebGPU.
Live demo: https://armchair-software.github.io/webgpu-demo/
This requires Firefox Nightly, or a recent version of Chrome or Chromium, with webgpu and Vulkan support explicitly enabled.
- Emscripten
- CMake
- VectorStorm (included)
- LogStorm (included)
- magic_enum (included)
The easiest way to assemble everything (including in-tree shader resource assembly) is to use the included build script:
./build.sh
To launch a local server and bring up a browser:
./run.sh
For manual builds with CMake, and to adjust how the example is run locally, inspect the build.sh
and run.sh
scripts.