17 lines
294 B
Plaintext
17 lines
294 B
Plaintext
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
#ifndef ISPC_HAS_RAND
|
|
RET[programIndex] = 1;
|
|
#else
|
|
|
|
float r = -1;
|
|
while (!rdrand(&r))
|
|
;
|
|
RET[programIndex] = (r >= 0 && r < 1);
|
|
|
|
#endif
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = 1;
|
|
}
|