The Wayback Machine - https://web.archive.org/web/20201223215746/https://github.com/tsherif/webgpu-examples
Skip to content
gh-pages
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
Jan 4, 2020
img
Jan 4, 2020
Jan 5, 2020
Dec 30, 2019

README.md

WebGPU Examples

Small examples of SPIR-V compatible WebGPU usage.

  • Blank: Setting up a swap chain and clearing the canvas.
  • Point: Creating a pipeline and drawing a single point.
  • Triangle: Creating vertex buffers and drawing a triangle.
  • Cube: Creating vertex and uniform buffers, and animating a cube.
  • Textured, Lit Cube: Creating a texture from a DOM image, setting up vertex and uniform buffers, and animating a cube.
  • Particles: Simulating gravity on instanced particles using a compute shader.

Examples currently only run in Chrome Canary with the enable-unsafe-webgpu flag set. See the Implementation Status page for updates on support.

All examples are implemented as simple HTML pages and can thus be run locally by serving them from a local HTTP server, e.g. python -m SimpleHTTPServer.

About

Small examples of SPIR-V compatible WebGPU usage.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.