2021-05-27 14:15:47 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
|
|
|
struct S {
|
|
|
|
int i;
|
|
|
|
};
|
|
|
|
|
2023-03-20 21:46:01 +00:00
|
|
|
struct tint_private_vars_struct {
|
|
|
|
S V;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main_1(thread tint_private_vars_struct* const tint_private_vars) {
|
|
|
|
(*(tint_private_vars)).V.i = 5;
|
2021-06-17 09:10:04 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-05-27 14:15:47 +00:00
|
|
|
kernel void tint_symbol() {
|
2023-03-20 21:46:01 +00:00
|
|
|
thread tint_private_vars_struct tint_private_vars = {};
|
|
|
|
main_1(&(tint_private_vars));
|
2021-05-27 14:15:47 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|