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

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:

Shading language support


These features enable support for that input language on all platforms. We will translate the input language to whatever the backend requires.

Enable accepting SPIR-V shaders as input.

Affects nannou_wgpu::shader_from_spirv_bytes

trace

Enables trace of wgpu ^0.17.1

webgl

Enables webgl of wgpu ^0.17.1

wgpu:

Enables the GLES backend on WebAssembly only.

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?