18 lines
332 B
Plaintext
18 lines
332 B
Plaintext
export void f_v(uniform float RET[]) {
|
|
|
|
int errs = 0;
|
|
if (programIndex < 3) {
|
|
// if none() doesn't return 'false', we have an error.
|
|
if (none(programIndex >= 2)) {
|
|
++errs;
|
|
}
|
|
}
|
|
|
|
|
|
RET[programIndex] = errs;
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = 0;
|
|
}
|