John Kessenich | e8fe7b8 | 2013-12-18 18:47:12 +0000 | [diff] [blame] | 1 | #version 150
|
| 2 |
|
| 3 | #extension GL_ARB_tessellation_shader : enable
|
| 4 |
|
| 5 | layout(quads, cw) in;
|
| 6 | layout(fractional_odd_spacing) in;
|
| 7 | layout(point_mode) in;
|
| 8 | patch in vec4 patchIn;
|
| 9 |
|
| 10 | void 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 | }
|