mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix validation of constant offset expression
This commit is contained in:
committed by
Dzmitry Malyshau
parent
00f4c07609
commit
ba055bfbad
@@ -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