tests: Test int absolute value.

This commit is contained in:
Giovanni Mascellani 2022-10-05 13:59:43 +02:00 committed by Alexandre Julliard
parent 5442f4236c
commit ef4990d996
Notes: Alexandre Julliard 2022-10-18 00:13:00 +02:00
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/28

View File

@ -27,3 +27,16 @@ float4 main() : SV_TARGET
uniform 0 float4 5.0 16.0 0.0 0.0
todo draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader]
uniform float4 a;
float4 main() : SV_TARGET
{
return abs(int4(a));
}
[test]
uniform 0 float4 5.0 -7.0 0.0 -10.0
todo draw quad
probe all rgba (5.0, 7.0, 0.0, 10.0)