Cargo Features
[dependencies]
librashader-reflect = { version = "0.40.0-beta.1", default-features = false, features = ["dxil", "wgsl", "cross", "naga", "serialize", "msl", "unstable-naga-in"] }
- default = cross, msl, naga, serialize, wgsl
-
These default features are set whenever
librashader-reflect
is added without
somewhere in the dependency tree.default-features = false - dxil = spirv-to-dxil
-
Enables hlsl of librashader-spirv-cross
Affects
back::dxil
… - wgsl default = cross, rspirv, spirv
- cross default wgsl = spirv_cross
-
Enables glsl, hlsl and msl of librashader-spirv-cross
- naga default msl unstable-naga-in? wgsl = rspirv, spirv
-
Enables msl-out, spv-in, spv-out and wgsl-out of naga ^22
Affects
reflect::naga
… - serialize default = serde
- msl default
-
Enables msl of librashader-spirv-cross and msl-out of naga ^22
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
. - unstable-naga-in
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.
- spirv_cross cross dxil? msl
-
Enables librashader-spirv-cross
- rspirv naga wgsl
- spirv naga wgsl
- serde serialize
- spirv-to-dxil win dxil?