Skip to content

Commit

Permalink
Upgrade to wgpu 23 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia authored Oct 30, 2024
1 parent 797bf59 commit 5be8be7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ prune = []
allow_deprecated = []

[dependencies]
naga = { version = "22.1", features = ["wgsl-in", "wgsl-out"] }
naga = { version = "23", features = ["wgsl-in", "wgsl-out"] }
tracing = "0.1"
regex = "1.8"
regex-syntax = "0.8"
Expand All @@ -31,6 +31,6 @@ once_cell = "1.17.0"
indexmap = "2"

[dev-dependencies]
wgpu = { version = "22", features = ["naga-ir"] }
wgpu = { version = "23", features = ["naga-ir"] }
futures-lite = "1"
tracing-subscriber = { version = "0.3", features = ["std", "fmt"] }
4 changes: 2 additions & 2 deletions src/compose/comment_strip_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ impl<'a> Iterator for CommentReplaceIter<'a> {

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

impl<'a> CommentReplaceExt<'a> for Lines<'a> {
fn replace_comments(&'a mut self) -> CommentReplaceIter {
fn replace_comments(&'a mut self) -> CommentReplaceIter<'a> {
CommentReplaceIter {
lines: self,
state: CommentState::None,
Expand Down
2 changes: 1 addition & 1 deletion src/compose/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ mod test {
}),
),
module: &shader_module,
entry_point: "run_test",
entry_point: Some("run_test"),
compilation_options: Default::default(),
cache: None,
});
Expand Down

0 comments on commit 5be8be7

Please sign in to comment.