#include <metal_stdlib> | |
using namespace metal; | |
struct a { | |
int b; | |
}; | |
struct _a { | |
int _b; | |
}; | |
kernel void f(device int* tint_symbol [[buffer(0)]]) { | |
_a const c = _a{}; | |
int const d = c._b; | |
*(tint_symbol) = as_type<int>((as_type<uint>(c._b) + as_type<uint>(d))); | |
return; | |
} | |