#include <metal_stdlib> | |
using namespace metal; | |
struct Input { | |
int3 position; | |
}; | |
struct tint_module_vars_struct { | |
const device Input* input; | |
}; | |
kernel void tint_symbol(uint3 id [[thread_position_in_grid]], const device Input* input [[buffer(0)]]) { | |
tint_module_vars_struct const tint_module_vars = {.input=input}; | |
int3 const pos = ((*tint_module_vars.input).position - int3(0)); | |
} |