aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Module.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2022-11-30 23:28:07 +0100
committerRobin Voetter <robin@voetter.nl>2023-04-09 01:51:51 +0200
commitcaf8461af8df9a34abc5985042d98b8188575cd0 (patch)
tree09db4533e38137d70c64c5aaccc62443916038e7 /src/codegen/spirv/Module.zig
parent2a8e784989b9053ce609a38a9d384a77ce5badaa (diff)
downloadzig-caf8461af8df9a34abc5985042d98b8188575cd0.tar.gz
zig-caf8461af8df9a34abc5985042d98b8188575cd0.zip
spirv: make locals generic pointers
Taking the address of a local variable should result in a generic pointer - too much code breaks if we do not do this. We cannot lower locals into the generic storage class directly though, so instead, lower the variables into the Function storage class implicitly, and convert the pointer to a generic pointer. Also Correct OpInboundsAccessChain generation (we only need the one index).
Diffstat (limited to 'src/codegen/spirv/Module.zig')
0 files changed, 0 insertions, 0 deletions