vkd3d-shader/hlsl: Add additional tests for sin() and cos().

This commit is contained in:
Francisco Casas 2023-01-16 17:25:50 -03:00 committed by Alexandre Julliard
parent 2b1ec0cfe5
commit b65c450101
Notes: Alexandre Julliard 2023-01-19 22:45:36 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/62

View File

@ -29,3 +29,31 @@ probe (12, 0) rgba (-0.53657292, 0.84385396, 0.0, 0.0) 1024
probe (13, 0) rgba ( 0.42016704, 0.90744678, 0.0, 0.0) 1024
probe (14, 0) rgba ( 0.99060736, 0.13673722, 0.0, 0.0) 1024
probe (15, 0) rgba ( 0.65028784, -0.75968791, 0.0, 0.0) 1024
[pixel shader todo]
uniform float4 a;
float4 main() : sv_target
{
return round(1000 * sin(a));
}
[test]
uniform 0 float4 0.0 0.52359877 2.61799387 3.14159265
todo draw quad
todo probe all rgba (0.0, 500.0, 500.0, 0.0)
[pixel shader todo]
uniform float4 a;
float4 main() : sv_target
{
return round(1000 * cos(a));
}
[test]
uniform 0 float4 0.0 0.78539816 1.57079632 2.35619449
todo draw quad
todo probe all rgba (1000.0, 707.0, -0.0, -707.0)