Files
ispc/tests/max-int.ispc
2011-06-21 12:48:50 -07:00

14 lines
297 B
Plaintext

export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
int i = (int)a;
RET[programIndex] = max((int)-20, i);
}
export void result(uniform float RET[]) { RET[programIndex] = 1+programIndex; }