[wgsl-out] Fix Pointer writing

This commit is contained in:
Igor Shaposhnik authored and Dzmitry Malyshau committed 2021-06-22 12:29:14 -04:00
1 parent 0292a2897a
commit a5874eb0cf
1 file changed
+6
+6
View File
@@ -521,6 +521,12 @@ impl<W: Write> Writer<W> {
vector_size_str(rows),
)?;
}
TypeInner::Pointer { base, class } => {
self.write_type(module, base)?;
if let Some(storage_class) = storage_class_str(class) {
write!(self.out, "<{}>", storage_class)?;
}
},
_ => {
return Err(Error::Unimplemented(format!(
"write_value_type {:?}",