Cargo Features
[dependencies]
vello_shaders = { version = "0.4.0", default-features = false, features = ["compile", "wgsl", "msl", "cpu"] }
- default = cpu, wgsl
-
These default features are set whenever
vello_shaders
is added without
somewhere in the dependency tree.default-features = false - compile
-
Enables naga ^23.1.0 and thiserror
Affects
vello_shaders::compile
… - 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 ^23.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
…