aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-04-09 01:29:39 +0200
committerRobin Voetter <robin@voetter.nl>2023-04-09 01:51:53 +0200
commit8bbfbfc956af163434c734e196d5c2a77e77ff07 (patch)
tree8ed95f240d2736a4d82e915ecc9269f15ba834e2 /lib
parent80b84355692606ac840584baa62aaafdd8ecd425 (diff)
downloadzig-8bbfbfc956af163434c734e196d5c2a77e77ff07.tar.gz
zig-8bbfbfc956af163434c734e196d5c2a77e77ff07.zip
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions