blob: 924b03687abca16ae46cc95ac16c92e7a83e2009 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct str {
float4 i;
};
struct tint_module_vars_struct {
const device str* S;
};
float4 func(const device float4* const pointer) {
return (*pointer);
}
kernel void tint_symbol(const device str* S [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = {.S=S};
float4 const r = func((&(*tint_module_vars.S).i));
}