tests: Test casting to and then from bool.

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:
Giovanni Mascellani 2021-09-08 17:38:10 +02:00 committed by Alexandre Julliard
parent 471b8e2206
commit 8555896bb0
2 changed files with 16 additions and 0 deletions

View File

@ -56,6 +56,7 @@ vkd3d_shader_runners = \
vkd3d_shader_tests = \
tests/conditional.shader_test \
tests/hlsl-array-dimension.shader_test \
tests/hlsl-bool-cast.shader_test \
tests/hlsl-clamp.shader_test \
tests/hlsl-comma.shader_test \
tests/hlsl-duplicate-modifiers.shader_test \
@ -267,6 +268,7 @@ SHADER_TEST_LOG_COMPILER = tests/shader_runner_d3d12
XFAIL_TESTS = \
tests/conditional.shader_test \
tests/hlsl-array-dimension.shader_test \
tests/hlsl-bool-cast.shader_test \
tests/hlsl-clamp.shader_test \
tests/hlsl-comma.shader_test \
tests/hlsl-duplicate-modifiers.shader_test \

View File

@ -0,0 +1,14 @@
[pixel shader]
float4 main() : SV_TARGET
{
return float4(
(float)(bool)0.0,
(float)(bool)0,
(float)(bool)2.0,
(float)(bool)2
);
}
[test]
draw quad
probe all rgba (0.0, 0.0, 1.0, 1.0)