mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[msl-out] add support for matrix value types
This commit is contained in:
committed by
Dzmitry Malyshau
parent
604e10e19b
commit
4ff5fa4568
@@ -1084,6 +1084,16 @@ impl<W: Write> Writer<W> {
|
||||
vector_size_string(size)
|
||||
)?;
|
||||
}
|
||||
TypeResolution::Value(crate::TypeInner::Matrix { columns, rows, .. }) => {
|
||||
write!(
|
||||
self.out,
|
||||
"{}::{}{}x{}",
|
||||
NAMESPACE,
|
||||
scalar_kind_string(crate::ScalarKind::Float),
|
||||
vector_size_string(columns),
|
||||
vector_size_string(rows),
|
||||
)?;
|
||||
}
|
||||
TypeResolution::Value(ref other) => {
|
||||
log::error!("Type {:?} isn't a known local", other);
|
||||
return Err(Error::FeatureNotImplemented("weird local type".to_string()));
|
||||
|
||||
Reference in New Issue
Block a user