[PATCH vkd3d v2 7/8] tests: Test single numeric initializers.
Giovanni Mascellani
gmascellani at codeweavers.com
Fri Jan 21 04:25:24 CST 2022
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Il 20/01/22 15:10, Francisco Casas ha scritto:
> 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 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)
More information about the wine-devel
mailing list