2019-11-16 02:17:07 +00:00
|
|
|
[package]
|
|
|
|
name = "wgpu-core"
|
2021-02-01 05:35:40 +00:00
|
|
|
version = "0.7.0"
|
2020-06-18 18:01:59 +00:00
|
|
|
authors = ["wgpu developers"]
|
2019-11-16 02:17:07 +00:00
|
|
|
edition = "2018"
|
2020-03-26 14:40:12 +00:00
|
|
|
description = "WebGPU core logic on gfx-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"]
|
|
|
|
license = "MPL-2.0"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = []
|
2021-02-16 14:46:22 +00:00
|
|
|
# Enable SPIRV-Cross
|
|
|
|
cross = ["gfx-backend-metal/cross", "gfx-backend-gl/cross"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable API tracing
|
2021-03-03 21:48:23 +00:00
|
|
|
trace = ["ron", "serde", "wgt/trace", "arrayvec/serde"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable API replaying
|
2021-03-03 21:48:23 +00:00
|
|
|
replay = ["serde", "wgt/replay", "arrayvec/serde"]
|
2020-06-19 20:21:49 +00:00
|
|
|
# Enable serializable compute/render passes, and bundle encoders.
|
|
|
|
serial-pass = ["serde", "wgt/serde", "arrayvec/serde"]
|
2019-11-16 02:17:07 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
arrayvec = "0.5"
|
|
|
|
bitflags = "1.0"
|
|
|
|
copyless = "0.1"
|
|
|
|
fxhash = "0.2"
|
2021-03-16 16:46:07 +00:00
|
|
|
log = "0.4"
|
2020-08-17 05:07:03 +00:00
|
|
|
parking_lot = "0.11"
|
2021-03-16 16:46:07 +00:00
|
|
|
profiling = { version = "0.1.10", default-features = false } # Need 0.1.10+ to prevent compile errors with proc macros disabled
|
2020-04-29 04:42:35 +00:00
|
|
|
raw-window-handle = { version = "0.3", optional = true }
|
2020-08-17 05:07:03 +00:00
|
|
|
ron = { version = "0.6", 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
|
|
|
|
2021-03-29 09:33:40 +00:00
|
|
|
# Update to 0.4 when it will be available
|
2021-04-06 09:16:49 +00:00
|
|
|
gpu-alloc = { git = "https://github.com/zakarumych/gpu-alloc.git", rev = "2cd1ad650cdd24d1647b6041f77ced0cbf1ff2a6" }
|
2021-03-16 16:46:07 +00:00
|
|
|
gpu-descriptor = { version = "0.1" }
|
2020-12-03 05:30:38 +00:00
|
|
|
|
2021-04-26 15:10:22 +00:00
|
|
|
hal = { package = "gfx-hal", git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
|
|
|
gfx-backend-empty = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
2020-12-03 05:30:38 +00:00
|
|
|
|
2020-12-17 20:47:57 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), all(unix, not(target_os = "ios"), not(target_os = "macos"))))'.dependencies]
|
2021-04-26 15:10:22 +00:00
|
|
|
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1", features = ["naga"] }
|
|
|
|
gfx-backend-gl = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
2020-12-03 05:30:38 +00:00
|
|
|
|
2020-12-17 20:47:57 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies]
|
2021-04-26 15:10:22 +00:00
|
|
|
gfx-backend-metal = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
|
|
|
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1", optional = true }
|
2020-12-03 05:30:38 +00:00
|
|
|
|
2020-12-17 20:47:57 +00:00
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), windows))'.dependencies]
|
2021-04-26 15:10:22 +00:00
|
|
|
gfx-backend-dx12 = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
|
|
|
gfx-backend-dx11 = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
|
|
|
gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1", features = ["naga"] }
|
2019-11-16 02:17:07 +00:00
|
|
|
|
2020-12-17 20:47:57 +00:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2021-04-26 15:10:22 +00:00
|
|
|
gfx-backend-gl = { git = "https://github.com/gfx-rs/gfx", rev = "d3d533ce4a1d48799e660dd81ad4828f7b03a2f1" }
|
2020-12-17 20:47:57 +00:00
|
|
|
|
2020-05-09 16:55:10 +00:00
|
|
|
[dependencies.naga]
|
2020-08-26 19:35:14 +00:00
|
|
|
git = "https://github.com/gfx-rs/naga"
|
2021-04-26 15:10:22 +00:00
|
|
|
tag = "gfx-23"
|
2020-09-28 14:18:35 +00:00
|
|
|
features = ["spv-in", "spv-out", "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"
|
2021-02-01 05:35:40 +00:00
|
|
|
version = "0.7"
|
2020-03-11 01:06:23 +00:00
|
|
|
|
2020-05-04 19:45:08 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
loom = "0.3"
|
2020-08-30 02:40:07 +00:00
|
|
|
|
|
|
|
[build-dependencies]
|
2020-08-30 21:33:17 +00:00
|
|
|
cfg_aliases = "0.1"
|