mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-out] Add inout qualifier for pointer function arguments
This commit is contained in:
committed by
Dzmitry Malyshau
parent
e58d1649c3
commit
8e17c29644
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user