mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
78 lines
2.4 KiB
TOML
78 lines
2.4 KiB
TOML
[package]
|
|
name = "wgpu-core"
|
|
version = "0.5.0"
|
|
authors = ["wgpu developers"]
|
|
edition = "2018"
|
|
description = "WebGPU core logic on gfx-hal"
|
|
homepage = "https://github.com/gfx-rs/wgpu"
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
keywords = ["graphics"]
|
|
license = "MPL-2.0"
|
|
|
|
[lib]
|
|
|
|
[features]
|
|
default = []
|
|
# Enable API tracing
|
|
trace = ["ron", "serde", "wgt/trace"]
|
|
# Enable API replaying
|
|
replay = ["serde", "wgt/replay"]
|
|
# Enable serializable compute/render passes, and bundle encoders.
|
|
serial-pass = ["serde", "wgt/serde", "arrayvec/serde"]
|
|
# Enable chrome-tracing backend and default tracing subscriber
|
|
subscriber = ["thread-id", "tracing-log", "tracing-subscriber"]
|
|
|
|
[dependencies]
|
|
arrayvec = "0.5"
|
|
bitflags = "1.0"
|
|
copyless = "0.1"
|
|
fxhash = "0.2"
|
|
hal = { package = "gfx-hal", version = "0.5.3" }
|
|
gfx-backend-empty = "0.5"
|
|
parking_lot = "0.10"
|
|
raw-window-handle = { version = "0.3", optional = true }
|
|
ron = { version = "0.5", optional = true }
|
|
serde = { version = "1.0", features = ["serde_derive"], optional = true }
|
|
smallvec = "1"
|
|
thread-id = { version = "3", optional = true }
|
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
|
tracing-log = { version = "0.1", optional = true }
|
|
tracing-subscriber = { version = "0.2", optional = true }
|
|
thiserror = "1"
|
|
|
|
[dependencies.naga]
|
|
git = "https://github.com/gfx-rs/naga"
|
|
rev = "1eb637038dd15fc1dad770eca8e6943424dbc122"
|
|
features = ["spirv"]
|
|
|
|
[dependencies.gfx-descriptor]
|
|
git = "https://github.com/gfx-rs/gfx-extras"
|
|
rev = "473a4cdc63463e7986707507c4a7f6a3a767e329"
|
|
|
|
[dependencies.gfx-memory]
|
|
git = "https://github.com/gfx-rs/gfx-extras"
|
|
rev = "473a4cdc63463e7986707507c4a7f6a3a767e329"
|
|
|
|
[dependencies.wgt]
|
|
path = "../wgpu-types"
|
|
package = "wgpu-types"
|
|
version = "0.5"
|
|
|
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
|
|
gfx-backend-metal = { version = "0.5.6" }
|
|
gfx-backend-vulkan = { version = "0.5.11", optional = true }
|
|
|
|
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
|
|
gfx-backend-vulkan = { version = "0.5.11" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
gfx-backend-dx12 = { version = "0.5.8" }
|
|
gfx-backend-dx11 = { version = "0.5" }
|
|
gfx-backend-vulkan = { version = "0.5.11" }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "dragonfly", target_os = "freebsd"))'.dependencies]
|
|
battery = { version = "0.7", optional = true }
|
|
|
|
[dev-dependencies]
|
|
loom = "0.3"
|