This is a minimal example of how to use wgpu
and minifb
to render a triangle on the screen.
cargo run
cargo xtask run-wasm
This executes an xtask that builds the wasm binary and launches a web server.
- A bunch of fixes to
minifb
are required which haven't been released yet (as of writing). This project therefore depends on a specific commit ofminifb
for now.