Skip to content

Minimal example for wgpu + minifb, targeting both native & web

License

Notifications You must be signed in to change notification settings

Wumpf/minifb_wgpu_web_and_desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Minimal example for wgpu + minifb, targeting both native & web

Topics

Resources

License

Stars

Watchers

Forks