• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorGreen, colorRed;
2
3half4 main(float2) {
4    int counter = 0;
5
6    const int increment = 1;
7    for (int i = 0; i < 10; i += increment) {
8        const int increment = 10;
9        if (i == 0) {
10            continue;  // `i += increment` should increment by 1
11        }
12        counter += increment;  // `counter += increment` should increment by 10
13    }
14
15    return (counter == 90) ? colorGreen : colorRed;
16}
17