22 lines
461 B
Plaintext
22 lines
461 B
Plaintext
|
|
export uniform int width() { return programCount; }
|
|
|
|
|
|
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
float a = aFOO[programIndex];
|
|
RET[programIndex] = a;
|
|
|
|
if (programIndex & 1) {
|
|
foreach_active (i) {
|
|
if (i == 1)
|
|
continue;
|
|
++RET[i];
|
|
}
|
|
}
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = (1 + programIndex) + ((programIndex & 1) ? 1 : 0);
|
|
--RET[1];
|
|
}
|