SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
kernel void f() { | |
uint a = 4u; | |
uint3 b = uint3(0u, 2u, 0u); | |
uint3 const v = (b + b); | |
uint3 const r = tint_mod_v3u32(uint3(a), v); | |
} | |
uint3 tint_mod_v3u32(uint3 lhs, uint3 rhs) { | |
uint3 const v_1 = select(rhs, uint3(1u), (rhs == uint3(0u))); | |
return (lhs - ((lhs / v_1) * v_1)); | |
} | |
program_source:8:19: error: use of undeclared identifier 'tint_mod_v3u32' | |
uint3 const r = tint_mod_v3u32(uint3(a), v); | |
^ | |