blob: 8e717d7b1bbd9af93254a74b8bff3a764117498c [file]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
const constant int* S;
};
int func(const constant int* const pointer) {
return (*pointer);
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v(const constant int* S [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.S=S};
int const r = func(tint_module_vars.S);
}