blob: 19f62d4a123d558d72f9dd195801a0610ba0d474 [file] [log] [blame]
John Kessenich1f2a36b2013-02-20 04:42:42 +00001#version 300 es
2
3uniform mat4x3 m43;
4uniform mat3x3 m33;
5uniform mat4x4 m44;
6
7in vec3 v3;
John Kessenichc2ff7702013-04-25 16:44:03 +00008varying vec2 v2; // ERROR
John Kessenich1f2a36b2013-02-20 04:42:42 +00009
John Kessenichb51f62c2013-04-11 16:31:09 +000010in vec4 bad[10]; // ERROR
John Kessenich3ed2db52013-04-07 22:43:16 +000011
John Kessenich1f2a36b2013-02-20 04:42:42 +000012void main()
13{
14 int id = gl_VertexID + gl_InstanceID;
15
16 int c0 = gl_MaxVertexAttribs;
17 int c1 = gl_MaxVertexUniformVectors;
18 int c2 = gl_MaxVertexOutputVectors;
19 int c3 = gl_MaxFragmentInputVectors;
20 int c4 = gl_MaxVertexTextureImageUnits;
21 int c5 = gl_MaxCombinedTextureImageUnits;
22 int c6 = gl_MaxTextureImageUnits;
23 int c7 = gl_MaxFragmentUniformVectors;
24 int c8 = gl_MaxDrawBuffers;
25 int c9 = gl_MinProgramTexelOffset;
26 int c10 = gl_MaxProgramTexelOffset;
27
28 mat3x4 tm = transpose(m43);
29 highp float dm = determinant(m44);
30 mat3x3 im = inverse(m33);
31
32 mat3x2 op = outerProduct(v2, v3);
John Kessenichb51f62c2013-04-11 16:31:09 +000033
John Kessenich3ce57452013-06-07 18:54:19 +000034 gl_Position = m44[2];
35 gl_PointSize = v2.y;
36
John Kessenichb51f62c2013-04-11 16:31:09 +000037#ifdef GL_ES
38#error GL_ES is set
39#else
40#error GL_ES is not set
41#endif
John Kessenich1f2a36b2013-02-20 04:42:42 +000042}
John Kessenichfb7044a2013-06-13 20:16:43 +000043
44float badsize[]; // ERROR
45float[] badsize2; // ERROR
46uniform ub {
47 int a[]; // ERROR
48} ubInst[]; // ERROR
49void foo(int a[]); // ERROR
50float okayA[] = float[](3.0, 4.0); // Okay