Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

205 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGPU Renderer

A Rust crate that abstracts over the wgpu crate to provide greatly simplified rendering functionality for a modern vertex/fragment shader pipeline. The quads example shows how to use the crate. You can run it with:

$ cargo run --release --all-features --example quads_main_thread

Alternatively, you can run the same example in a background thread:

$ cargo run --release --all-features --example quads_render_thread

Background

This crate is based on the first part of this excellent tutorial and tries to neatly organise all the moving pieces and provide a straightforward interface. The cost of this simplification is flexibility. If you need anything more than a conventional vertex/fragment shader pipeline (with textures) then you'll want something else.

Currently this crate has no documentation and isn't published so you'll need to clone it or depend on it from GitHub if you want to use it. For example:

# Cargo.toml
[dependencies]
renderer = { git = "https://github.com/tuzz/renderer }

License

MIT

About

A Rust crate that abstracts over the wgpu crate to provide greatly simplified rendering.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages