spirv: improve linking globals

SPIR-V globals must be emitted in order, so that any
declaration precedes usage. Zig, however, generates globals in
random order. To this end we keep for each global a list of
dependencies and perform a topological sort when flushing the
module.
8bbfbfc956Robin Voetter committed on 4/8/2023, 11:51:53 PMparent80b8435
3 files changedLine totals unavailable