Cargo Features

nannou_wgpu has no features set by default.

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

Affects texture::capturer

replay

Enables replay of wgpu ^0.17.1

wgpu:

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

serde

Enables serde of wgpu ^0.17.1

wgpu:

Enables serialization via serde on common wgpu types.

spirv

Enables spirv of wgpu ^0.17.1

wgpu:

**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

trace

Enables trace of wgpu ^0.17.1

wgpu:

Allow writing of trace capture files. See Adapter::request_device.

webgl

Enables webgl of wgpu ^0.17.1

wgpu:

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?