vkd3d/tests/hlsl-bool-cast.shader_test
Giovanni Mascellani 8555896bb0 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>
2021-09-08 17:41:19 +02:00

15 lines
224 B
Plaintext

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