[wgsl-out] Fix Pointer writing

This commit is contained in:
Igor Shaposhnik
2021-06-22 16:18:24 +00:00
committed by Dzmitry Malyshau
parent 0292a2897a
commit a5874eb0cf

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 {:?}",