300layout.frag 485 B

1234567891011121314151617181920
  1. #version 300 es
  2. precision mediump float;
  3. in vec4 pos;
  4. layout (location = 2) in vec4 color; // ERROR
  5. layout(location = 1) out vec4 c;
  6. layout(location = 3) out vec4 p;
  7. layout(location = 4) out vec4 q[2];
  8. void main()
  9. {
  10. c = color;
  11. p = pos;
  12. q[1] = pos;
  13. }
  14. layout(location = 40) out float ca[4]; // ERROR, overlap, ERROR too big
  15. layout(location = 41) out float cb[2]; // ERROR, overlap, ERROR too big
  16. layout(location = 39) out float cc[6]; // ERROR, overlap, ERROR too big