blob: 5c64adc00afe44cfc9501a863d3b71a4ae687293 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
half3 v;
};
struct tint_module_vars_struct {
device S* U;
};
void f(tint_module_vars_struct tint_module_vars) {
(*tint_module_vars.U).v = half3(1.0h, 2.0h, 3.0h);
(*tint_module_vars.U).v[0u] = 1.0h;
(*tint_module_vars.U).v[1u] = 2.0h;
(*tint_module_vars.U).v[2u] = 3.0h;
}