blob: 930bfff2267e23dfb84b8ee2c382868a8444b89e [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
uint3 tint_mod(uint lhs, uint3 rhs) {
uint3 const l = uint3(lhs);
return (l % select(rhs, uint3(1u), (rhs == uint3(0u))));
}
kernel void f() {
uint const a = 4u;
uint3 const b = uint3(1u, 2u, 3u);
uint3 const r = tint_mod(a, b);
return;
}