Learning wgpu
This repo is based on learn-wgpu and wgpu official examples
Run on PC
cargo run
Build wasm
wasm-pack build -d build/pkg --target web
Flag for WebGPU backend:
RUSTFLAGS=--cfg=web_sys_unstable_api
This repo is based on learn-wgpu and wgpu official examples
cargo run
wasm-pack build -d build/pkg --target web
RUSTFLAGS=--cfg=web_sys_unstable_api