Cargo Features
bevy_render has no features set by default.
[dependencies]
bevy_render = { version = "0.17.1", features = ["decoupled_naga", "multi_threaded", "shader_format_spirv", "spirv_shader_passthrough", "statically-linked-dxc", "raw_vulkan_init", "trace", "tracing-tracy", "ci_limits", "webgl", "webgpu", "vulkan-portability", "gles", "detailed_trace", "serialize"] }
- decoupled_naga
-
Enables decoupled_naga of bevy_shader
- multi_threaded
-
Enables multi_threaded of bevy_tasks
bevy_tasks:
Enables multi-threading support.
Without this feature, all tasks will be run on a single thread. - shader_format_spirv
-
Enables shader_format_spirv of bevy_shader and spirv of wgpu
misc
fragile-send-sync-non-atomic-wasm
feature means we can't use Wasm threads for rendering It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm. When the 'atomics' feature is enabledfragile-send-sync-non-atomic
does nothing and Bevy instead wrapswgpu
types to verify they are not used off their origin thread. - spirv_shader_passthrough
-
Enable SPIR-V shader passthrough
- statically-linked-dxc
-
Statically linked DXC shader compiler for DirectX 12
TODO: When wgpu switches to DirectX 12 instead of Vulkan by default on windows, make this a default featureEnables static-dxc of wgpu
- raw_vulkan_init
-
Forces the wgpu instance to be initialized using the raw Vulkan HAL, enabling additional configuration
Enables wgpu
Affects
renderer::raw_vulkan_init
… - trace = profiling
- tracing-tracy
-
Enables tracy-client
- ci_limits
- webgl
- webgpu
- vulkan-portability
-
Enables vulkan-portability of wgpu
- gles
- detailed_trace
- serialize
-
Adds serialization support through
serde
.
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.