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