Put in infrastructure for tessellation, geometry, and compute stages, and partially flesh out with built-in functions.
Added the built-in functions EmitVertex(), EndPrimitive(), barrier(), memoryBarrier(), memoryBarrierAtomicCounter(), memoryBarrierBuffer(), memoryBarrierImage(), memoryBarrierShared(), and groupMemoryBarrier().
Have not added any new built-in variables.
Also changed the linear performance relateToOperator() to a high-performance version.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22659 e7fa87d3-cd2b-0410-9028-fcbf551c1848
2013-08-09 17:14:49 +00:00
|
|
|
#version 400 core
|
|
|
|
|
2013-12-11 18:57:40 +00:00
|
|
|
layout(vertices = 4) out; // ERROR
|
|
|
|
layout(quads, cw) in;
|
|
|
|
layout(triangles) in; // ERROR
|
|
|
|
layout(isolines) in; // ERROR
|
|
|
|
|
|
|
|
layout(cw) in;
|
|
|
|
layout(ccw) in; // ERROR
|
|
|
|
|
|
|
|
layout(fractional_odd_spacing) in;
|
|
|
|
layout(equal_spacing) in; // ERROR
|
|
|
|
layout(fractional_even_spacing) in; // ERROR
|
|
|
|
|
|
|
|
layout(point_mode) in;
|
|
|
|
|
Put in infrastructure for tessellation, geometry, and compute stages, and partially flesh out with built-in functions.
Added the built-in functions EmitVertex(), EndPrimitive(), barrier(), memoryBarrier(), memoryBarrierAtomicCounter(), memoryBarrierBuffer(), memoryBarrierImage(), memoryBarrierShared(), and groupMemoryBarrier().
Have not added any new built-in variables.
Also changed the linear performance relateToOperator() to a high-performance version.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22659 e7fa87d3-cd2b-0410-9028-fcbf551c1848
2013-08-09 17:14:49 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
barrier(); // ERROR
|
2013-12-11 18:57:40 +00:00
|
|
|
|
|
|
|
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;
|
Put in infrastructure for tessellation, geometry, and compute stages, and partially flesh out with built-in functions.
Added the built-in functions EmitVertex(), EndPrimitive(), barrier(), memoryBarrier(), memoryBarrierAtomicCounter(), memoryBarrierBuffer(), memoryBarrierImage(), memoryBarrierShared(), and groupMemoryBarrier().
Have not added any new built-in variables.
Also changed the linear performance relateToOperator() to a high-performance version.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22659 e7fa87d3-cd2b-0410-9028-fcbf551c1848
2013-08-09 17:14:49 +00:00
|
|
|
}
|