150.frag 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #version 150 core
  2. in vec4 gl_FragCoord;
  3. layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR
  4. layout(pixel_center_integer) in vec4 gl_FragCoord; // ERROR
  5. layout(origin_upper_left) in vec4 foo; // ERROR
  6. layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord;
  7. void main()
  8. {
  9. vec4 c = gl_FragCoord;
  10. }
  11. layout(origin_upper_left, pixel_center_integer) in vec4 gl_FragCoord; // ERROR, declared after use
  12. in struct S { float f; } s;
  13. float patch = 3.1;
  14. uniform sampler2DMS sms;
  15. uniform isampler2DMS isms;
  16. uniform usampler2DMS usms;
  17. uniform sampler2DMSArray smsa;
  18. uniform isampler2DMSArray ismsa;
  19. uniform usampler2DMSArray usmsa;
  20. flat in ivec2 p2;
  21. flat in ivec3 p3;
  22. flat in int samp;
  23. void barWxyz()
  24. {
  25. ivec2 t11 = textureSize( sms);
  26. ivec2 t12 = textureSize(isms);
  27. ivec2 t13 = textureSize(usms);
  28. ivec3 t21 = textureSize( smsa);
  29. ivec3 t22 = textureSize(ismsa);
  30. ivec3 t23 = textureSize(usmsa);
  31. vec4 t31 = texelFetch( sms, p2, samp);
  32. ivec4 t32 = texelFetch(isms, p2, samp);
  33. uvec4 t33 = texelFetch(usms, p2, 3);
  34. vec4 t41 = texelFetch( smsa, p3, samp);
  35. ivec4 t42 = texelFetch(ismsa, ivec3(2), samp);
  36. uvec4 t43 = texelFetch(usmsa, p3, samp);
  37. }
  38. int primitiveID()
  39. {
  40. return gl_PrimitiveID;
  41. }