From 8d927700700fb1c01d35878a44ebb6c05070a431 Mon Sep 17 00:00:00 2001 From: Satoshi Tanaka Date: Sun, 4 Aug 2024 14:41:25 +0900 Subject: [PATCH] Update wgpu to major-version release 22.0 --- Cargo.toml | 8 ++++---- examples/feature_wgpu.rs | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f37e23ea..36d955c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ metal = { version = "0.28", optional = true } lazy_static = "1.4" core-graphics-types = "0.1" mach2 = "0.4" -wgpu = { version = "^0.20", optional = true, features = ["metal", "hal"] } +wgpu = { version = "^22.0", optional = true, features = ["metal"] } [target.'cfg(target_os = "windows")'.dependencies] windows = { version = "0.52", features = [ @@ -82,11 +82,11 @@ windows = { version = "0.52", features = [ "ApplicationModel_Core", "System", ] } -wgpu = { version = "0.20", optional = true, features = ["dx12", "hal"] } -d3d12 = "0.20" +wgpu = { version = "22.0", optional = true, features = ["dx12"] } +d3d12 = "22.0" winapi = { version = "0.3", optional = true } [dev-dependencies] futures = "0.3" tokio = { version = "1.37", features = ["rt", "macros", "rt-multi-thread"] } -wgpu = "0.20" +wgpu = "22.0" diff --git a/examples/feature_wgpu.rs b/examples/feature_wgpu.rs index 38d4b4db..c05fc56b 100644 --- a/examples/feature_wgpu.rs +++ b/examples/feature_wgpu.rs @@ -42,6 +42,7 @@ fn main() { label: Some("wgpu adapter"), required_features: wgpu::Features::default(), required_limits: wgpu::Limits::default(), + memory_hints: wgpu::MemoryHints::default(), }, None).await.expect("Expected wgpu device"); let gfx = Arc::new(Gfx { device: wgpu_device,