Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.456 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;
int64 iv = (int64)v;
if (iv & 1)
m = reduce_add(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.