8 lines
155 B
Plaintext
8 lines
155 B
Plaintext
// Illegal to pass a "varying" lvalue to a reference parameter
|
|
|
|
void inc(float &x) { ++x; }
|
|
|
|
void foo(uniform float a[], int index) {
|
|
inc(a[index]);
|
|
}
|