mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Added support for matrix access on the typifier
This commit is contained in:
committed by
Dzmitry Malyshau
parent
99f829b3cc
commit
34e46d0a76
@@ -98,6 +98,12 @@ impl Typifier {
|
||||
kind,
|
||||
width,
|
||||
} => Resolution::Value(crate::TypeInner::Scalar { kind, width }),
|
||||
crate::TypeInner::Matrix {
|
||||
rows: size,
|
||||
columns: _,
|
||||
kind,
|
||||
width,
|
||||
} => Resolution::Value(crate::TypeInner::Vector { size, kind, width }),
|
||||
ref other => panic!("Can't access into {:?}", other),
|
||||
},
|
||||
crate::Expression::AccessIndex { base, index } => match *self.get(base, types) {
|
||||
|
||||
Reference in New Issue
Block a user