tests: Test single numeric initializers.

Signed-off-by: Francisco Casas <fcasas@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francisco Casas 2022-02-03 23:44:23 +01:00 committed by Alexandre Julliard
parent 6b58079cbd
commit e3d55e315b
2 changed files with 27 additions and 0 deletions

View File

@ -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 \

View File

@ -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)