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

22 lines (15 sloc) 0.459 kb
export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float v = aFOO[programIndex];
uniform float m;
int iv = (int)v;
if (iv & 1)
m = reduce_add((float)iv);
RET[programIndex] = m;
}
export void result(uniform float RET[]) {
uniform int x = 0;
for (uniform int i = 1; i <= programCount; i += 2)
x += i;
RET[programIndex] = x;
}
Jump to Line
Something went wrong with that request. Please try again.