2022-12-01 18:49:09 +00:00
|
|
|
#include <metal_stdlib>
|
|
|
|
|
|
|
|
using namespace metal;
|
2023-03-20 21:46:01 +00:00
|
|
|
struct tint_private_vars_struct {
|
|
|
|
int P;
|
|
|
|
};
|
|
|
|
|
2022-12-01 18:49:09 +00:00
|
|
|
void func(thread int* const pointer) {
|
|
|
|
*(pointer) = 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel void tint_symbol() {
|
2023-03-20 21:46:01 +00:00
|
|
|
thread tint_private_vars_struct tint_private_vars = {};
|
|
|
|
func(&(tint_private_vars.P));
|
2022-12-01 18:49:09 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|