summaryrefslogtreecommitdiff
path: root/src/glsl/tests/function-01.glsl
blob: 0eaa2397ab6a29f28a36a33d17a2bd1d086a9d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* FAIL - no function named 'foo' exists */

vec4 bar(float x, float y, float z, float w)
{
  vec4 v;
  v.x = x;
  v.y = y;
  v.z = z;
  v.w = w;
  return v;
}

void main()
{
  gl_Position = foo(1.0, 1.0, 1.0, 0.0);
}