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

This commit is contained in:
Gordon-F
2021-07-29 18:45:12 +03:00
committed by Dzmitry Malyshau
parent e58d1649c3
commit 8e17c29644

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)?;