10 lines
126 B
Plaintext
10 lines
126 B
Plaintext
// Illegal to pass a "varying" lvalue
|
|
|
|
void foo(float &x) {
|
|
++x;
|
|
}
|
|
|
|
void bar(uniform float a[], int i) {
|
|
foo(a[i]);
|
|
}
|