blob: 8abed97d41bd1fd4acbca5fcdb2d02cfde3bd6f7 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct S {
/* 0x0000 */ int4 a;
};
struct tint_module_vars_struct {
device S* v;
};
[[max_total_threads_per_threadgroup(1)]]
kernel void foo(device S* v [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.v=v};
(*tint_module_vars.v).a = as_type<int4>((as_type<uint4>((*tint_module_vars.v).a) << (uint4(2u) & uint4(31u))));
}