mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Import HLSL conditional tests from Wine.
Signed-off-by: Zebediah Figura <zfigura@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
2206e0c9bb
commit
b64b304061
13
tests/conditional.shader_test
Normal file
13
tests/conditional.shader_test
Normal file
@@ -0,0 +1,13 @@
|
||||
[pixel shader]
|
||||
float4 main(float4 pos : SV_POSITION) : SV_TARGET
|
||||
{
|
||||
if(pos.x > 200.0)
|
||||
return float4(0.1, 0.2, 0.3, 0.4);
|
||||
else
|
||||
return float4(0.9, 0.8, 0.7, 0.6);
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe rect rgba (0, 0, 200, 480) (0.9, 0.8, 0.7, 0.6)
|
||||
probe rect rgba (200, 0, 440, 480) (0.1, 0.2, 0.3, 0.4)
|
Reference in New Issue
Block a user