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

tests: Test sign rules for float modulus.

parent d1da5436
No related branches found
No related tags found
1 merge request!32Lower modulus operations.
......@@ -24,6 +24,32 @@ float4 main() : SV_TARGET
draw quad
probe all rgba (5.0, 5.0, -5.0, 3.0)
[pixel shader]
float4 main() : SV_TARGET
{
float x = 42;
float y = 5;
return float4(x % y, -x % y, x % -y, -x % -y);
}
[test]
draw quad
probe all rgba (2.0, -2.0, 2.0, -2.0) 16
[pixel shader]
float4 main() : SV_TARGET
{
float x = 45;
float y = 5;
return float4(x % y, -x % y, x % -y, -x % -y);
}
[test]
draw quad
probe all rgba (0.0, 0.0, 0.0, 0.0)
[require]
% Infinities are not allowed in SM1
shader model >= 4.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