#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
thread float2x2* P; | |
}; | |
float2 func(thread float2* const pointer) { | |
return (*pointer); | |
} | |
kernel void tint_symbol() { | |
thread float2x2 P = float2x2(0.0f); | |
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.P=(&P)}; | |
float2 const r = func((&(*tint_module_vars.P)[1])); | |
} |