Update wgpu to 0.18.1 (#30926)

* Update wgpu to 0.18.1

* Fix webgpu code

* tidy
This commit is contained in:
Samson 2023-12-25 08:11:37 +01:00 committed by GitHub
parent 3ce590bec4
commit 7973cb6458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 65 additions and 28 deletions

View file

@ -23,17 +23,17 @@ smallvec = { workspace = true, features = ["serde"] }
webrender = { workspace = true }
webrender_api = { workspace = true }
webrender_traits = { workspace = true }
wgpu-core = { version = "0.17", features = ["replay", "trace", "serial-pass", "wgsl"] }
wgpu-types = { version = "0.17" }
wgpu-core = { workspace = true, features = ["replay", "trace", "serial-pass", "wgsl"] }
wgpu-types = { workspace = true }
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies.wgpu-core]
version = "0.17"
workspace = true
features = ["replay", "trace", "serial-pass", "metal"]
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies.wgpu-core]
version = "0.17"
workspace = true
features = ["replay", "trace", "serial-pass", "vulkan"]
[target.'cfg(windows)'.dependencies.wgpu-core]
version = "0.17"
workspace = true
features = ["replay", "trace", "serial-pass", "dx11", "dx12", "vulkan"]