generate OpLine before OpFunction
[platform/upstream/glslang.git] / Test / spv.1.4.LoopControl.frag
1 #version 450
2
3 #extension GL_EXT_control_flow_attributes : enable
4
5 bool cond;
6
7 void main()
8 {
9         [[min_iterations(3), max_iterations(7)]]   for (int i = 0; i < 8; ++i) { }
10         [[iteration_multiple(2)]]                  while(true) {  }
11         [[peel_count(5)]]                          do {  } while(true);
12         [[partial_count(4)]]                       for (int i = 0; i < 8; ++i) { }
13
14         // warnings on all these
15         [[min_iterations, max_iterations]]   for (int i = 0; i < 8; ++i) { }
16         //[[iteration_multiple(0)]]                  while(true) {  }
17         //[[peel_count]]                          do {  } while(true);
18         //[[partial_count]]                       for (int i = 0; i < 8; ++i) { }
19 }