Skip to content

inkfin/LearnWGPU-rs

Repository files navigation

Some implementation of CGT-521 code using Rust+WGPU

cargo run --release -p <path>
# or
cargo run --release --bin <bin>

The available binary targets are:

  • example_cube
  • example_fish
  • hello-compute
  • hello-workgroups
  • hello-synchronization

install wasm-pack

wasm-pack build <path> --target web

RUSTFLAGS=--cfg=web_sys_unstable_apis wasm-pack build --target web