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-length-implicit-size.vert
blob
aef21b99fcde0506493e30f9a940f762b1fb8261
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 20 (page 26 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "The length method cannot be called on an array that has not been
9
* explicitly sized."
10
*/
11
#version 120
12
13
void main()
14
{
15
float b[];
16
17
b[2] = 1.0; // Implicitly size array to have at least 3 elements
18
19
gl_Position = vec4(b.length());
20
}