Francisco Casas : tests: Test single numeric initializers.
Alexandre Julliard
julliard at winehq.org
Fri Feb 4 16:06:36 CST 2022
Module: vkd3d
Branch: master
Commit: e3d55e315b41ccf0603f6a22ff54d09b8002ae50
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=e3d55e315b41ccf0603f6a22ff54d09b8002ae50
Author: Francisco Casas <fcasas at codeweavers.com>
Date: Thu Feb 3 23:44:23 2022 +0100
tests: Test single numeric initializers.
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 | 1 +
tests/hlsl-single-numeric-initializer.shader_test | 26 +++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 8a32802..e52c4c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,6 +84,7 @@ vkd3d_shader_tests = \
tests/hlsl-return-implicit-conversion.shader_test \
tests/hlsl-return-void.shader_test \
tests/hlsl-shape.shader_test \
+ tests/hlsl-single-numeric-initializer.shader_test \
tests/hlsl-state-block-syntax.shader_test \
tests/hlsl-static-initializer.shader_test \
tests/hlsl-storage-qualifiers.shader_test \
diff --git a/tests/hlsl-single-numeric-initializer.shader_test b/tests/hlsl-single-numeric-initializer.shader_test
new file mode 100644
index 0000000..3b348d6
--- /dev/null
+++ b/tests/hlsl-single-numeric-initializer.shader_test
@@ -0,0 +1,26 @@
+[pixel shader]
+float4 main() : sv_target
+{
+ float4 aa = 7;
+ return aa;
+}
+
+[test]
+draw quad
+probe all rgba (7.0, 7.0, 7.0, 7.0)
+
+
+[pixel shader]
+float4 main() : sv_target
+{
+ float4 bb;
+ float3 aa = 7;
+
+ bb.xyz = aa;
+ bb.w = 8.0;
+ return bb;
+}
+
+[test]
+draw quad
+probe all rgba (7.0, 7.0, 7.0, 8.0)
More information about the wine-cvs
mailing list