Files
ispc/tests/test-143.ispc
2011-06-21 12:48:50 -07:00

13 lines
288 B
Plaintext

export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
RET[programIndex] = round(a+.5);
}
export void result(uniform float RET[]) {
RET[programIndex] = (programIndex / 2) * 2 + 2;
}