Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewjberger/wgpu-example
A minimal example of using Rust, wgpu, and egui without using eframe
https://github.com/matthewjberger/wgpu-example
egui graphics-programming rust wgpu-rs winit
Last synced: 17 days ago
JSON representation
A minimal example of using Rust, wgpu, and egui without using eframe
- Host: GitHub
- URL: https://github.com/matthewjberger/wgpu-example
- Owner: matthewjberger
- Created: 2024-08-19T10:59:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T12:47:43.000Z (23 days ago)
- Last Synced: 2024-10-21T19:37:28.194Z (22 days ago)
- Topics: egui, graphics-programming, rust, wgpu-rs, winit
- Language: Rust
- Homepage: http://matthewjberger.xyz/wgpu-example/
- Size: 1.37 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust / Winit / Egui / Wgpu Triangle
This project demonstrates how to setup a [rust](https://www.rust-lang.org/) project
that uses [wgpu](https://wgpu.rs/) to render a spinning triangle, supporting
both webgl and webgpu [wasm](https://webassembly.org/) as well as native.## Quickstart
```
# native
cargo run -r# webgpu
trunk serve --features webgpu --open# webgl
trunk serve --features webgl --open
```## Prerequisites (web)
* [trunk](https://trunkrs.dev/)
## Screenshots
![Screenshot 2024-08-20 at 8 17 14 AM](https://github.com/user-attachments/assets/fd841943-a80b-4f27-9d9e-f85bb03d8add)
![Screenshot 2024-08-20 at 8 17 51 AM](https://github.com/user-attachments/assets/383d0122-f26d-41db-b1de-35512d697830)