2021-05-26 15:41:02 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2023-03-20 21:46:01 +00:00
|
|
|
struct tint_private_vars_struct {
|
|
|
|
int I;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main_1(thread tint_private_vars_struct* const tint_private_vars) {
|
|
|
|
(*(tint_private_vars)).I = 123;
|
|
|
|
(*(tint_private_vars)).I = 123;
|
2021-06-17 09:10:04 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-05-26 15:41:02 +00:00
|
|
|
kernel void tint_symbol() {
|
2023-03-20 21:46:01 +00:00
|
|
|
thread tint_private_vars_struct tint_private_vars = {};
|
|
|
|
tint_private_vars.I = 0;
|
|
|
|
main_1(&(tint_private_vars));
|
2021-05-26 15:41:02 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|