Cargo Features

bevy_render has no features set by default.

[dependencies]
bevy_render = { version = "0.15.0-rc.2", features = ["basis-universal", "dds", "exr", "hdr", "ktx2", "multi_threaded", "shader_format_glsl", "shader_format_spirv", "spirv_shader_passthrough", "trace", "ci_limits", "webgl", "webgpu", "ios_simulator"] }
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, ktx2 of bevy_image

multi_threaded

Enables multi_threaded of bevy_tasks

shader_format_glsl

Enables glsl-in and wgsl-out of naga ^22, glsl of naga_oil ^0.15

shader_format_spirv

Enables spv-in and spv-out of naga ^22 and spirv of wgpu ^22

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 ^22

trace = profiling
tracing-tracy ci_limits
webgl

Enables webgl of wgpu ^22

webgpu

Enables webgpu of wgpu ^22

ios_simulator

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.