Cargo Features

[dependencies]
vello_shaders = { version = "0.3.0", default-features = false, features = ["compile", "full", "wgsl", "msl", "cpu"] }
default = cpu, full, wgsl

These default features are set whenever vello_shaders is added without default-features = false somewhere in the dependency tree.

compile

Enables naga ^22.1.0 and thiserror ^1.0.64

Affects vello_shaders::compile

full default

Enables the complete imaging model. When this feature is disabled, the fine rasterization stage only supports drawing paths with a solid brush and clipping, and the shaders can not be run with an encoding that contains gradient fills and images.

wgsl default

Target shading language variants of the vello shaders to link into the library.

Affects vello_shaders::ComputeShader.wgsl, vello_shaders::WgslSource

msl

Enables msl-out of optional naga ^22.1.0

naga:

Enables outputting to the Metal Shading Language (MSL).

This enables MSL output regardless of the target platform. If you want to enable it only when targeting iOS/tvOS/watchOS/macOS, use naga/msl-out-if-target-apple.

Affects compile::msl, vello_shaders::ComputeShader.msl, vello_shaders::MslSource, types::msl

cpu default

Enable the CPU versions of the shaders

Enables bytemuck and vello_encoding

Affects vello_shaders::cpu