/webgpu-tutorial

WebGPU examples using WASM/Rust and webpack

Primary LanguageRustApache License 2.0Apache-2.0

webgpu-tutorial

This is a WebGPU + WASM example repo.

  • basic
    WebGPU running on WASM and bundling with Webpack.

    Source code

  • offscreen-on-worker Drawing on web worker using offscreen canvas and wgpu.

    Source code

  • composite-shader
    Test using naga_oil to compose shader sources.

    Source code

  • webgpu-or-webgl
    Check browser support out and choose WebGPU or WebGL.

    Source code

  • wgpu-gl-surfaces
    Trouble shooting for multiple surfaces of wgpu WebGL2 context.

    Source code