Skip to content

matthewjberger/wgpu-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 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

Firefox is still working on wgpu support but chromium-based browsers like Brave, Vivaldi, Chrome, etc will work

Prerequisites (web)

Screenshots

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

About

A minimal example of using Rust, wgpu, and egui without using eframe

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •