vkd3d/tests/hlsl-single-numeric-initializer.shader_test
Francisco Casas e3d55e315b 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>
2022-02-04 16:45:57 +01:00

27 lines
317 B
Plaintext

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