450.tesc 499 B

123456789101112131415161718192021222324
  1. #version 450 core
  2. in gl_PerVertex {
  3. float gl_CullDistance[3];
  4. } gl_in[gl_MaxPatchVertices];
  5. out gl_PerVertex {
  6. float gl_CullDistance[3];
  7. } gl_out[4];
  8. void main()
  9. {
  10. gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
  11. }
  12. layout(location = 4) out bName1 {
  13. float f;
  14. layout(location = 5) float g;
  15. } bInst1[2];
  16. layout(location = 6) out bName2 {
  17. float f;
  18. layout(location = 7) float g; // ERROR, location on array
  19. } bInst2[2][3];