460.frag 632 B

123456789101112131415161718192021222324252627282930313233
  1. #version 460 core
  2. struct S {
  3. float f;
  4. vec4 v;
  5. };
  6. in S s;
  7. void main()
  8. {
  9. interpolateAtCentroid(s.v);
  10. bool b1;
  11. b1 = anyInvocation(b1);
  12. b1 = allInvocations(b1);
  13. b1 = allInvocationsEqual(b1);
  14. }
  15. void attExtBad()
  16. {
  17. // ERRORs, not enabled
  18. [[dependency_length(1+3)]] for (int i = 0; i < 8; ++i) { }
  19. [[flatten]] if (true) { } else { }
  20. }
  21. #extension GL_EXT_control_flow_attributes : enable
  22. void attExt()
  23. {
  24. [[dependency_length(-3)]] do { } while(true); // ERROR, not positive
  25. [[dependency_length(0)]] do { } while(true); // ERROR, not positive
  26. }