mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07: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:
committed by
Alexandre Julliard
parent
471b8e2206
commit
8555896bb0
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)
|
Reference in New Issue
Block a user