blob: c61e266e8d16e7823a3009d0d150d51198cc3902 [file] [log] [blame]
float3 tint_float_mod(float3 lhs, float rhs) {
const float3 r = float3((rhs).xxx);
return (lhs - (trunc((lhs / r)) * r));
}
[numthreads(1, 1, 1)]
void f() {
const float3 a = float3(1.0f, 2.0f, 3.0f);
const float b = 4.0f;
const float3 r = tint_float_mod(a, b);
return;
}