blob: 651d8e656cbbaea4aa731dec80b562b729bfb230 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant half3x2* u;
device half3x2* s;
};
kernel void f(const constant half3x2* u [[buffer(0)]], device half3x2* s [[buffer(1)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.u=u, .s=s};
(*tint_module_vars.s) = (*tint_module_vars.u);
(*tint_module_vars.s)[1] = (*tint_module_vars.u)[0];
(*tint_module_vars.s)[1] = (*tint_module_vars.u)[0].yx;
(*tint_module_vars.s)[0][1] = (*tint_module_vars.u)[1][0];
}