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.50
/
execution
/
interface-blocks-simple-varying.shader_test
blob
aa14c94b0c3ae8b22f5ece605849c42d518f9430
1
[require]
2
GLSL >= 1.50
3
4
[vertex shader]
5
#version 150
6
7
in vec4 piglit_vertex;
8
9
uniform vec4 color;
10
11
out block {
12
vec4 a;
13
} inst_a;
14
15
out vec4 c;
16
17
void main()
18
{
19
gl_Position = piglit_vertex;
20
inst_a.a = color;
21
}
22
23
[fragment shader]
24
#version 150
25
26
in block {
27
vec4 a;
28
} inst_b;
29
30
void main()
31
{
32
gl_FragColor = inst_b.a;
33
}
34
35
[test]
36
uniform vec4 color 0.0 0.0 0.0 1.0
37
draw rect -1 -1 2 2
38
probe all rgba 0.0 0.0 0.0 1.0
39
40
uniform vec4 color 0.0 1.0 0.0 1.0
41
draw rect -1 -1 2 2
42
probe all rgba 0.0 1.0 0.0 1.0
43