Skip to content

robelator/wgpu-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 90.7%
  • Just 4.7%
  • HTML 4.6%