This is a repo containing wgpu examples.
Most examples are tested on the latest chrome browser.
WebGPU running on WASM and bundling with Webpack.
A test file to see when memory layout errors occur and how to resolve them.
Drawing on web worker using offscreen canvas and wgpu.
Test using naga_oil to compose shader sources.
Check browser support out and choose WebGPU or WebGL.
Trouble shooting for multiple surfaces of wgpu WebGL2 context.