mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-new] set global_usgae on functions (#138)
This commit is contained in:
@@ -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