aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/structure-and-array-operations/array-attribute.vert
blob: 9e5adcd8c34c3a16ceae642128fbff61391efc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* [config]
 * expect_result: fail
 * glsl_version: 1.20
 * glsles_version: 1.00
 * [end config]
 *
 * From page 23 (page 29 of the PDF) of the GLSL 1.20 spec:
 *
 *     "Attribute variables cannot be declared as arrays or structures."
 */


attribute vec4 a[2]
uniform int i;

void main()
{
  gl_Position = a[i];
}