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-size-negative.vert
blob
226a3f2244615c099dcb61c2fd05eb705b52d0ce
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "When an array size is specified in a declaration, it must be an
9
* integral constant expression (see Section 4.3.3 "Constant Expressions")
10
* greater than zero."
11
*/
12
#version 120
13
14
uniform vec4 [-1] a;
15
16
void main() { gl_Position = vec4(0.0); }