• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 150
2
3#extension GL_ARB_tessellation_shader : enable
4
5layout(quads, cw) in;
6layout(fractional_odd_spacing) in;
7layout(point_mode) in;
8patch in vec4 patchIn;
9
10void main()
11{
12    barrier(); // ERROR
13
14    int a = gl_MaxTessEvaluationInputComponents +
15            gl_MaxTessEvaluationOutputComponents +
16            gl_MaxTessEvaluationTextureImageUnits +
17            gl_MaxTessEvaluationUniformComponents +
18            gl_MaxTessPatchComponents +
19            gl_MaxPatchVertices +
20            gl_MaxTessGenLevel;
21
22    vec4 p = gl_in[1].gl_Position;
23    float ps = gl_in[1].gl_PointSize;
24    float cd = gl_in[1].gl_ClipDistance[2];
25
26    int pvi = gl_PatchVerticesIn;
27    int pid = gl_PrimitiveID;
28    vec3 tc = gl_TessCoord;
29    float tlo = gl_TessLevelOuter[3];
30    float tli = gl_TessLevelInner[1];
31
32    gl_Position = p;
33    gl_PointSize = ps;
34    gl_ClipDistance[2] = cd;
35}
36