tests: Test swizzles on scalar values.

This commit is contained in:
Francisco Casas 2023-01-04 19:22:37 -03:00 committed by Alexandre Julliard
parent 524029a062
commit 9d7ef64dc0
Notes: Alexandre Julliard 2023-01-26 23:11:28 +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/70

View File

@ -109,3 +109,29 @@ float4 main() : SV_target
[test]
draw quad
probe all rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader]
float4 main() : sv_target
{
float f = 20;
return f.x.x;
}
[test]
draw quad
probe all rgba (20.0, 20.0, 20.0, 20.0)
[pixel shader]
float4 main() : sv_target
{
float f = 3;
return float4(1, 2, f.x.xx);
}
[test]
draw quad
probe all rgba (1.0, 2.0, 3.0, 3.0)