https://github.com/webgpu/webgpu-samples
WebGPU Samples
https://github.com/webgpu/webgpu-samples
Last synced: 5 months ago
JSON representation
WebGPU Samples
- Host: GitHub
- URL: https://github.com/webgpu/webgpu-samples
- Owner: webgpu
- License: bsd-3-clause
- Created: 2019-03-25T18:48:16.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-09-17T12:58:30.000Z (6 months ago)
- Last Synced: 2025-09-17T14:47:56.833Z (6 months ago)
- Language: TypeScript
- Homepage: https://webgpu.github.io/webgpu-samples/
- Size: 39 MB
- Stars: 1,995
- Watchers: 52
- Forks: 342
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WebGPU Samples
**Please visit the [WebGPU Samples website](//webgpu.github.io/webgpu-samples/) to run the samples!**
The WebGPU Samples are a set of samples and demos
demonstrating the use of the [WebGPU API](//webgpu.dev). Please see the current
implementation status and how to run WebGPU in your browser at
[webgpu.io](//webgpu.io).
## Building
`webgpu-samples` is built with [Typescript](https://www.typescriptlang.org/)
and bundled using [Rollup](https://rollupjs.org/). Building the project
requires an installation of [Node.js](https://nodejs.org/en/).
- Install dependencies: `npm ci`.
- For development, start the dev server which will watch and recompile
sources: `npm start`. You can navigate to http://localhost:8080 to view the project.
- For production, compile the project: `npm run build`.
- To run a production server to serve the built assets, do `npm run serve`.