third_party/spirv-cross/reference/shaders/frag/for-loop-continue-control-flow.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(location = 0) out vec4 FragColor; |
| 4 | |
| 5 | void main() |
| 6 | { |
| 7 | FragColor = vec4(0.0); |
| 8 | int i = 0; |
| 9 | int _36; |
| 10 | for (;;) |
| 11 | { |
| 12 | if (i < 3) |
| 13 | { |
| 14 | int a = i; |
| 15 | FragColor[a] += float(i); |
| 16 | if (false) |
| 17 | { |
| 18 | _36 = 1; |
| 19 | } |
| 20 | else |
| 21 | { |
| 22 | int _41 = i; |
| 23 | i = _41 + 1; |
| 24 | _36 = _41; |
| 25 | } |
| 26 | continue; |
| 27 | } |
| 28 | else |
| 29 | { |
| 30 | break; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 |