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
/
linker
/
global-single-initializer-2-shaders.shader_test
blob
b8adcc64c56adb95e0db8e610c55ebeea5eb297b
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
float global_variable;
6
7
void main()
8
{
9
gl_Position = gl_Vertex;
10
}
11
12
[vertex shader]
13
float global_variable = 1.0;
14
15
/* This works around a bug in Apple's GLSL compiler. Their compiler won't allow
16
* a shader doesn't have any executable code.
17
*/
18
void apple_work_around1() {}
19
20
[test]
21
link success