tests/shader-runner: Add hyperbolic trigonometry tests.

This commit is contained in:
Conor McCarthy 2024-01-22 17:37:41 +10:00 committed by Alexandre Julliard
parent c35ec4f820
commit c2f6985454
Notes: Alexandre Julliard 2024-02-07 23:26:46 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/618

View File

@ -74,3 +74,55 @@ float4 main() : sv_target
uniform 0 float4 0.0 0.78539816 2.35619449 3.14159265 uniform 0 float4 0.0 0.78539816 2.35619449 3.14159265
todo(sm<4) draw quad todo(sm<4) draw quad
probe all rgba (0, 1000, -1000.0, 0) probe all rgba (0, 1000, -1000.0, 0)
[pixel shader todo]
uniform float4 a;
float4 main() : sv_target
{
return sinh(a);
}
[test]
uniform 0 float4 -6.28318531 -0.88137359 0.88137359 6.28318531
todo draw quad
probe all rgba (-267.744894, -1.0, 1.0, 267.744894) 2
uniform 0 float4 -0.0 0.0 -90.0 90.0
todo draw quad
% mingw does not support "inf" for scanf(), but numbers beyond FLOAT_MAX consistently result in inf.
probe all rgba (0.0, 0.0, -1.0e39, 1.0e39) 1
[pixel shader todo]
uniform float4 a;
float4 main() : sv_target
{
return cosh(a);
}
[test]
uniform 0 float4 -1.76274717 -1.3169579 1.3169579 1.76274717
todo draw quad
probe all rgba (3.0, 2.0, 2.0, 3.0) 2
uniform 0 float4 -0.0 0.0 -90.0 90.0
todo draw quad
probe all rgba (1.0, 1.0, 1.0e39, 1.0e39) 1
[pixel shader todo]
uniform float4 a;
float4 main() : sv_target
{
return tanh(a);
}
[test]
uniform 0 float4 -1.57079633 -0.54930614 0.54930614 1.57079633
todo draw quad
probe all rgba (-0.91715234, -0.5, 0.5, 0.91715234) 2
uniform 0 float4 -10.0 -0.0 0.0 10.0
todo draw quad
probe all rgba (-1.0, 0.0, 0.0, 1.0) 1