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-varying-read.shader_test
blob
368bb389a603cee6b3bab1ba01c8bc2422504c01
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
varying vec2 var1;
6
varying vec2 var2;
7
void main()
8
{
9
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
10
var1.x = 1.0;
11
var1.y = 0.0;
12
var2 = var1;
13
}
14
15
[fragment shader]
16
varying vec2 var1;
17
varying vec2 var2;
18
void main()
19
{
20
gl_FragColor = vec4(0.0, var2, 1.0);
21
}
22
23
[test]
24
draw rect -1 -1 2 2
25
probe all rgba 0.0 1.0 0.0 1.0