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-03.frag
blob
ab98c012edc1908b7f92513f5d4b6e48326437d4
1
/* PASS */
2
#version 120
3
void main()
4
{
5
const float a[] = float[](0.0, 1.0);
6
const float b[2] = float[2](0, 1);
7
8
if (a == b)
9
gl_FragColor = vec4(a[0], a[1], b[0], b[1]);
10
else
11
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
12
}