refactor(core): tidy if for bound shader global variables analysis

Co-authored-by: Jim Blandy <jimb@red-bean.com>
This commit is contained in:
Erich GublerandJim Blandy authored and mergify[bot] committed 2026-11-05 17:24:14 +00:00
1 parent 2a1968fb46
commit ab750f56a8
1 file changed
+2 -4
+2 -4
View File
@@ -1366,10 +1366,8 @@ impl Interface {
let mut resources = naga::Arena::new();
let mut resource_mapping = FastHashMap::default();
for (var_handle, var) in module.global_variables.iter() {
let bind = match var.binding {
Some(br) => br,
_ => continue,
};
let Some(bind) = var.binding else { continue };
let naga_ty = &module.types[var.ty].inner;
let inner_ty = match *naga_ty {