What steps will reproduce the problem?
1. Use "const int i = 12 % 3;" in a shader.
What is the expected output? What do you see instead?
Expected: The expression evaluates to 0.
Actual: The expression evaluates to 4.
Constant folding uses division instead of modulus to evaluate integer modulus
statements.
Original issue reported on code.google.com by oetu...@nvidia.com on 13 Feb 2015 at 8:49
Original issue reported on code.google.com by
oetu...@nvidia.com
on 13 Feb 2015 at 8:49