Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.56 kb
export uniform int width() { return programCount; }
float crashEven(uniform float a[]) {
int offset = 0;
return (programIndex & 1) ? a[offset] : a[offset+1000000];
}
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float a = aFOO[programIndex];
float a0 = aFOO[0], a1 = aFOO[1];
if (((programIndex & 1) == 1) && (crashEven(aFOO) == 1))
RET[programIndex] = 1;
else
RET[programIndex] = 2;
}
export void result(uniform float RET[]) {
RET[programIndex] = (programIndex & 1) ? 1 : 2;
}
Jump to Line
Something went wrong with that request. Please try again.