third_party/spirv-cross/reference/shaders-no-opt/asm/frag/selection-merge-to-continue.asm.invalid.frag
raw| 1 | #version 450 |
| 2 | |
| 3 | layout(location = 0) out vec4 FragColor; |
| 4 | layout(location = 0) in vec4 v0; |
| 5 | |
| 6 | void main() |
| 7 | { |
| 8 | FragColor = vec4(1.0); |
| 9 | for (int i = 0; i < 4; i++) |
| 10 | { |
| 11 | if (v0.x == 20.0) |
| 12 | { |
| 13 | FragColor += vec4(v0[i & 3]); |
| 14 | } |
| 15 | else |
| 16 | { |
| 17 | FragColor += vec4(v0[i & 1]); |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 |