mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 23:41:01 +01:00
glsl-out: Fix array constants constructor
This commit is contained in:
1 parent
8003e3e30a
commit
79233ba5e5
1 file changed
+3
@@ -1343,6 +1343,9 @@ impl<'a, W: Write> Writer<'a, W> {
|
||||
// `type(components)` where `components` is a comma separated list of constants
|
||||
crate::ConstantInner::Composite { ty, ref components } => {
|
||||
self.write_type(ty)?;
|
||||
if let TypeInner::Array { size, .. } = self.module.types[ty].inner {
|
||||
self.write_array_size(size)?;
|
||||
}
|
||||
write!(self.out, "(")?;
|
||||
|
||||
// Write the comma separated constants
|
||||
|
||||
Reference in new issue
Block a user