mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
Fix validation of constant offset expression
This commit is contained in:
1 parent
00f4c07609
commit
ba055bfbad
1 file changed
+1
-1
@@ -440,7 +440,7 @@ impl super::Validator {
|
||||
match module.types[ty].inner {
|
||||
Ti::Vector {
|
||||
size,
|
||||
kind: crate::ScalarKind::Float,
|
||||
kind: crate::ScalarKind::Sint,
|
||||
..
|
||||
} => size as u32 == num_components,
|
||||
_ => false,
|
||||
|
||||
Reference in new issue
Block a user