Skip to content

Commit dbe64a7

Browse files
authored
[naga hlsl-out] Fix odd name for a Handle<GlobalVariable>. (#7996)
1 parent 2fcd413 commit dbe64a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

naga/src/back/hlsl/writer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
392392
}
393393

394394
// Write all globals
395-
for (ty, _) in module.global_variables.iter() {
396-
self.write_global(module, ty)?;
395+
for (global, _) in module.global_variables.iter() {
396+
self.write_global(module, global)?;
397397
}
398398

399399
if !module.global_variables.is_empty() {

0 commit comments

Comments
 (0)