Skip to content

Commit

Permalink
Upgrade naga dependency to 0.19 (#515)
Browse files Browse the repository at this point in the history
Co-authored-by: sepcnt <[email protected]>
  • Loading branch information
sepcnt and sepcnt committed Mar 10, 2024
1 parent 44b6d54 commit 755fc5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/shaders/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ msl = []
workspace = true

[dependencies]
naga = { version = "0.13", features = ["wgsl-in", "msl-out", "validate"], optional = true }
naga = { version = "0.19", features = ["wgsl-in", "msl-out",], optional = true }
thiserror = { version = "1.0.57", optional = true }

[build-dependencies]
naga = { version = "0.13", features = ["wgsl-in", "msl-out", "validate"] }
naga = { version = "0.19", features = ["wgsl-in", "msl-out",] }
thiserror = "1.0.57"

8 changes: 4 additions & 4 deletions crates/shaders/src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ impl ShaderInfo {
..
} => u32::from(*size) * stride,
naga::TypeInner::Struct { span, .. } => *span,
naga::TypeInner::Scalar { width, .. } => *width as u32,
naga::TypeInner::Vector { width, .. } => *width as u32,
naga::TypeInner::Matrix { width, .. } => *width as u32,
naga::TypeInner::Atomic { width, .. } => *width as u32,
naga::TypeInner::Scalar(scalar) => scalar.width as u32,
naga::TypeInner::Vector { scalar, .. } => scalar.width as u32,
naga::TypeInner::Matrix { scalar, .. } => scalar.width as u32,
naga::TypeInner::Atomic(scalar) => scalar.width as u32,
_ => {
// Not a valid workgroup variable type. At least not one that is used
// in our shaders.
Expand Down

0 comments on commit 755fc5b

Please sign in to comment.