#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread float* t; | |
}; | |
float2x2 m(tint_module_vars_struct tint_module_vars) { | |
(*tint_module_vars.t) = ((*tint_module_vars.t) + 1.0f); | |
return float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f)); | |
} | |
void f(tint_module_vars_struct tint_module_vars) { | |
half2x2 v = half2x2(m(tint_module_vars)); | |
} |