/dawn-node

Primary LanguageC++Apache License 2.0Apache-2.0

Note: This repo holds the origial prototype for dawn-node and is no longer maintained.
Development continues here.


Fetching deps

git submodule update --init

Apply WIP CMake change to Dawn

cd third_party/dawn
git fetch https://dawn.googlesource.com/dawn refs/changes/43/64743/1 && git checkout FETCH_HEAD

Building

mkdir build
cd build
cmake .. -GNinja
ninja

Running CTS

Run 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');