Thanks to visit codestin.com
Credit goes to lib.rs

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 enabled fragile-send-sync-non-atomic does nothing and Bevy instead wraps wgpu types to verify they are not used off their origin thread.

spirv_shader_passthrough

Enable SPIR-V shader passthrough

Enables spirv of wgpu

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 feature

Enables 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

Enables webgl of wgpu

webgpu

Enables webgpu of wgpu

vulkan-portability

Enables vulkan-portability of wgpu

gles

Enables gles of wgpu

detailed_trace
serialize

Adds serialization support through serde.

Enables serialize of bevy_mesh

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.