140.vert 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #version 140
  2. uniform isamplerBuffer sbuf;
  3. layout(std140) uniform blockName {
  4. int anonMem;
  5. };
  6. void main()
  7. {
  8. int id = gl_InstanceID;
  9. id += anonMem;
  10. id += texelFetch(sbuf, 8).w;
  11. gl_ClipVertex; // could be ERROR, but compiling under compatibility profile
  12. gl_Color; // could be ERROR, but compiling under compatibility profile
  13. gl_LightSource[0]; // could be ERROR, but compiling under compatibility profile
  14. gl_DepthRange.far;
  15. gl_TexCoord; // could be ERROR, but compiling under compatibility profile
  16. gl_FogFragCoord; // could be ERROR, but compiling under compatibility profile
  17. gl_FrontColor; // could be ERROR, but compiling under compatibility profile
  18. }
  19. out vec4 gl_Position; // ERROR
  20. layout(location = 9) in vec4 locBad; // ERROR
  21. #extension GL_ARB_explicit_attrib_location : enable
  22. layout(location = 9) in vec4 loc;
  23. #extension GL_ARB_separate_shader_objects : enable
  24. out vec4 gl_Position;
  25. in vec4 gl_Position; // ERROR
  26. out vec3 gl_Position; // ERROR
  27. out float gl_PointSize;
  28. out vec4 gl_ClipVertex;
  29. out float gl_FogFragCoord;
  30. uniform sampler2DRect s2dr;
  31. uniform sampler2DRectShadow s2drs;
  32. in ivec2 itloc2;
  33. in vec2 tloc2;
  34. in vec3 tloc3;
  35. in vec4 tloc4;
  36. void foo()
  37. {
  38. vec4 v = texelFetch(s2dr, itloc2);
  39. v += texelFetch(s2dr, itloc2, 0.2); // ERROR, no lod
  40. v += texture(s2dr, tloc2);
  41. v += texture(s2dr, tloc2, 0.3); // ERROR, no bias
  42. v += texture(s2drs, tloc3);
  43. v += textureProj(s2dr, tloc3);
  44. v += textureProj(s2dr, tloc4);
  45. v += textureProjGradOffset(s2dr, tloc4, ivec2(0.0), ivec2(0.0), ivec2(1,2));
  46. v += textureProjGradOffset(s2drs, tloc4, ivec2(0.0), ivec2(0.0), ivec2(1,2));
  47. }
  48. void devi()
  49. {
  50. gl_DeviceIndex; // ERROR, no extension
  51. gl_ViewIndex; // ERROR, no extension
  52. }
  53. #ifdef GL_EXT_device_group
  54. #extension GL_EXT_device_group : enable
  55. #endif
  56. #ifdef GL_EXT_device_group
  57. #extension GL_EXT_multiview : enable
  58. #endif
  59. void devie()
  60. {
  61. gl_DeviceIndex;
  62. gl_ViewIndex;
  63. }