Skip to content

hepp/webgpu-samples

 
 

Repository files navigation

WebGPU Samples

The WebGPU Samples are a set of WGSL and SPIR-V compatible samples demonstrating the use of the WebGPU API. Please see the current implementation status at webgpu.io. SPIR-V compatible samples will be removed when WGSL is fully implemented.

These samples run in Chrome Canary behind the flag --enable-unsafe-webgpu. If something isn't working, please file an issue here.

Building

webgpu-samples is built with Typescript and compiled using Next.js. Building the project requires an installation of Node.js.

  • Install dependencies: npm install.
  • For development, start the dev server which will watch and recompile sources: npm start. You can navigate to http://localhost:3000 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.

Example

npm install
npm run-script build   # or `npm start` and do the following in a separate terminal
npm run-script serve

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 97.0%
  • CSS 1.6%
  • JavaScript 1.4%