Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
spirv_cannot_call_function_pointer.zig
pretty
plain
permalink
blame
history
•
13 lines
•
232 B
1
fn foo() void {}
2
3
export fn main() callconv(.kernel) void {
4
var fp = &foo;
5
fp = &foo;
6
fp();
7
}
8
9
// error
10
// backend=selfhosted
11
// target=spirv32-vulkan
12
//
13
// :6:5: error: SPIR-V does not support calling function pointers