2019-11-16 02:17:07 +00:00
|
|
|
[package]
|
|
|
|
name = "wgpu-core"
|
2022-10-20 05:41:17 +00:00
|
|
|
version.workspace = true
|
|
|
|
authors.workspace = true
|
|
|
|
edition.workspace = true
|
2021-10-01 17:50:19 +00:00
|
|
|
description = "WebGPU core logic on wgpu-hal"
|
2022-10-20 05:41:17 +00:00
|
|
|
homepage.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
keywords.workspace = true
|
|
|
|
license.workspace = true
|
2019-11-16 02:17:07 +00:00
|
|
|
|
2022-10-26 21:07:25 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2019-11-16 02:17:07 +00:00
|
|
|
[lib]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = []
|
2022-08-08 04:45:39 +00:00
|
|
|
# Apply run-time checks, even in release builds. These are in addition
|
|
|
|
# to the validation carried out at public APIs in all builds.
|
|
|
|
strict_asserts = []
|
2021-12-05 07:24:10 +00:00
|
|
|
angle = ["hal/gles"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable API tracing
|
2021-06-21 17:05:29 +00:00
|
|
|
trace = ["ron", "serde", "wgt/trace", "arrayvec/serde", "naga/serialize"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable API replaying
|
2021-06-21 17:05:29 +00:00
|
|
|
replay = ["serde", "wgt/replay", "arrayvec/serde", "naga/deserialize"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable serializable compute/render passes, and bundle encoders.
|
|
|
|
serial-pass = ["serde", "wgt/serde", "arrayvec/serde"]
|
2022-02-08 02:58:07 +00:00
|
|
|
id32 = []
|
2022-10-08 05:12:50 +00:00
|
|
|
# Enable `ShaderModuleSource::Wgsl`
|
|
|
|
wgsl = ["naga/wgsl-in"]
|
2022-02-17 23:24:00 +00:00
|
|
|
vulkan-portability = ["hal/vulkan"]
|
2019-11-16 02:17:07 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
arrayvec.workspace = true
|
|
|
|
bitflags.workspace = true
|
|
|
|
bit-vec.workspace = true
|
|
|
|
codespan-reporting.workspace = true
|
|
|
|
fxhash.workspace = true
|
|
|
|
log.workspace = true
|
|
|
|
parking_lot.workspace = true
|
|
|
|
profiling.workspace = true
|
|
|
|
raw-window-handle = { workspace = true, optional = true }
|
|
|
|
ron = { workspace = true, optional = true }
|
|
|
|
serde = { workspace = true, features = ["serde_derive"], optional = true }
|
|
|
|
smallvec.workspace = true
|
|
|
|
thiserror.workspace = true
|
2020-12-21 19:24:52 +00:00
|
|
|
|
2020-05-09 16:55:10 +00:00
|
|
|
[dependencies.naga]
|
2022-10-20 05:41:17 +00:00
|
|
|
workspace = true
|
2022-10-08 05:12:50 +00:00
|
|
|
features = ["clone", "span", "validate"]
|
2020-05-09 16:55:10 +00:00
|
|
|
|
2020-03-11 01:06:23 +00:00
|
|
|
[dependencies.wgt]
|
2022-10-20 05:41:17 +00:00
|
|
|
workspace = true
|
2020-03-11 01:06:23 +00:00
|
|
|
|
2021-06-04 05:19:36 +00:00
|
|
|
[dependencies.hal]
|
2022-10-20 05:41:17 +00:00
|
|
|
workspace = true
|
2021-06-04 05:19:36 +00:00
|
|
|
|
2022-08-01 19:06:26 +00:00
|
|
|
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
web-sys = { workspace = true, features = ["HtmlCanvasElement", "OffscreenCanvas"] }
|
2022-08-01 19:06:26 +00:00
|
|
|
|
2021-10-07 20:18:09 +00:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
hal = { workspace = true, features = ["gles"] }
|
2021-10-07 20:18:09 +00:00
|
|
|
|
2021-06-08 15:46:53 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
hal = { workspace = true, features = ["metal"] }
|
2021-06-08 15:46:53 +00:00
|
|
|
#Note: could also enable "vulkan" for Vulkan Portability
|
|
|
|
|
2021-06-12 05:04:15 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
hal = { workspace = true, features = ["vulkan", "gles", "renderdoc"] }
|
2021-06-11 19:53:07 +00:00
|
|
|
|
2021-06-15 19:58:12 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), windows))'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
hal = { workspace = true, features = ["vulkan", "dx12", "dx11", "renderdoc"] }
|
2021-06-15 19:58:12 +00:00
|
|
|
|
2022-01-25 10:35:45 +00:00
|
|
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
hal = { workspace = true, features = ["emscripten"] }
|
2022-01-25 10:35:45 +00:00
|
|
|
|
2020-08-30 02:40:07 +00:00
|
|
|
[build-dependencies]
|
2022-10-20 05:41:17 +00:00
|
|
|
cfg_aliases.workspace = true
|