#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
const constant float2* weights; | |
}; | |
fragment void tint_symbol(const constant float2* weights [[buffer(0)]]) { | |
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.weights=weights}; | |
float a = (*tint_module_vars.weights)[0]; | |
} |