blob: 15c5617f276242155d7f68e0ef6c831c98d70e9e [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S_packed_vec3 {
packed_int3 v;
};
struct tint_module_vars_struct {
device S_packed_vec3* U;
};
void f(tint_module_vars_struct tint_module_vars) {
(*tint_module_vars.U).v = packed_int3(int3(1, 2, 3));
(*tint_module_vars.U).v[0u] = 1;
(*tint_module_vars.U).v[1u] = 2;
(*tint_module_vars.U).v[2u] = 3;
}