[naga hlsl-out] Fix odd name for a Handle<GlobalVariable>. (#7996)

This commit is contained in:
Jim Blandy
2025-07-23 13:48:49 -07:00
committed by GitHub
parent 2fcd41377c
commit dbe64a769b

View File

@@ -392,8 +392,8 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> {
}
// Write all globals
for (ty, _) in module.global_variables.iter() {
self.write_global(module, ty)?;
for (global, _) in module.global_variables.iter() {
self.write_global(module, global)?;
}
if !module.global_variables.is_empty() {