Skip to content

Commit

Permalink
Upgrade to wgpu 23 and use workspace dependency (yay)
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Nov 30, 2024
1 parent 240e426 commit 7205a74
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
resolver = "2"
members = ["crates/*"]
default-members = ["crates/*"]

[workspace.dependencies]
wgpu = "23.0.1"
2 changes: 1 addition & 1 deletion crates/bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion crates/demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/yakui-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion crates/yakui-to-image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion crates/yakui-wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions crates/yakui-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7205a74

Please sign in to comment.