# spirv: add decl dependencies for functions also · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/405f7298acaa4818a26fdc93991c48705c19de15)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 405f7298acaa4818a26fdc93991c48705c19de15

Requested commit: 405f7298acaa4818a26fdc93991c48705c19de15

Commit: 405f7298acaa4818a26fdc93991c48705c19de15

Tree: 5aada5fd3997215cfbdb51f3dcb37225cf0e7bbf

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
spirv: add decl dependencies for functions also

Entry points need to be attributed with a complete list of
global variables that they use. To that end, the global dependencies
mechanism is extended to also allow functions - when flushing the
module, the list of dependencies is examined to generate this
list of global variable result-ids.

```

## Parents

- [efe7fae6afe1ecdfc3838a97651dc617c4c747c2](https://git.cafe/gitcafe/zig/commit/efe7fae6afe1ecdfc3838a97651dc617c4c747c2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/405f7298acaa4818a26fdc93991c48705c19de15?format=markdown)
