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
/
shaders
/
CorrectParse1.frag
blob
53b94b982804f7ecf3ea358dc3cebd7fbed68d68
1
uniform vec3 a[8];
\r
2
\r
3
uniform bool ub;
\r
4
varying mat4 vm;
\r
5
\r
6
int foo(float);
\r
7
\r
8
float bar(int i)
\r
9
{
\r
10
return float(i);
\r
11
}
\r
12
\r
13
void main (void)
\r
14
{
\r
15
const int x = 3;
\r
16
mat4 a[4];
\r
17
vec4 v;
\r
18
float f;
\r
19
\r
20
for (f = 0.0; f != 3.3; ++f)
\r
21
{
\r
22
}
\r
23
\r
24
vec3 v3[x + x];
\r
25
\r
26
int vi = foo(2.3);
\r
27
\r
28
vec3 v3_1 = v3[x];
\r
29
\r
30
float f1 = a[x][2].z * float(x);
\r
31
f1 = a[x][2][2] * float(x);
\r
32
f1 = v[2] * v[1];
\r
33
\r
34
const int ci = 2;
\r
35
\r
36
}
\r
37
\r
38
int foo(float f)
\r
39
{
\r
40
return 2;
\r
41
}
\r