From: Giovanni Mascellani Subject: Re: [PATCH vkd3d v2 7/8] tests: Test single numeric initializers. Message-Id: <147d6d2a-d51e-996e-2f72-98a262699588@codeweavers.com> Date: Fri, 21 Jan 2022 11:25:24 +0100 In-Reply-To: <20220120141016.67283-7-fcasas@codeweavers.com> References: <20220120141016.67283-7-fcasas@codeweavers.com> Signed-off-by: Giovanni Mascellani Il 20/01/22 15:10, Francisco Casas ha scritto: > Signed-off-by: Francisco Casas > --- > 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 1da56869..2ffe81af 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..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)