[PATCH vkd3d v3 7/8] tests: Test single numeric initializers.

Francisco Casas fcasas at codeweavers.com
Wed Jan 19 07:29:09 CST 2022


Signed-off-by: Francisco Casas <fcasas at codeweavers.com>
---
 Makefile.am                                   |  1 +
 ...lsl-single-numeric-initializer.shader_test | 24 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 tests/hlsl-single-numeric-initializer.shader_test

diff --git a/Makefile.am b/Makefile.am
index 0b61aba9..f09a9434 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -83,6 +83,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..0aee6439
--- /dev/null
+++ b/tests/hlsl-single-numeric-initializer.shader_test
@@ -0,0 +1,24 @@
+[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.25.1




More information about the wine-devel mailing list