Cargo Features

nannou_wgpu has no features set by default.

nannou_wgpu = { version = "0.19.0", features = ["capturer", "replay", "serde", "spirv", "trace", "webgl"] }
capturer = image, instant, num_cpus

Affects texture::capturer


Enables replay of wgpu ^0.17.1


Allow deserializing of trace capture files that were written with the trace feature. To replay a trace file use the wgpu player.


Enables serde of wgpu ^0.17.1


Enables serialization via serde on common wgpu types.


Enables spirv of wgpu ^0.17.1


**Note:** In the documentation, if you see that an item depends on a backend,
it means that the item is only available when that backend is enabled _and_ the backend is supported on the current platform.

### Shading language support

Enable accepting SPIR-V shaders as input.

Affects nannou_wgpu::shader_from_spirv_bytes


Enables trace of wgpu ^0.17.1


Enables webgl of wgpu ^0.17.1


Enables the GLES backend on Wasm

* ⚠️ WIP: Currently will also enable GLES dependencies on any other targets.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

image capturer?

Enables image ^0.23

Affects texture::image

instant capturer?
num_cpus capturer?