Cargo Features
bevy_render has no features set by default.
[dependencies]
bevy_render = { version = "0.14.0-rc.2", features = ["png", "exr", "hdr", "tga", "jpeg", "bmp", "webp", "dds", "pnm", "multi_threaded", "shader_format_glsl", "shader_format_spirv", "zlib", "zstd", "trace", "tracing-tracy", "wgpu_trace", "ci_limits", "webgl", "webgpu", "ios_simulator", "ktx2", "basis-universal"] }
- png
-
rendering
- exr
- hdr
- tga
- jpeg
- bmp
- webp
- dds = ddsfile
- pnm
- multi_threaded
-
Enables multi_threaded of bevy_tasks
- shader_format_glsl
-
Enables glsl-in and wgsl-out of naga ^0.19, glsl of naga_oil ^0.13
- shader_format_spirv
-
Enables spv-in and spv-out of naga ^0.19 and spirv of wgpu ^0.19.3
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. - zlib = flate2
-
For ktx2 supercompression
- zstd = ruzstd
- trace = profiling
- tracing-tracy
- wgpu_trace
-
Enables trace of wgpu ^0.19.3
- ci_limits
- webgl
-
Enables webgl of wgpu ^0.19.3
- webgpu
-
Enables webgpu of wgpu ^0.19.3
- 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.
- ddsfile dds?
- ktx2 implicit feature
-
Enables ktx2
ktx2:
Parser for the ktx2 texture container format
- flate2 zlib?
-
Enables flate2
For ktx2 supercompression
- ruzstd zstd?
- basis-universal implicit feature
-
Enables basis-universal
For transcoding of UASTC/ETC1S universal formats, and for .basis file support
Affects
ktx2::get_transcoded_formats
… - profiling trace?
-
Enables profiling
For wgpu profiling using tracing. Use
RUST_LOG=info
to also capture the wgpu spans.