Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 847 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 847 Bytes

Minimal wgpu and minifb example for web & desktop

This is a minimal example of how to use wgpu and minifb to render a triangle on the screen.

image

Run on desktop

cargo run

Run on web

cargo xtask run-wasm

This executes an xtask that builds the wasm binary and launches a web server.

Known issues & limitations

  • 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 of minifb for now.