Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

18 lines
395 B
Plaintext

uniform float a[programCount];
static void foo(int index) {
#pragma ignore warning(perf)
a[index] = 1;
}
export void f_f(uniform float RET[], uniform float aFOO[]) {
int index = aFOO[programIndex]-1;
if (index & 1)
foo(index);
RET[programIndex] = a[programIndex];
}
export void result(uniform float RET[]) {
RET[programIndex] = (programIndex & 1) ? 1 : 0;
}