Skip to content
Snippets Groups Projects
Commit ef4990d9 authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Alexandre Julliard
Browse files

tests: Test int absolute value.

parent 5442f423
No related branches found
No related tags found
1 merge request!28Support length(), int division and int absolute value.
......@@ -27,3 +27,16 @@ float4 main() : SV_TARGET
uniform 0 float4 5.0 16.0 0.0 0.0
todo draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader]
uniform float4 a;
float4 main() : SV_TARGET
{
return abs(int4(a));
}
[test]
uniform 0 float4 5.0 -7.0 0.0 -10.0
todo draw quad
probe all rgba (5.0, 7.0, 0.0, 10.0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment