2021-05-18 10:28:48 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2021-05-22 12:40:04 +00:00
|
|
|
void func(int value, thread int* const pointer) {
|
2021-05-18 10:28:48 +00:00
|
|
|
*(pointer) = value;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
void main_1() {
|
2021-05-18 10:28:48 +00:00
|
|
|
int i = 0;
|
|
|
|
i = 123;
|
|
|
|
func(123, &(i));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-06-17 09:10:04 +00:00
|
|
|
kernel void tint_symbol() {
|
|
|
|
main_1();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|