Files
ispc/tests/static-init-with-typeconv.ispc
2011-06-21 12:48:50 -07:00

14 lines
390 B
Plaintext

export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float x_fullFOO[], uniform float a) {
float x_full = x_fullFOO[programIndex];
static const float two_over_pi_vec = 2;
float scaled = x_full * two_over_pi_vec;
RET[programIndex] = scaled;
}
export void result(uniform float RET[]) { RET[programIndex] = 2+2*programIndex; }