aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-04-08 23:49:17 +0200
committerRobin Voetter <robin@voetter.nl>2023-04-09 01:51:55 +0200
commitd1484bf4b96177135183916b95198de25dc63356 (patch)
tree5c61b9dc2dc00d03bdbd851548ebc8ee068afe0b /src/Compilation.zig
parent979b4102588fbb0d066060a5a6b6e10f584158ac (diff)
downloadzig-d1484bf4b96177135183916b95198de25dc63356.tar.gz
zig-d1484bf4b96177135183916b95198de25dc63356.zip
spirv: emit nonsemantic info with zig errors
In order to be able to report nice errors in the test runner, and in order to check SkipZigTest errors, we need to pass the error names to the consumer. This kind of information can be passed via nonsemantic instructions - using OpSourceExtension here. All errors are concatenated into a single string, starting with 'zig_errors:' for identification, separated by a colon (:). To ensure that we can represent all error codes, even those which contain a colon, the error names are URI- escaped. URI-escaping, rather than base64, allows us to see the error names when viewing disassembled SPIR-V code.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions