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
/
shaders
/
glsl-fs-uniform-array-4.shader_test
blob
28b83977ee9c2280b202c847ccb76e5b6a4bc02c
1
[require]
2
GL >= 2.0
3
GLSL >= 1.20
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
#version 120
13
14
struct S {
15
float f;
16
vec4 v;
17
};
18
19
uniform S[3] vals;
20
void main()
21
{
22
gl_FragColor = vec4(vals[1].v * vals[2].f);
23
}
24
25
[test]
26
uniform vec4 vals[1].v 0.0 0.5 0.0 0.0
27
uniform float vals[2].f 2.0
28
draw rect -1 -1 2 2
29
probe all rgba 0.0 1.0 0.0 0.0