2019-11-16 02:17:07 +00:00
|
|
|
[package]
|
|
|
|
name = "wgpu-core"
|
2022-10-05 21:48:42 +00:00
|
|
|
version = "0.14.0"
|
2020-06-18 18:01:59 +00:00
|
|
|
authors = ["wgpu developers"]
|
2022-06-30 18:24:17 +00:00
|
|
|
edition = "2021"
|
2021-10-01 17:50:19 +00:00
|
|
|
description = "WebGPU core logic on wgpu-hal"
|
2019-11-16 02:17:07 +00:00
|
|
|
homepage = "https://github.com/gfx-rs/wgpu"
|
|
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
|
|
keywords = ["graphics"]
|
2021-06-18 17:40:31 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
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-02-17 23:24:00 +00:00
|
|
|
vulkan-portability = ["hal/vulkan"]
|
2019-11-16 02:17:07 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2021-07-05 20:45:48 +00:00
|
|
|
arrayvec = "0.7"
|
2019-11-16 02:17:07 +00:00
|
|
|
bitflags = "1.0"
|
2022-05-24 15:36:13 +00:00
|
|
|
bit-vec = "0.6"
|
2021-11-01 20:57:33 +00:00
|
|
|
codespan-reporting = "0.11"
|
2019-11-16 02:17:07 +00:00
|
|
|
fxhash = "0.2"
|
2021-03-16 16:46:07 +00:00
|
|
|
log = "0.4"
|
2022-05-16 05:16:53 +00:00
|
|
|
# parking_lot 0.12 switches from `winapi` to `windows`; permit either
|
|
|
|
parking_lot = ">=0.11,<0.13"
|
2021-04-26 15:59:15 +00:00
|
|
|
profiling = { version = "1", default-features = false }
|
2022-08-04 06:09:37 +00:00
|
|
|
raw-window-handle = { version = "0.5", optional = true }
|
2022-09-19 03:53:21 +00:00
|
|
|
ron = { version = "0.8", optional = true }
|
2020-04-28 01:26:34 +00:00
|
|
|
serde = { version = "1.0", features = ["serde_derive"], optional = true }
|
2020-03-26 14:40:12 +00:00
|
|
|
smallvec = "1"
|
2020-07-17 17:21:19 +00:00
|
|
|
thiserror = "1"
|
2020-12-21 19:24:52 +00:00
|
|
|
|
2020-05-09 16:55:10 +00:00
|
|
|
[dependencies.naga]
|
2022-09-01 17:36:34 +00:00
|
|
|
git = "https://github.com/gfx-rs/naga"
|
2022-10-05 21:42:58 +00:00
|
|
|
rev = "c52d9102"
|
|
|
|
version = "0.10"
|
2022-09-19 04:50:46 +00:00
|
|
|
features = ["clone", "span", "validate", "wgsl-in"]
|
2020-05-09 16:55:10 +00:00
|
|
|
|
2020-03-11 01:06:23 +00:00
|
|
|
[dependencies.wgt]
|
|
|
|
path = "../wgpu-types"
|
|
|
|
package = "wgpu-types"
|
2022-10-05 21:48:42 +00:00
|
|
|
version = "0.14"
|
2020-03-11 01:06:23 +00:00
|
|
|
|
2021-06-04 05:19:36 +00:00
|
|
|
[dependencies.hal]
|
|
|
|
path = "../wgpu-hal"
|
|
|
|
package = "wgpu-hal"
|
2022-10-05 21:48:42 +00:00
|
|
|
version = "0.14"
|
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]
|
|
|
|
web-sys = { version = "0.3", features = ["HtmlCanvasElement", "OffscreenCanvas"] }
|
|
|
|
|
2021-10-07 20:18:09 +00:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2022-10-05 21:48:42 +00:00
|
|
|
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", 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-05 21:48:42 +00:00
|
|
|
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", 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-05 21:48:42 +00:00
|
|
|
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", 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-05 21:48:42 +00:00
|
|
|
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", 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-05 21:48:42 +00:00
|
|
|
hal = { path = "../wgpu-hal", package = "wgpu-hal", version = "0.14", features = ["emscripten"] }
|
2022-01-25 10:35:45 +00:00
|
|
|
|
2020-08-30 02:40:07 +00:00
|
|
|
[build-dependencies]
|
2020-08-30 21:33:17 +00:00
|
|
|
cfg_aliases = "0.1"
|