mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 01:54:31 +01:00
[glsl-in] Deduplicate constants so array types match
This commit is contained in:
1 parent
0a957f9427
commit
42f1f37741
1 file changed
+1
-1
@@ -1032,7 +1032,7 @@ impl<'source, 'program, 'options> Parser<'source, 'program, 'options> {
|
||||
}
|
||||
};
|
||||
|
||||
let handle = self.program.module.constants.append(Constant {
|
||||
let handle = self.program.module.constants.fetch_or_append(Constant {
|
||||
name: None,
|
||||
specialization: None,
|
||||
inner: ConstantInner::Scalar { width, value },
|
||||
|
||||
Reference in new issue
Block a user