Giovanni Mascellani : tests: Test matrix copying with a non-square matrix.
Alexandre Julliard
julliard at winehq.org
Mon Apr 25 16:08:49 CDT 2022
Module: vkd3d
Branch: master
Commit: 3bbb90a3cb6537babd8e5edf12a5c42b3cdad1f6
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=3bbb90a3cb6537babd8e5edf12a5c42b3cdad1f6
Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date: Fri Apr 22 12:25:02 2022 +0200
tests: Test matrix copying with a non-square matrix.
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Francisco Casas <fcasas at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tests/hlsl-matrix-indexing.shader_test | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/tests/hlsl-matrix-indexing.shader_test b/tests/hlsl-matrix-indexing.shader_test
index e2103fe2..8057179e 100644
--- a/tests/hlsl-matrix-indexing.shader_test
+++ b/tests/hlsl-matrix-indexing.shader_test
@@ -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)
More information about the wine-cvs
mailing list