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-constant-folding-call-1.shader_test
blob
354facf6060037f44985d11965711a04d38d4a40
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
vec4 func(inout vec3 a)
13
{
14
return vec4(a, 0.0);
15
}
16
17
void main()
18
{
19
vec3 green = vec3(0.0, 1.0, 0.0);
20
21
gl_FragColor = func(green);
22
}
23
24
[test]
25
draw rect -1 -1 2 2
26
probe all rgba 0.0 1.0 0.0 0.0