mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
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:
parent
471b8e2206
commit
8555896bb0
@ -56,6 +56,7 @@ vkd3d_shader_runners = \
|
|||||||
vkd3d_shader_tests = \
|
vkd3d_shader_tests = \
|
||||||
tests/conditional.shader_test \
|
tests/conditional.shader_test \
|
||||||
tests/hlsl-array-dimension.shader_test \
|
tests/hlsl-array-dimension.shader_test \
|
||||||
|
tests/hlsl-bool-cast.shader_test \
|
||||||
tests/hlsl-clamp.shader_test \
|
tests/hlsl-clamp.shader_test \
|
||||||
tests/hlsl-comma.shader_test \
|
tests/hlsl-comma.shader_test \
|
||||||
tests/hlsl-duplicate-modifiers.shader_test \
|
tests/hlsl-duplicate-modifiers.shader_test \
|
||||||
@ -267,6 +268,7 @@ SHADER_TEST_LOG_COMPILER = tests/shader_runner_d3d12
|
|||||||
XFAIL_TESTS = \
|
XFAIL_TESTS = \
|
||||||
tests/conditional.shader_test \
|
tests/conditional.shader_test \
|
||||||
tests/hlsl-array-dimension.shader_test \
|
tests/hlsl-array-dimension.shader_test \
|
||||||
|
tests/hlsl-bool-cast.shader_test \
|
||||||
tests/hlsl-clamp.shader_test \
|
tests/hlsl-clamp.shader_test \
|
||||||
tests/hlsl-comma.shader_test \
|
tests/hlsl-comma.shader_test \
|
||||||
tests/hlsl-duplicate-modifiers.shader_test \
|
tests/hlsl-duplicate-modifiers.shader_test \
|
||||||
|
14
tests/hlsl-bool-cast.shader_test
Normal file
14
tests/hlsl-bool-cast.shader_test
Normal 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)
|
Loading…
Reference in New Issue
Block a user