From 7205a747685307e9e3d6aec30eac1bece222d74f Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Fri, 29 Nov 2024 23:04:35 -0700 Subject: [PATCH] Upgrade to wgpu 23 and use workspace dependency (yay) --- Cargo.toml | 3 +++ crates/bootstrap/Cargo.toml | 2 +- crates/demo/Cargo.toml | 2 +- crates/yakui-app/Cargo.toml | 2 +- crates/yakui-to-image/Cargo.toml | 2 +- crates/yakui-wgpu/Cargo.toml | 2 +- crates/yakui-wgpu/src/lib.rs | 8 ++++---- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 99463567..869bab30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,3 +2,6 @@ resolver = "2" members = ["crates/*"] default-members = ["crates/*"] + +[workspace.dependencies] +wgpu = "23.0.1" \ No newline at end of file diff --git a/crates/bootstrap/Cargo.toml b/crates/bootstrap/Cargo.toml index 10d4d180..07d39649 100644 --- a/crates/bootstrap/Cargo.toml +++ b/crates/bootstrap/Cargo.toml @@ -22,4 +22,4 @@ profiling = "1.0.6" tracy-client = { version = "0.15.1", optional = true } winit = "0.30.0" -wgpu = "22.0.0" +wgpu.workspace = true diff --git a/crates/demo/Cargo.toml b/crates/demo/Cargo.toml index a8ecee0e..8f093848 100644 --- a/crates/demo/Cargo.toml +++ b/crates/demo/Cargo.toml @@ -14,7 +14,7 @@ yakui-app = { path = "../yakui-app" } env_logger = "0.10.0" log = "0.4.17" pollster = "0.3.0" -wgpu = { version = "22.0.0", features = ["webgl"] } +wgpu = { workspace = true, features = ["webgl"] } winit = "0.30.0" [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/crates/yakui-app/Cargo.toml b/crates/yakui-app/Cargo.toml index 84c7e568..766fcd3d 100644 --- a/crates/yakui-app/Cargo.toml +++ b/crates/yakui-app/Cargo.toml @@ -17,4 +17,4 @@ yakui-wgpu = { path = "../yakui-wgpu", version = "0.3.0" } profiling = { version = "1.0.6", optional = true } winit = { version = "0.30.0" } -wgpu = "22.0.0" +wgpu.workspace = true diff --git a/crates/yakui-to-image/Cargo.toml b/crates/yakui-to-image/Cargo.toml index af9a2e65..476af583 100644 --- a/crates/yakui-to-image/Cargo.toml +++ b/crates/yakui-to-image/Cargo.toml @@ -11,6 +11,6 @@ edition = "2021" yakui-core = { path = "../yakui-core" } yakui-wgpu = { path = "../yakui-wgpu" } -wgpu = "22.0.0" +wgpu.workspace = true image = { version = "0.24.4", default-features = false, features = ["png"] } pollster = "0.3.0" diff --git a/crates/yakui-wgpu/Cargo.toml b/crates/yakui-wgpu/Cargo.toml index 43d74f5a..c95219a0 100644 --- a/crates/yakui-wgpu/Cargo.toml +++ b/crates/yakui-wgpu/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" [dependencies] yakui-core = { path = "../yakui-core", version = "0.3.0" } -wgpu = "22.0.0" +wgpu.workspace = true glam = { version = "0.29.0", features = ["bytemuck"] } bytemuck = { version = "1.12.1", features = ["derive"] } thunderdome = "0.6.0" diff --git a/crates/yakui-wgpu/src/lib.rs b/crates/yakui-wgpu/src/lib.rs index bc6a6ed0..8ef2a913 100644 --- a/crates/yakui-wgpu/src/lib.rs +++ b/crates/yakui-wgpu/src/lib.rs @@ -453,13 +453,13 @@ fn make_main_pipeline( layout: Some(layout), vertex: wgpu::VertexState { module: &main_shader, - entry_point: "vs_main", + entry_point: None, compilation_options: Default::default(), buffers: &[Vertex::DESCRIPTOR], }, fragment: Some(wgpu::FragmentState { module: &main_shader, - entry_point: "fs_main", + entry_point: None, compilation_options: Default::default(), targets: &[Some(wgpu::ColorTargetState { format, @@ -502,13 +502,13 @@ fn make_text_pipeline( layout: Some(layout), vertex: wgpu::VertexState { module: &text_shader, - entry_point: "vs_main", + entry_point: None, compilation_options: Default::default(), buffers: &[Vertex::DESCRIPTOR], }, fragment: Some(wgpu::FragmentState { module: &text_shader, - entry_point: "fs_main", + entry_point: None, compilation_options: Default::default(), targets: &[Some(wgpu::ColorTargetState { format,