projects
/
mesa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote branch 'origin/master' into glsl2
[mesa.git]
/
src
/
glsl
/
tests
/
function-05.glsl
1
/* PASS */
2
3
vec4 foo(in float x, in float y, float z, float w)
4
{
5
vec4 v;
6
v.x = x;
7
v.y = y;
8
v.z = z;
9
v.w = w;
10
return v;
11
}
12
13
vec4 foo(in float x)
14
{
15
vec4 v;
16
v.x = x;
17
v.y = x;
18
v.z = x;
19
v.w = x;
20
}
21
22
void main()
23
{
24
gl_Position = foo(1.0, 1.0, 1.0, 0.0);
25
gl_Position = foo(2.0);
26
}