450.geom 354 B

1234567891011121314151617181920
  1. #version 450 core
  2. in gl_PerVertex {
  3. float gl_CullDistance[3];
  4. } gl_in[];
  5. out gl_PerVertex {
  6. float gl_CullDistance[3];
  7. };
  8. layout(triangles) in;
  9. void main()
  10. {
  11. gl_in[3].gl_Position; // ERROR, out of range
  12. gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
  13. }
  14. layout(points) in float f[3]; // ERROR, must be standalone