#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
const constant float3x3* u; | |
}; | |
void a(float3x3 m) { | |
} | |
void b(float3 v) { | |
} | |
void c(float f) { | |
} | |
kernel void f(const constant float3x3* u [[buffer(0)]]) { | |
tint_module_vars_struct const tint_module_vars = {.u=u}; | |
a((*tint_module_vars.u)); | |
b((*tint_module_vars.u)[1]); | |
b((*tint_module_vars.u)[1].zxy); | |
c((*tint_module_vars.u)[1][0u]); | |
c((*tint_module_vars.u)[1].zxy[0u]); | |
} |