#include <metal_stdlib> | |
using namespace metal; | |
struct tint_module_vars_struct { | |
device float4* S; | |
}; | |
void func(device float4* const pointer) { | |
(*pointer) = float4(0.0f); | |
} | |
kernel void tint_symbol(device float4* S [[buffer(0)]]) { | |
tint_module_vars_struct const tint_module_vars = {.S=S}; | |
func(tint_module_vars.S); | |
} |