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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
glsl-fs-max-array-access-function.shader_test
blob
f3d8201669b55e0c52cad8dc94d03692325e4422
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform float a[3];
12
13
float func(float array[3])
14
{
15
return array[2];
16
}
17
18
void main()
19
{
20
gl_FragColor = vec4(func(a), vec3(1.0));
21
}
22
23
[test]
24
uniform float a[0] 0.25
25
uniform float a[1] 0.5
26
uniform float a[2] 0.75
27
draw rect -1 -1 2 2
28
probe all rgba 0.75 1.0 1.0 1.0