2023-01-02 16:00:42 -05:00
|
|
|
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
2021-03-01 05:31:13 -05:00
|
|
|
|
|
|
|
[package]
|
|
|
|
name = "deno_webgpu"
|
2023-01-25 18:15:08 -05:00
|
|
|
version = "0.87.0"
|
2023-01-30 09:14:16 -05:00
|
|
|
authors = ["the Deno authors"]
|
2022-11-22 15:07:35 -05:00
|
|
|
edition.workspace = true
|
2023-01-30 09:14:16 -05:00
|
|
|
license = "MIT"
|
2021-03-01 05:31:13 -05:00
|
|
|
readme = "README.md"
|
2022-01-24 17:47:05 -05:00
|
|
|
repository = "https://github.com/gfx-rs/wgpu"
|
2021-08-02 10:19:27 -04:00
|
|
|
description = "WebGPU implementation for Deno"
|
2021-03-01 05:31:13 -05:00
|
|
|
|
2023-01-30 09:14:16 -05:00
|
|
|
[features]
|
|
|
|
surface = ["wgpu-core/raw-window-handle", "dep:raw-window-handle"]
|
|
|
|
|
2021-03-01 05:31:13 -05:00
|
|
|
[dependencies]
|
2022-11-22 15:07:35 -05:00
|
|
|
deno_core.workspace = true
|
2023-01-30 09:14:16 -05:00
|
|
|
raw-window-handle = { workspace = true, optional = true }
|
2022-11-22 15:07:35 -05:00
|
|
|
serde.workspace = true
|
|
|
|
tokio.workspace = true
|
2023-01-30 09:14:16 -05:00
|
|
|
wgpu-types = { workspace = true, features = ["trace", "replay", "serde"] }
|
|
|
|
|
|
|
|
[dependencies.wgpu-core]
|
|
|
|
workspace = true
|
|
|
|
features = ["trace", "replay", "serde", "strict_asserts", "wgsl", "gles"]
|
|
|
|
|
|
|
|
# We want the wgpu-core Metal backend on macOS and iOS.
|
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.wgpu-core]
|
|
|
|
workspace = true
|
|
|
|
features = ["metal"]
|
|
|
|
|
|
|
|
# We want the wgpu-core Direct3D backends on Windows.
|
|
|
|
[target.'cfg(windows)'.dependencies.wgpu-core]
|
|
|
|
workspace = true
|
|
|
|
features = ["dx11", "dx12"]
|
|
|
|
|
|
|
|
# We want the wgpu-core Vulkan backend on Unix (but not Emscripten) and Windows.
|
|
|
|
[target.'cfg(any(windows, all(unix, not(target_arch = "emscripten"))))'.dependencies.wgpu-core]
|
|
|
|
workspace = true
|
|
|
|
features = ["vulkan"]
|