WebGPU Samples

Github

SPIR-V based samples

helloTriangle helloTriangleMSAA rotatingCube twoCubes instancedCube texturedCube fractalCube computeBoids animometer videoUploading

WGSL based samples

helloTriangle helloTriangleMSAA rotatingCube twoCubes instancedCube texturedCube fractalCube computeBoids animometer videoUploading

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.