repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
structure-and-array-operations
/
array-divide.vert
blob
611687d6fa3ffa355fb923b34449222777eb0a4f
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 35 (page 41 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "In total, only the following operators are allowed to operate on
9
* arrays and structures as whole entities:
10
*
11
* field or method selector .
12
* equality == !=
13
* assignment =
14
* indexing (arrays only) []"
15
*/
16
#version 120
17
18
uniform vec4 a[2];
19
uniform vec4 b[2];
20
21
void main()
22
{
23
vec4 c[2] = a / b;
24
gl_Position = c[0];
25
}