Meg's Mirrors
zig
about
branches
tags
log
tree
search
Search
zig
test
cases
compile_errors
spirv_global_var_must_be_threadlocal.zig
pretty
plain
permalink
blame
history
•
12 lines
•
209 B
1
var x: u32 = 0;
2
3
comptime {
4
_ = x;
5
}
6
7
// error
8
// backend=selfhosted
9
// target=spirv32-vulkan
10
//
11
// :1:1: error: SPIR-V target does not support global variables
12
// :1:1: note: consider using 'threadlocal'