| Crates.io | quickgpu27 |
| lib.rs | quickgpu27 |
| version | 0.0.9 |
| created_at | 2026-01-14 19:02:37.378353+00 |
| updated_at | 2026-01-14 19:21:25.902301+00 |
| description | quickgpu wraps the wgpu API allowing users to write shorter, clearer code |
| homepage | https://github.com/k9/quickgpu |
| repository | https://github.com/k9/quickgpu |
| max_upload_size | |
| id | 2043470 |
| size | 801,016 |
Bugs need to be fixed, and the API could change a lot in the coming weeks. Any feedback is appreciated!
quickgpu wraps the wgpu API
allowing users to write shorter,
clearer Rust graphics code.
It consists mainly
of builders for wgpu structs.
As a wrapper library,
quickgpu doesn't manage or own
any state after
a builder is done building.
There's no need to convert
all of your code to quickgpu,
you can just use it where it's helpful.
For an example of the library in use, take a look at /example/src/scene.rs
Published crates:
Internal / example crates:
syn and other tools.
Also includes scripts
or building and releasing new code.discover_exports isn't a general solution,
it only has the features needed for this project.
Lots of assumptions,
unnecessary use of clone,
and inefficient algrorithms.
However, this crate is not a user-facing part
of quickgpu, it just helps generates the bindings.quickgpu's goal is that for any wgpu struct SomeStruct, as long at doesn't contain private fields, you can use a builder by typing some_struct(). This means even structs with zero or one fields have builders. This way developers don't have to memorize which structs have builders.bon to generate builders. However, figuring out some tricky issues involving trait bounds etc made me realize it would be quicker to write custom builders for now. I'm happy to discuss going back to using a builder library though.build(), so all builders implement a custom Nested trait. This was chosen over using Into, so quickgpu doesn't need to worry about implications of other Into conversions unrelated to nested builders.quickgpu has minimal cost over wgpuTo run example, cd into example and run cargo run.
To run the bunnymark benchmark,
cd into bunnymark and run cargo run.
Press space to create more bunnies.
To re-generate quickgpu bindings, run cargo xtask build
from the repo root.