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