vkd3d-shader/hlsl: Implement tanh.

This commit is contained in:
Petrichor Park
2024-02-24 14:35:50 -06:00
committed by Alexandre Julliard
parent c4182cc272
commit 1fb9e7526b
Notes: Alexandre Julliard 2024-04-15 22:22:07 +02: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/740
2 changed files with 37 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ todo(glsl) draw quad
probe all rgba (1.0, 1.0, 1.0e39, 1.0e39) 1
[pixel shader todo]
[pixel shader]
uniform float4 a;
float4 main() : sv_target
@@ -121,8 +121,8 @@ float4 main() : sv_target
[test]
uniform 0 float4 -1.57079633 -0.54930614 0.54930614 1.57079633
todo(sm<6) draw quad
todo(glsl) 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(sm<6) draw quad
todo(glsl) draw quad
probe all rgba (-1.0, 0.0, 0.0, 1.0) 1