glslang front-end: Implement AEP *_point_size extensions.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31560 e7fa87d3-cd2b-0410-9028-fcbf551c1848
diff --git a/Test/310.tesc b/Test/310.tesc
index d35014a..236afde 100644
--- a/Test/310.tesc
+++ b/Test/310.tesc
@@ -23,7 +23,7 @@
gl_MaxTessControlTotalOutputComponents;
vec4 p = gl_in[1].gl_Position;
- float ps = gl_in[1].gl_PointSize;
+ float ps = gl_in[1].gl_PointSize; // ERROR, need point_size extension
float cd = gl_in[1].gl_ClipDistance[2]; // ERROR, not in ES
int pvi = gl_PatchVerticesIn;
@@ -31,7 +31,7 @@
int iid = gl_InvocationID;
gl_out[1].gl_Position = p;
- gl_out[1].gl_PointSize = ps;
+ gl_out[1].gl_PointSize = ps; // ERROR, need point_size extension
gl_out[1].gl_ClipDistance[1] = cd; // ERROR, not in ES
gl_TessLevelOuter[3] = 3.2;
@@ -107,6 +107,14 @@
out float misSized[5]; // ERROR, size doesn't match
out float okaySize[4];
+#extension GL_OES_tessellation_point_size : enable
+
+void pointSize2()
+{
+ float ps = gl_in[1].gl_PointSize;
+ gl_out[1].gl_PointSize = ps;
+}
+
// for testing with gpu_shader5
//precise vec3 pv3;
//