repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
glslparsertest
/
glsl2
/
const-array-05.frag
blob
84ebbb12f706c95ee53fd4abd108b6701e55db72
1
/* PASS */
2
#version 120
3
void main()
4
{
5
const float a[2] = float[2](0.0, 1.0);
6
const float length = a.length();
7
8
if (length == 2)
9
gl_FragColor = vec4(a[0], a[1], a[0], a[1]);
10
else
11
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
12
}