Note: This repo holds the origial prototype for dawn-node and is no longer maintained.
Development continues here.
git submodule update --initcd third_party/dawn
git fetch https://dawn.googlesource.com/dawn refs/changes/43/64743/1 && git checkout FETCH_HEADmkdir build
cd build
cmake .. -GNinja
ninjaRun this .js script from the root of a WebGPU CTS checkout:
#!/usr/bin/env node
require('../dawn-node/build/dawnnode.node'); // Path to dawn_node build.
require('./src/common/tools/setup-ts-in-node.js');
require('./src/common/runtime/cmdline.ts');