mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
The previous implementation had many issues, most importantly it didn't allow to implement (at least in a sane way) some future features like default qualifiers and format qualifiers. This implementations centralizes the qualifiers into a struct with a hashmap for layout qualifiers, error reporting is also centralized which means that `add_global_var` and `add_local_var` no longer need to duplicate effort and the ugly loop + match combo is gone. Finally some minor fixes are also done as part of this rework, like a default location being provided for input/outputs variables and layout qualifiers being allowed to be repeated (overwriting the previous one) like the spec defines.