Francisco Casas : tests: Test complex initializers for numeric types.
Alexandre Julliard
julliard at winehq.org
Fri Feb 4 16:06:36 CST 2022
Module: vkd3d
Branch: master
Commit: 82720796d03aaaa8e33330451e7c357f90419c15
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=82720796d03aaaa8e33330451e7c357f90419c15
Author: Francisco Casas <fcasas at codeweavers.com>
Date: Thu Feb 3 23:44:20 2022 +0100
tests: Test complex initializers for numeric types.
Signed-off-by: Francisco Casas <fcasas at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
Makefile.am | 2 ++
tests/hlsl-initializer-numeric.shader_test | 35 ++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 7358faa..b045cec 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,6 +70,7 @@ vkd3d_shader_tests = \
tests/hlsl-gather.shader_test \
tests/hlsl-initializer-invalid-arg-count.shader_test \
tests/hlsl-initializer-local-array.shader_test \
+ tests/hlsl-initializer-numeric.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-initializer-struct.shader_test \
tests/hlsl-intrinsic-override.shader_test \
@@ -301,6 +302,7 @@ XFAIL_TESTS = \
tests/hlsl-array-dimension.shader_test \
tests/hlsl-initializer-invalid-arg-count.shader_test \
tests/hlsl-initializer-local-array.shader_test \
+ tests/hlsl-initializer-numeric.shader_test \
tests/hlsl-initializer-static-array.shader_test \
tests/hlsl-initializer-struct.shader_test \
tests/hlsl-bool-cast.shader_test \
diff --git a/tests/hlsl-initializer-numeric.shader_test b/tests/hlsl-initializer-numeric.shader_test
new file mode 100644
index 0000000..2fce390
--- /dev/null
+++ b/tests/hlsl-initializer-numeric.shader_test
@@ -0,0 +1,35 @@
+[pixel shader]
+float4 main() : sv_target
+{
+ int4 aa = {1, 2, 3, 4};
+ return aa;
+}
+
+[test]
+draw quad
+probe all rgba (1.0, 2.0, 3.0, 4.0) 4
+
+
+[pixel shader]
+float4 main() : sv_target
+{
+ float4 aa = {1, 2, 3, 4};
+ return aa;
+}
+
+[test]
+draw quad
+probe all rgba (1.0, 2.0, 3.0, 4.0) 4
+
+
+[pixel shader]
+float4 main() : sv_target
+{
+ float3 aa = {1, 2, 3};
+ float4 bb = {aa.x, aa.y, aa.z, 4.0};
+ return bb;
+}
+
+[test]
+draw quad
+probe all rgba (1.0, 2.0, 3.0, 4.0) 4
More information about the wine-cvs
mailing list