2021-05-18 10:28:48 +00:00
|
|
|
fn func(value : i32, pointer : ptr<function, i32>) {
|
|
|
|
*(pointer) = value;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
fn main_1() {
|
2021-05-18 10:28:48 +00:00
|
|
|
var i : i32 = 0;
|
|
|
|
i = 123;
|
|
|
|
func(123, &(i));
|
|
|
|
return;
|
|
|
|
}
|
2021-06-17 09:10:04 +00:00
|
|
|
|
2021-06-17 22:40:43 +00:00
|
|
|
[[stage(compute), workgroup_size(1, 1, 1)]]
|
2021-06-17 09:10:04 +00:00
|
|
|
fn main() {
|
|
|
|
main_1();
|
|
|
|
}
|