blob: dd0fc8a3622c958089b57309df118b1d3840d281 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant int* u;
device int* s;
};
kernel void tint_symbol(const constant int* u [[buffer(0)]], device int* s [[buffer(1)]]) {
tint_module_vars_struct const tint_module_vars = {.u=u, .s=s};
int const x = (*tint_module_vars.u);
(*tint_module_vars.s) = x;
}