blob: 3e5c9c4e3f785e392c92e108fd62a6045f081f82 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
device int* s;
};
kernel void f(device int* s [[buffer(0)]]) {
tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.s=s};
int c = 0;
int d = 0;
(*tint_module_vars.s) = as_type<int>((as_type<uint>(c) + as_type<uint>(d)));
}