#include <metal_stdlib> using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); int3 const r = as_type<int3>((as_type<uint>(a) + as_type<uint3>(b))); return; }