Skip to content

Commit 5be8be7

Browse files
authored
Upgrade to wgpu 23 (#109)
1 parent 797bf59 commit 5be8be7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ prune = []
1717
allow_deprecated = []
1818

1919
[dependencies]
20-
naga = { version = "22.1", features = ["wgsl-in", "wgsl-out"] }
20+
naga = { version = "23", features = ["wgsl-in", "wgsl-out"] }
2121
tracing = "0.1"
2222
regex = "1.8"
2323
regex-syntax = "0.8"
@@ -31,6 +31,6 @@ once_cell = "1.17.0"
3131
indexmap = "2"
3232

3333
[dev-dependencies]
34-
wgpu = { version = "22", features = ["naga-ir"] }
34+
wgpu = { version = "23", features = ["naga-ir"] }
3535
futures-lite = "1"
3636
tracing-subscriber = { version = "0.3", features = ["std", "fmt"] }

src/compose/comment_strip_iter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ impl<'a> Iterator for CommentReplaceIter<'a> {
106106

107107
pub trait CommentReplaceExt<'a> {
108108
/// replace WGSL and GLSL comments with whitespace characters
109-
fn replace_comments(&'a mut self) -> CommentReplaceIter;
109+
fn replace_comments(&'a mut self) -> CommentReplaceIter<'a>;
110110
}
111111

112112
impl<'a> CommentReplaceExt<'a> for Lines<'a> {
113-
fn replace_comments(&'a mut self) -> CommentReplaceIter {
113+
fn replace_comments(&'a mut self) -> CommentReplaceIter<'a> {
114114
CommentReplaceIter {
115115
lines: self,
116116
state: CommentState::None,

src/compose/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ mod test {
13371337
}),
13381338
),
13391339
module: &shader_module,
1340-
entry_point: "run_test",
1340+
entry_point: Some("run_test"),
13411341
compilation_options: Default::default(),
13421342
cache: None,
13431343
});

0 commit comments

Comments
 (0)