aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-04-08 19:02:31 +0200
committerRobin Voetter <robin@voetter.nl>2023-04-09 01:51:55 +0200
commita7563e453dce0cc256a0c40af434731f2cf7dcaf (patch)
treea0483d968b31c6d5a90bb32312bf13af62c0b79d /src/codegen/spirv.zig
parent45b5f467709e3df01aafc37c25070bbbebd43e1e (diff)
downloadzig-a7563e453dce0cc256a0c40af434731f2cf7dcaf.tar.gz
zig-a7563e453dce0cc256a0c40af434731f2cf7dcaf.zip
spirv: minimal start code
For SPIR-V, only export the main function if it is actually declared. Kernel entry points will often have parameters and more than one kernel declared. In general, SPIR-V binaries should mostly be compiled as libraries and not as executables. However, this start code is required so that we can build test executables. Note that a call to isSpirV() would emit the code for that function, even though the call is at comptime. To save that function from being emitted the checks are just inlined manually.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions