#creative-coding #web-gpu #texture #wgpu #nannou #image #framework

nannou_wgpu

Items related to wgpu and its integration in nannou - a creative coding framework for Rust

3 releases (breaking)

0.19.0 Jan 17, 2024
0.18.0 Nov 18, 2021
0.17.0 Jul 8, 2021

#355 in Graphics APIs

Download history 365/week @ 2023-12-18 274/week @ 2023-12-25 216/week @ 2024-01-01 378/week @ 2024-01-08 371/week @ 2024-01-15 341/week @ 2024-01-22 266/week @ 2024-01-29 363/week @ 2024-02-05 455/week @ 2024-02-12 536/week @ 2024-02-19 504/week @ 2024-02-26 494/week @ 2024-03-04 487/week @ 2024-03-11 606/week @ 2024-03-18 622/week @ 2024-03-25 754/week @ 2024-04-01

2,551 downloads per month
Used in 13 crates (via nannou)

MIT license

170KB
3K SLoC

nannou_wgpu

Items related to wgpu and its integration in nannou!

WebGPU is the portable graphics specification that nannou targets allowing us to write code that is both fast and allows us to target a wide range of platforms. wgpu is the name of the crate we use that implements this specification.

The nannou_wgpu crate re-exports the entire wgpu crate along with all of its documentation while also adding some additional items that makes wgpu easier to use alongside nannou.

The image feature enables easier interoperation with the image crate, including functions for uploading textures from image files.

The capturer feature provides the wgpu::TextureCapturer API that aims to simplify the process of downloading textures from the GPU and easily save them as image files. As an example, this is particularly useful for recording the contents of a window or sketch.

Note that when using nannou_wgpu via nannou::wgpu, both features are enabled by default.

Useful links:

Dependencies

~3–40MB
~521K SLoC