Skip to content

Commit

Permalink
Deploying to gh-pages from @ 68f969b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 29, 2024
1 parent 2e52642 commit ab50091
Show file tree
Hide file tree
Showing 19 changed files with 3,365 additions and 2,975 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,41 @@ if (debug) {
}
```
## Development
Clone the repo and install it locally.
```bash
npm ci
npm run start
```
Now open the browser to `http://localhost:8080/test/timeout=0&src=true`
### Testing with three.js
If you have the [three.js repo](https://github.com/mrdoob/three.js)
install along side in a folder named `three.js` as in
```
+-somefolder
+-webgpu-dev-extension
+-three.js
```
Then `npm run test-threejs` will attempt to each of the three.js webgpu
examples and inject the helper. Ideally there should be no errors.
You can skip the first N tests with `-- --skip-count=<number>` (the first `--` is required).
### `show-errors.js`
`show-errors/show-errors.js` is also generated by the build.
show-errors.js wraps calls to `pushErrorScope` and `popErrorScope` around every
method of `GPUDevice` and `GPUQueue`. It is used in the
[webgpu-dev-extension](https://github.com/greggman/webgpu-dev-extension).
## License
[MIT](LICENSE.md)
Expand Down
Loading

0 comments on commit ab50091

Please sign in to comment.