Open cheneym2 opened 1 week ago
See also https://github.com/shader-slang/slang/issues/5580 which would simplify the implementation of fmax3()
I think fmax3() could be implemented purely as fmax(x, fmax(y, z)) if fmax() was fixed, per issue 5580
As I said on the other issue, I think we should remove fmax3/fmin3 from hlsl.meta.slang
By inspection, this appears to have a bug where X is NaN and Y and Z are not specials.
fmin3() has a similar issue as described below for fmax3()
fmax3(NaN, 1, 2) should return 2 but would return 1.