Cargo Features
Naga has no features set by default.
[dependencies]
naga = { version = "23.0.0", features = ["dot-out", "glsl-in", "glsl-out", "msl-out", "msl-out-if-target-apple", "deserialize", "spv-in", "spv-out", "wgsl-in", "wgsl-out", "arbitrary", "hlsl-out", "hlsl-out-if-target-windows", "compact"] }
- dot-out
- glsl-in
-
Enables pp-rs
Affects
front::glsl
… - glsl-out
- msl-out
-
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
. - msl-out-if-target-apple
-
Enables outputting to the Metal Shading Language (MSL) only if the target platform is iOS/tvOS/watchOS/macOS.
If you want to enable MSL output it regardless of the target platform, use
naga/msl-out
. - serialize deserialize
- spv-in
-
Affects
front::atomic_upgrade
,front::spv
… - spv-out
-
Enables spirv
- wgsl-in = compact
-
Enables hexf-parse and unicode-xid
Affects
front::wgsl
,keywords::wgsl
… - wgsl-out
- arbitrary
- hlsl-out
-
Enables outputting to HLSL (Microsoft's High-Level Shader Language).
This enables HLSL output regardless of the target platform. If you want to enable it only when targeting Windows, use
hlsl-out-if-target-windows
. - hlsl-out-if-target-windows
-
Enables outputting to HLSL (Microsoft's High-Level Shader Language) only if the target platform is Windows.
If you want to enable HLSL output it regardless of the target platform, use
naga/hlsl-out
. - compact wgsl-in?
-
Affects
unique_arena::UniqueArenaDrain
,naga::compact
…