mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
6b58079cbd
commit
e3d55e315b
@ -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 \
|
||||
|
26
tests/hlsl-single-numeric-initializer.shader_test
Normal file
26
tests/hlsl-single-numeric-initializer.shader_test
Normal 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)
|
Loading…
Reference in New Issue
Block a user