mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 16:53:48 +00:00
[glsl-out] Fix array writing
This commit is contained in:
parent
6e37f336bd
commit
230ec601ed
@ -557,8 +557,9 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
TypeInner::Pointer { base, .. } => self.write_type(base)?,
|
||||
// Arrays are written as `base[size]`
|
||||
TypeInner::Array { base, size, .. } => {
|
||||
self.write_type(base)?;
|
||||
let ty_name = &self.names[&NameKey::Type(base)];
|
||||
|
||||
write!(self.out, "{}", ty_name)?;
|
||||
write!(self.out, "[")?;
|
||||
|
||||
// Write the array size
|
||||
|
Loading…
Reference in New Issue
Block a user