Module: vkd3d Branch: master Commit: c2f6985454ce1252a12395da85e236b313f6c062 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/c2f6985454ce1252a12395da85e236...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Mon Jan 22 17:37:41 2024 +1000
tests/shader-runner: Add hyperbolic trigonometry tests.
---
tests/hlsl/trigonometry.shader_test | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+)
diff --git a/tests/hlsl/trigonometry.shader_test b/tests/hlsl/trigonometry.shader_test index 90eac333..c9102e0a 100644 --- a/tests/hlsl/trigonometry.shader_test +++ b/tests/hlsl/trigonometry.shader_test @@ -74,3 +74,55 @@ float4 main() : sv_target uniform 0 float4 0.0 0.78539816 2.35619449 3.14159265 todo(sm<4) draw quad 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