2019-11-16 02:17:07 +00:00
|
|
|
[package]
|
|
|
|
name = "wgpu-core"
|
2023-04-19 22:06:21 +00:00
|
|
|
version = "0.16.0"
|
2022-12-15 20:46:28 +00:00
|
|
|
authors = ["wgpu developers"]
|
|
|
|
edition = "2021"
|
2021-10-01 17:50:19 +00:00
|
|
|
description = "WebGPU core logic on wgpu-hal"
|
2022-12-15 20:46:28 +00:00
|
|
|
homepage = "https://wgpu.rs/"
|
|
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
|
|
|
keywords = ["graphics"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
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"]
|
2023-02-09 20:38:40 +00:00
|
|
|
targets = [
|
|
|
|
"x86_64-unknown-linux-gnu",
|
|
|
|
"x86_64-apple-darwin",
|
|
|
|
"x86_64-pc-windows-msvc",
|
|
|
|
"wasm32-unknown-unknown",
|
|
|
|
]
|
2022-10-26 21:07:25 +00:00
|
|
|
|
2019-11-16 02:17:07 +00:00
|
|
|
[lib]
|
|
|
|
|
|
|
|
[features]
|
2023-06-28 10:30:28 +00:00
|
|
|
default = ["link"]
|
2022-12-08 01:58:45 +00:00
|
|
|
|
|
|
|
# Backends, passed through to wgpu-hal
|
|
|
|
metal = ["hal/metal"]
|
|
|
|
vulkan = ["hal/vulkan"]
|
|
|
|
gles = ["hal/gles"]
|
|
|
|
dx11 = ["hal/dx11"]
|
|
|
|
dx12 = ["hal/dx12"]
|
|
|
|
|
2023-06-28 10:30:28 +00:00
|
|
|
# Use static linking for libraries. Disale to manually link. Enabled by default.
|
|
|
|
link = ["hal/link"]
|
|
|
|
|
2022-12-08 01:58:45 +00:00
|
|
|
# Support the Renderdoc graphics debugger:
|
|
|
|
# https://renderdoc.org/
|
|
|
|
renderdoc = ["hal/renderdoc"]
|
|
|
|
|
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.
|
2022-12-20 00:17:19 +00:00
|
|
|
strict_asserts = ["wgt/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"]
|
2023-06-29 20:31:18 +00:00
|
|
|
# Implement `Send` and `Sync` on Wasm.
|
|
|
|
fragile-send-sync-non-atomic-wasm = ["hal/fragile-send-sync-non-atomic-wasm", "wgt/fragile-send-sync-non-atomic-wasm"]
|
2019-11-16 02:17:07 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2022-12-15 20:46:28 +00:00
|
|
|
arrayvec = "0.7"
|
2023-04-05 22:24:59 +00:00
|
|
|
bitflags = "2"
|
2022-12-15 20:46:28 +00:00
|
|
|
bit-vec = "0.6"
|
|
|
|
codespan-reporting = "0.11"
|
2023-03-01 18:46:38 +00:00
|
|
|
rustc-hash = "1.1"
|
2022-12-15 20:46:28 +00:00
|
|
|
log = "0.4"
|
|
|
|
# parking_lot 0.12 switches from `winapi` to `windows`; permit either
|
|
|
|
parking_lot = ">=0.11,<0.13"
|
|
|
|
profiling = { version = "1", default-features = false }
|
|
|
|
raw-window-handle = { version = "0.5", optional = true }
|
|
|
|
ron = { version = "0.8", optional = true }
|
|
|
|
serde = { version = "1", features = ["serde_derive"], optional = true }
|
|
|
|
smallvec = "1"
|
|
|
|
thiserror = "1"
|
2020-12-21 19:24:52 +00:00
|
|
|
|
2020-05-09 16:55:10 +00:00
|
|
|
[dependencies.naga]
|
2022-12-15 20:46:28 +00:00
|
|
|
git = "https://github.com/gfx-rs/naga"
|
2023-06-14 16:55:33 +00:00
|
|
|
rev = "76003dc0035d53a474d366dcdf49d2e4d12e921f"
|
2023-04-19 22:06:21 +00:00
|
|
|
version = "0.12.0"
|
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-12-15 20:46:28 +00:00
|
|
|
package = "wgpu-types"
|
|
|
|
path = "../wgpu-types"
|
2023-04-19 22:06:21 +00:00
|
|
|
version = "0.16"
|
2020-03-11 01:06:23 +00:00
|
|
|
|
2021-06-04 05:19:36 +00:00
|
|
|
[dependencies.hal]
|
2022-12-15 20:46:28 +00:00
|
|
|
package = "wgpu-hal"
|
|
|
|
path = "../wgpu-hal"
|
2023-04-19 22:06:21 +00:00
|
|
|
version = "0.16"
|
2023-06-28 10:30:28 +00:00
|
|
|
default_features = false
|
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-12-15 20:46:28 +00:00
|
|
|
web-sys = { version = "0.3.60", features = ["HtmlCanvasElement", "OffscreenCanvas"] }
|