blob: fe1f2b2e07faee37118c93341e05fd34af7fdd8a [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device int* S;
};
void func(device int* const pointer) {
(*pointer) = 42;
}
kernel void tint_symbol(device int* S [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.S=S};
func(tint_module_vars.S);
}