blob: b792a3aebd005a5649fdbcd554564c987194148b [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
half3 v;
};
struct tint_private_vars_struct {
S P;
};
void f(thread tint_private_vars_struct* const tint_private_vars) {
(*(tint_private_vars)).P.v = half3(1.0h, 2.0h, 3.0h);
(*(tint_private_vars)).P.v[0] = 1.0h;
(*(tint_private_vars)).P.v[1] = 2.0h;
(*(tint_private_vars)).P.v[2] = 3.0h;
}