gfx-rs / wgpu-rs.github.io

Hosting for wgpu.rs website
https://wgpu.rs
17 stars 22 forks source link

add hello in worker example #24

Open JolifantoBambla opened 2 years ago

JolifantoBambla commented 2 years ago

This adds a new example hello-worker that runs the example hello in a web worker. It depends on this PR in wgpu that fixes instance creation in a worker context. Unfortunately, Firefox doesn't allow loading modules in web workers so it won't work there but it works on Chromium. I tested this on Linux.