blob: 23d2d8d5931f85739df6c9bfa4a650a1437c6e3f [file]
#include <metal_stdlib>
using namespace metal;
uint3 tint_mod_v3u32(uint3 lhs, uint3 rhs) {
return (lhs - ((lhs / select(rhs, uint3(1u), (rhs == uint3(0u)))) * select(rhs, uint3(1u), (rhs == uint3(0u)))));
}
[[max_total_threads_per_threadgroup(1)]]
kernel void f() {
uint3 const a = uint3(1u, 2u, 3u);
uint3 const b = uint3(4u, 5u, 6u);
uint3 const r = tint_mod_v3u32(a, b);
}