Giovanni Mascellani (@giomasce) commented about tests/hlsl/inverse-trig.shader_test:
+[pixel shader] +uniform float4 a;
+float4 main() : sv_target +{
- // Add 10 to avoid epsilon problems near 0
- // Note that this means -8.5odd means -pi/2
Is this really needed, especially once you're using the right coefficients?
Please, also test what happens out of the definition domain of the function, including for infinities.