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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
vs-vec3-main-return.shader_test
blob
28c3faaa6ff10c0276eccd3b83d1a04d5e82957d
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
uniform int early_return;
6
varying vec3 foo1;
7
void main()
8
{
9
gl_Position = gl_Vertex;
10
foo1 = vec3(0.5);
11
if (early_return != 0)
12
return;
13
foo1 = vec3(0.2);
14
}
15
16
[fragment shader]
17
varying vec3 foo1;
18
void main()
19
{
20
gl_FragColor = foo1.xyzx;
21
}
22
23
[test]
24
25
uniform int early_return 1
26
draw rect -1 -1 2 2
27
probe all rgba 0.5 0.5 0.5 0.5
28
uniform int early_return 0
29
draw rect -1 -1 2 2
30
probe all rgba 0.2 0.2 0.2 0.2
31