diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-30 15:14:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 15:14:16 +0100 |
| commit | 3035dee9f14402f57d42ff0b362152140b4dca13 (patch) | |
| tree | b9a3d3d36e368b3585970ffe00127c90e16b7a09 /ext/webgpu/Cargo.toml | |
| parent | 266915d5ce354fde12b20f8f5ceb5ffdfacb7983 (diff) | |
chore: update webgpu (#17534)
Diffstat (limited to 'ext/webgpu/Cargo.toml')
| -rw-r--r-- | ext/webgpu/Cargo.toml | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/ext/webgpu/Cargo.toml b/ext/webgpu/Cargo.toml index 3e1d579f9..d22eb19e7 100644 --- a/ext/webgpu/Cargo.toml +++ b/ext/webgpu/Cargo.toml @@ -3,16 +3,38 @@ [package] name = "deno_webgpu" version = "0.87.0" -authors.workspace = true +authors = ["the Deno authors"] edition.workspace = true -license.workspace = true +license = "MIT" readme = "README.md" repository = "https://github.com/gfx-rs/wgpu" description = "WebGPU implementation for Deno" +[features] +surface = ["wgpu-core/raw-window-handle", "dep:raw-window-handle"] + [dependencies] deno_core.workspace = true +raw-window-handle = { workspace = true, optional = true } serde.workspace = true tokio.workspace = true -wgpu-core = { version = "0.13", features = ["trace", "replay", "serde"] } -wgpu-types = { version = "0.13", features = ["trace", "replay", "serde"] } +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"] |
