Building is easiest with cmake:
// clone and cd into the repo
git submodule update --init --recursive
mkdir build
cd build
// install dependencies: cmake, ninja, opengl
// detailed instructions are in .github/workflows/release.yaml
cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. && ninja && ./OpenGL/Spec-Hops
to run:
# from within the build directory
./OpenGL/Spec-Hops
to package a desktop build:
- You need one folder called
res
with the contents ofOpenGL/res/*
and the built binary to sit next to one another. You also need the dawn dynamic library to be in there right next to the spec-hops binary. TODO: statically link dawn, which is apparently hard: eliemichel/WebGPU-distribution#34 - TODO: Mac instructions
- TODO: Linux instructions
git submodule update --init --recursive
mkdir build_emscripten && cd build_emscripten
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
emmake make
To run:
python -m http.server
Then check out http://localhost:8000/OpenGL/Spec-Hops.html