mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 11:19:40 +00:00
e8fe7b81d7
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24569 e7fa87d3-cd2b-0410-9028-fcbf551c1848
36 lines
918 B
GLSL
36 lines
918 B
GLSL
#version 150
|
|
|
|
#extension GL_ARB_tessellation_shader : enable
|
|
|
|
layout(quads, cw) in;
|
|
layout(fractional_odd_spacing) in;
|
|
layout(point_mode) in;
|
|
patch in vec4 patchIn;
|
|
|
|
void main()
|
|
{
|
|
barrier(); // ERROR
|
|
|
|
int a = gl_MaxTessEvaluationInputComponents +
|
|
gl_MaxTessEvaluationOutputComponents +
|
|
gl_MaxTessEvaluationTextureImageUnits +
|
|
gl_MaxTessEvaluationUniformComponents +
|
|
gl_MaxTessPatchComponents +
|
|
gl_MaxPatchVertices +
|
|
gl_MaxTessGenLevel;
|
|
|
|
vec4 p = gl_in[1].gl_Position;
|
|
float ps = gl_in[1].gl_PointSize;
|
|
float cd = gl_in[1].gl_ClipDistance[2];
|
|
|
|
int pvi = gl_PatchVerticesIn;
|
|
int pid = gl_PrimitiveID;
|
|
vec3 tc = gl_TessCoord;
|
|
float tlo = gl_TessLevelOuter[3];
|
|
float tli = gl_TessLevelInner[1];
|
|
|
|
gl_Position = p;
|
|
gl_PointSize = ps;
|
|
gl_ClipDistance[2] = cd;
|
|
}
|