mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
77 lines
2.4 KiB
TOML
77 lines
2.4 KiB
TOML
[package]
|
|
name = "wgpu-core"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
description = "WebGPU core logic on wgpu-hal"
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
|
|
[features]
|
|
default = []
|
|
# 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 = []
|
|
angle = ["hal/gles"]
|
|
# Enable API tracing
|
|
trace = ["ron", "serde", "wgt/trace", "arrayvec/serde", "naga/serialize"]
|
|
# Enable API replaying
|
|
replay = ["serde", "wgt/replay", "arrayvec/serde", "naga/deserialize"]
|
|
# Enable serializable compute/render passes, and bundle encoders.
|
|
serial-pass = ["serde", "wgt/serde", "arrayvec/serde"]
|
|
id32 = []
|
|
# Enable `ShaderModuleSource::Wgsl`
|
|
wgsl = ["naga/wgsl-in"]
|
|
vulkan-portability = ["hal/vulkan"]
|
|
|
|
[dependencies]
|
|
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
|
|
|
|
[dependencies.naga]
|
|
workspace = true
|
|
features = ["clone", "span", "validate"]
|
|
|
|
[dependencies.wgt]
|
|
workspace = true
|
|
|
|
[dependencies.hal]
|
|
workspace = true
|
|
|
|
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
|
|
web-sys = { workspace = true, features = ["HtmlCanvasElement", "OffscreenCanvas"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
hal = { workspace = true, features = ["gles"] }
|
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), any(target_os = "ios", target_os = "macos")))'.dependencies]
|
|
hal = { workspace = true, features = ["metal"] }
|
|
#Note: could also enable "vulkan" for Vulkan Portability
|
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
|
|
hal = { workspace = true, features = ["vulkan", "gles", "renderdoc"] }
|
|
|
|
[target.'cfg(all(not(target_arch = "wasm32"), windows))'.dependencies]
|
|
hal = { workspace = true, features = ["vulkan", "dx12", "dx11", "renderdoc"] }
|
|
|
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
|
hal = { workspace = true, features = ["emscripten"] }
|
|
|
|
[build-dependencies]
|
|
cfg_aliases.workspace = true
|