Skip to content

matthewjberger/wgpu-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust / Winit / Egui / Wgpu Triangle

This project demonstrates how to setup a rust project that uses wgpu to render a spinning triangle, supporting both webgl and webgpu wasm as well as native.

Quickstart

# native
cargo run -r

# webgpu
trunk serve --features webgpu --open

# webgl
trunk serve --features webgl --open

Prerequisites (web)

Screenshots

Screenshot 2024-08-20 at 8 17 14 AM Screenshot 2024-08-20 at 8 17 51 AM