#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
const constant uint3* u; | |
device uint3* s; | |
}; | |
kernel void tint_symbol(const constant uint3* u [[buffer(0)]], device uint3* s [[buffer(1)]]) { | |
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.u=u, .s=s}; | |
uint3 const x = (*tint_module_vars.u); | |
(*tint_module_vars.s) = x; | |
} |