mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
validate: check constant composite type
This commit is contained in:
@@ -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