2021-05-19 19:16:32 +00:00
|
|
|
void func(int value, inout int pointer) {
|
|
|
|
pointer = value;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
void main_1() {
|
2021-05-19 19:16:32 +00:00
|
|
|
int i = 0;
|
|
|
|
i = 123;
|
|
|
|
func(123, i);
|
|
|
|
return;
|
|
|
|
}
|
2021-06-17 09:10:04 +00:00
|
|
|
|
|
|
|
[numthreads(1, 1, 1)]
|
|
|
|
void main() {
|
|
|
|
main_1();
|
|
|
|
return;
|
|
|
|
}
|