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