On Wed Sep 27 10:45:45 2023 +0000, Giovanni Mascellani wrote:
Why there is no warning for zero in this case? BTW, did you manage to actually have native execute `rsqrt()` on a `double`? If I try something trivial as
float4 main(uint4 x : COLOR) : sv_target { double y = 0.0; return rsqrt(y); }
the warnings seem to imply that `y` is casted to `float` before being given to `rsqrt()`.
Yes, it's better to remove anything but float/half. I don't see how to feed double to it. It's always converted.