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
/
glslparsertest
/
glsl2
/
local-function-03.frag
blob
e201b45de4755ae0bf4dabd90c6cfaedf562e4e6
1
/* PASS - local function declarations are not allowed in GLSL 1.10. */
2
#version 110
3
void main() {
4
float foo(float x);
5
gl_FragColor = vec4(0.0, foo(0.5), 0.0, 1.0);
6
}
7
8
float foo(float x) {
9
return x + 0.5;
10
}
11