mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
validate: check constant composite type
This commit is contained in:
1 parent
bf0cb2b3a9
commit
003ea29a3a
1 file changed
+1
-1
+1
-1
@@ -240,7 +240,7 @@ impl Validator {
|
||||
}
|
||||
}
|
||||
crate::ConstantInner::Composite { ty, ref components } => {
|
||||
match types[ty].inner {
|
||||
match types.get_handle(ty).ok_or(ConstantError::InvalidType)?.inner {
|
||||
crate::TypeInner::Array {
|
||||
size: crate::ArraySize::Constant(size_handle),
|
||||
..
|
||||
|
||||
Reference in new issue
Block a user