mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
[glsl-new] set global_usgae on functions (#138)
This commit is contained in:
1 parent
c5a302b769
commit
b0f1f6285a
1 file changed
+1
@@ -753,6 +753,7 @@ pomelo! {
|
||||
std::mem::swap(&mut f.local_variables, &mut extra.context.local_variables);
|
||||
extra.context.clear_scopes();
|
||||
f.body = cs;
|
||||
f.global_usage = crate::GlobalUse::scan(&f.expressions, &f.body, &extra.global_variables);
|
||||
f
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user