Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_render/Cargo.toml
6592 views
1
[package]
2
name = "bevy_render"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides rendering functionality for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[features]
12
# Bevy users should _never_ turn this feature on.
13
#
14
# Bevy/wgpu developers can turn this feature on to test a newer version of wgpu without needing to also update naga_oil.
15
#
16
# When turning this feature on, you can add the following to bevy/Cargo.toml (not this file), and then run `cargo update`:
17
# [patch.crates-io]
18
# wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
19
# wgpu-core = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
20
# wgpu-hal = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
21
# wgpu-types = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
22
decoupled_naga = ["bevy_shader/decoupled_naga"]
23
24
multi_threaded = ["bevy_tasks/multi_threaded"]
25
26
shader_format_spirv = ["bevy_shader/shader_format_spirv", "wgpu/spirv"]
27
28
# Enable SPIR-V shader passthrough
29
spirv_shader_passthrough = ["wgpu/spirv"]
30
31
# Statically linked DXC shader compiler for DirectX 12
32
# TODO: When wgpu switches to DirectX 12 instead of Vulkan by default on windows, make this a default feature
33
statically-linked-dxc = ["wgpu/static-dxc"]
34
35
# Forces the wgpu instance to be initialized using the raw Vulkan HAL, enabling additional configuration
36
raw_vulkan_init = ["wgpu/vulkan"]
37
38
trace = ["profiling"]
39
tracing-tracy = ["dep:tracy-client"]
40
ci_limits = []
41
webgl = ["wgpu/webgl"]
42
webgpu = ["wgpu/webgpu"]
43
vulkan-portability = ["wgpu/vulkan-portability"]
44
gles = ["wgpu/gles"]
45
detailed_trace = []
46
## Adds serialization support through `serde`.
47
serialize = ["bevy_mesh/serialize"]
48
49
[dependencies]
50
# bevy
51
bevy_app = { path = "../bevy_app", version = "0.17.0-dev" }
52
bevy_asset = { path = "../bevy_asset", version = "0.17.0-dev" }
53
bevy_color = { path = "../bevy_color", version = "0.17.0-dev", features = [
54
"serialize",
55
"wgpu-types",
56
] }
57
bevy_derive = { path = "../bevy_derive", version = "0.17.0-dev" }
58
bevy_diagnostic = { path = "../bevy_diagnostic", version = "0.17.0-dev" }
59
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev" }
60
bevy_encase_derive = { path = "../bevy_encase_derive", version = "0.17.0-dev" }
61
bevy_math = { path = "../bevy_math", version = "0.17.0-dev" }
62
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" }
63
bevy_render_macros = { path = "macros", version = "0.17.0-dev" }
64
bevy_time = { path = "../bevy_time", version = "0.17.0-dev" }
65
bevy_transform = { path = "../bevy_transform", version = "0.17.0-dev" }
66
bevy_window = { path = "../bevy_window", version = "0.17.0-dev" }
67
bevy_utils = { path = "../bevy_utils", version = "0.17.0-dev" }
68
bevy_tasks = { path = "../bevy_tasks", version = "0.17.0-dev" }
69
bevy_image = { path = "../bevy_image", version = "0.17.0-dev" }
70
bevy_mesh = { path = "../bevy_mesh", version = "0.17.0-dev" }
71
bevy_camera = { path = "../bevy_camera", version = "0.17.0-dev" }
72
bevy_shader = { path = "../bevy_shader", version = "0.17.0-dev" }
73
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-features = false, features = [
74
"std",
75
"serialize",
76
] }
77
78
# rendering
79
image = { version = "0.25.2", default-features = false }
80
81
# misc
82
# `fragile-send-sync-non-atomic-wasm` feature means we can't use Wasm threads for rendering
83
# It is enabled for now to avoid having to do a significant overhaul of the renderer just for wasm.
84
# When the 'atomics' feature is enabled `fragile-send-sync-non-atomic` does nothing
85
# and Bevy instead wraps `wgpu` types to verify they are not used off their origin thread.
86
wgpu = { version = "26", default-features = false, features = [
87
"wgsl",
88
"dx12",
89
"metal",
90
"vulkan",
91
"naga-ir",
92
"fragile-send-sync-non-atomic-wasm",
93
] }
94
naga = { version = "26", features = ["wgsl-in"] }
95
bytemuck = { version = "1.5", features = ["derive", "must_cast"] }
96
downcast-rs = { version = "2", default-features = false, features = ["std"] }
97
thiserror = { version = "2", default-features = false }
98
derive_more = { version = "2", default-features = false, features = ["from"] }
99
encase = { version = "0.11", features = ["glam"] }
100
# For wgpu profiling using tracing. Use `RUST_LOG=info` to also capture the wgpu spans.
101
profiling = { version = "1", features = [
102
"profile-with-tracing",
103
], optional = true }
104
async-channel = "2.3.0"
105
nonmax = "0.5"
106
smallvec = { version = "1", default-features = false, features = ["const_new"] }
107
offset-allocator = "0.2"
108
variadics_please = "1.1"
109
tracing = { version = "0.1", default-features = false, features = ["std"] }
110
tracy-client = { version = "0.18.0", optional = true }
111
indexmap = { version = "2" }
112
fixedbitset = { version = "0.5" }
113
bitflags = "2"
114
115
[target.'cfg(all(target_arch = "wasm32", target_feature = "atomics"))'.dependencies]
116
send_wrapper = { version = "0.6.0" }
117
118
[dev-dependencies]
119
proptest = "1"
120
121
[target.'cfg(target_arch = "wasm32")'.dependencies]
122
js-sys = "0.3"
123
web-sys = { version = "0.3.67", features = [
124
'Blob',
125
'Document',
126
'Element',
127
'HtmlElement',
128
'Node',
129
'Url',
130
'Window',
131
] }
132
wasm-bindgen = "0.2"
133
# TODO: Assuming all wasm builds are for the browser. Require `no_std` support to break assumption.
134
bevy_app = { path = "../bevy_app", version = "0.17.0-dev", default-features = false, features = [
135
"web",
136
] }
137
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-features = false, features = [
138
"web",
139
] }
140
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev", default-features = false, features = [
141
"web",
142
] }
143
144
[lints]
145
workspace = true
146
147
[package.metadata.docs.rs]
148
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
149
all-features = true
150
151