[PATCH vkd3d v3 6/7] tests: Test single numeric initializers.
Matteo Bruni
mbruni at codeweavers.com
Thu Feb 3 16:44:23 CST 2022
From: Francisco Casas <fcasas at codeweavers.com>
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>
---
v3: Tweak formatting.
Makefile.am | 1 +
...lsl-single-numeric-initializer.shader_test | 26 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 tests/hlsl-single-numeric-initializer.shader_test
diff --git a/Makefile.am b/Makefile.am
index 8a32802a..e52c4c1a 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 00000000..3b348d6f
--- /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)
--
2.34.1
More information about the wine-devel
mailing list