blob: 16d096ad790de85852ed5252f49ce6be7717ed1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* [config]
* expect_result: fail
* glsl_version: 1.20
* glsles_version: 1.00
* [end config]
*
* From page 35 (page 41 of the PDF) of the GLSL 1.20 spec:
*
* "In total, only the following operators are allowed to operate on
* arrays and structures as whole entities:
*
* field or method selector .
* equality == !=
* assignment =
* indexing (arrays only) []"
*/
uniform vec4 a[2];
void main()
{
gl_Position = (a++)[0];
}
|