[glsl-out] Add inout qualifier for pointer function arguments

This commit is contained in:
Gordon-F authored and Dzmitry Malyshau committed 2021-07-31 23:59:06 -04:00
1 parent e58d1649c3
commit 8e17c29644
1 file changed
+5
+5
View File
@@ -1030,6 +1030,11 @@ impl<'a, W: Write> Writer<'a, W> {
// any spaces at the beginning or end
this.write_image_type(dim, arrayed, class)?;
}
TypeInner::Pointer { base, .. } => {
// write parameter qualifiers
write!(this.out, "inout ")?;
this.write_type(base)?;
}
// All other types are written by `write_type`
_ => {
this.write_type(arg.ty)?;