mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
refactor(core): tidy if for bound shader global variables analysis
Co-authored-by: Jim Blandy <jimb@red-bean.com>
This commit is contained in:
1 parent
2a1968fb46
commit
ab750f56a8
1 file changed
+2
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user