Cargo Features
bevy_shader has no features set by default.
[dependencies]
bevy_shader = { version = "0.18.1", features = ["shader_format_glsl", "shader_format_spirv", "shader_format_wesl", "decoupled_naga"] }
- shader_format_glsl
-
Enables glsl-in and wgsl-out of naga ^27, glsl of naga_oil ^0.20
- shader_format_spirv
- shader_format_wesl = wesl
-
Affects
shader_cache::ShaderResolver… - decoupled_naga
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.