11 releases

0.1.10 May 8, 2024
0.1.9 May 8, 2024
0.1.5 Apr 29, 2024

#129 in Graphics APIs

Download history 289/week @ 2024-04-22 561/week @ 2024-04-29 402/week @ 2024-05-06

1,252 downloads per month

Custom license

22KB
365 lines

tiny_wgpu

Helper library to reduce the amount of boilerplate code when using wgpu.

Usage

Add these lines to your Cargo.toml:

tiny_wgpu = "0.1.10"

Implementation notes

Buffers, textures, pipelines, etc. are stored in HashMap<&str, T> objects, so each buffer/pipeline is associated with a string slice label.

See examples/compute.rs for a simple compute shader example and examples/window.rs for a vertex/fragment shader example using winit.

Dependencies

~3–35MB
~526K SLoC