From 5b33bd49abe333e6ecd5f903ad1d37451e98926f Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 6 Jan 2025 10:00:30 -0800 Subject: [PATCH] add CTS docs --- .gitignore | 1 + README.md | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7a1d858..0bc9394 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc .DS_Store node_modules +third_party/package.json # --cut-here-- dist diff --git a/README.md b/README.md index b9d3045..72c5835 100644 --- a/README.md +++ b/README.md @@ -81,12 +81,25 @@ looked into it. What you can do is render to textures and then read them back. You can also run compute shaders and read their results. See the example linked above. -## Bugs / Issue +## Bugs / Issues This repo just publishes `dawn.node` from the dawn project [here](https://dawn.googlesource.com/dawn/+/refs/heads/main/src/dawn/node/). Bugs related to dawn, WebGPU should be filed in the in the [chromium issue tracker](https://crbug.com/dawn) +## Running the CTS + +``` +npm run build +cd third_party/dawn/third_party/webgpu-cts +npm ci +cd ../.. +cp third_party/webgpu-cts/package.json .. +./tools/run run-cts --bin=out/cmake-release 'webgpu:*' +``` + +Note: this is no different than running the CTS in dawn itself. + ## Updating This updates to the latest dawn and depot_tools