blob: 7e3500b8a361307ee1a0f6492e0c92a8b55cf579 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant half2x4* m;
thread int* counter;
};
int i(tint_module_vars_struct tint_module_vars) {
(*tint_module_vars.counter) = ((*tint_module_vars.counter) + 1);
return (*tint_module_vars.counter);
}
kernel void f(const constant half2x4* m [[buffer(0)]]) {
thread int counter = 0;
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.m=m, .counter=(&counter)};
const constant half2x4* const p_m = tint_module_vars.m;
const constant half4* const p_m_i = (&(*p_m)[i(tint_module_vars)]);
half2x4 const l_m = (*p_m);
half4 const l_m_i = (*p_m_i);
}