#graphics #wgpu

easygpu

Simple wrapper around wgpu aiming to make some common operations easier

14 releases

0.0.14 Oct 11, 2021
0.0.13 Aug 22, 2021
0.0.11 Jun 7, 2021
0.0.10 May 13, 2021
0.0.2 Oct 13, 2020

#115 in Graphics APIs

Download history 2/week @ 2021-07-04 3/week @ 2021-07-11 60/week @ 2021-07-18 86/week @ 2021-07-25 175/week @ 2021-08-01 13/week @ 2021-08-08 23/week @ 2021-08-15 107/week @ 2021-08-22 113/week @ 2021-08-29 4/week @ 2021-09-05 2/week @ 2021-09-12 9/week @ 2021-09-19 13/week @ 2021-09-26 24/week @ 2021-10-03 76/week @ 2021-10-10 4/week @ 2021-10-17

211 downloads per month
Used in 3 crates (2 directly)

MIT license

56KB
1.5K SLoC

easygpu

This crate exists purely as a middle layer for Kludgine to interact with wgpu-rs. It was extracted from rgx as part of an attempt to upgrade from wgpu 0.4 to 0.6, which had several breaking issues.

The purpose of this crate is to house some abstractions for wgpu that make life a little easier. For example, Vertex and Index buffers know how big they are. The secondary goal of this crate is to expose how it does all of the easy work, so that if you need to replace parts of it with hand-written WGPU code, you can do it without waiting for this crate to get an update.

Relying on easygpu

This project received its first pull request from another contributor in May of 2021 (thank you!). Despite the warning above, I do think this project can help people who don't want to use Kludgine but are wanting to make wgpu a little more approachable.

Because I want that to be possible, I'm going to commit to maintaining a CHANGELOG which will highight breaking changes. This project is severely under-documented (I will try to address that over time), so this is literally the least I can do to help those using this crate in their projects.

Getting Started

To use easygpu, your project must be using the new features resolver. The two lines to add to your Cargo.toml look like this:

[lib]
resolver = "2"

[dependencies]
easygpu = "0.0.13"

The resolver requirement is inherited from wgpu. This setting will become the default in the 2021 edition.

MIT License

As with most code from Khonsu Labs, this repository is open source under the MIT License

Dependencies

~5–8.5MB
~179K SLoC