Cargo Features
bevy_render has no features set by default.
[dependencies]
bevy_render = { version = "0.16.0-rc.1", features = ["decoupled_naga", "basis-universal", "dds", "exr", "hdr", "ktx2", "multi_threaded", "shader_format_glsl", "shader_format_spirv", "shader_format_wesl", "spirv_shader_passthrough", "statically-linked-dxc", "trace", "ci_limits", "webgl", "webgpu", "detailed_trace"] }
- decoupled_naga
- basis-universal
-
Texture formats (require more than just image support)
Enables basis-universal of bevy_image
- dds
-
Enables dds of bevy_image
- exr
-
Enables exr of bevy_image
- hdr
-
Enables hdr of bevy_image
- ktx2
-
Enables ktx2 ^0.3.0, ktx2 of bevy_image
- multi_threaded
-
Enables multi_threaded of bevy_tasks
bevy_tasks:
Functionality
Enables multi-threading support.
Without this feature, all tasks will be run on a single thread. - shader_format_glsl
- shader_format_spirv
-
Enables spv-in and spv-out of naga and spirv of wgpu
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. - shader_format_wesl = wesl
-
Affects
pipeline_cache::ShaderResolver
… - 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
- trace = profiling
- tracing-tracy ci_limits
- webgl
- webgpu
- detailed_trace
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.
- profiling trace?
-
Enables profiling
For wgpu profiling using tracing. Use
RUST_LOG=info
to also capture the wgpu spans. - wesl shader_format_wesl?