tests: Test matrix copying with a non-square matrix.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Giovanni Mascellani 2022-04-22 12:25:02 +02:00 committed by Alexandre Julliard
parent d2ba10a696
commit 3bbb90a3cb

View File

@ -47,18 +47,16 @@ todo draw quad
probe all rgba (1.0, 5.0, 7.0, 12.0)
[pixel shader]
uniform float4x4 m;
uniform float3x2 m;
float4 main() : SV_TARGET
{
float4x4 m2 = m;
return float4(m2[0][0], m2[1][0], m2[1][2], m2[2][3]);
float3x2 m2 = m;
return float4(m2[0][0], m2[2][0], m2[1][1], m2[2][1]);
}
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
uniform 4 float4 5.0 6.0 7.0 8.0
uniform 8 float4 9.0 10.0 11.0 12.0
uniform 12 float4 13.0 14.0 15.0 16.0
uniform 0 float4 1.0 2.0 3.0 0.0
uniform 4 float4 5.0 6.0 7.0 0.0
todo draw quad
probe all rgba (1.0, 2.0, 10.0, 15.0)
probe all rgba (1.0, 3.0, 6.0, 7.0)