spv.1.4.LoopControl.frag 734 B

1234567891011121314151617181920
  1. #version 450
  2. #extension GL_EXT_control_flow_attributes : enable
  3. bool cond;
  4. void main()
  5. {
  6. [[min_iterations(3), max_iterations(7)]] for (int i = 0; i < 8; ++i) { }
  7. [[iteration_multiple(2)]] while(true) { }
  8. [[peel_count(5)]] do { } while(true);
  9. [[partial_count(4)]] for (int i = 0; i < 8; ++i) { }
  10. // warnings on all these
  11. [[min_iterations, max_iterations]] for (int i = 0; i < 8; ++i) { }
  12. //[[iteration_multiple(0)]] while(true) { }
  13. //[[peel_count]] do { } while(true);
  14. //[[partial_count]] for (int i = 0; i < 8; ++i) { }
  15. }