15 lines
445 B
Plaintext
15 lines
445 B
Plaintext
#include "../test_static.isph"
|
|
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
|
#pragma ignore warning(perf)
|
|
float v = aFOO[programIndex & 0x3];
|
|
uniform float m;
|
|
#pragma ignore warning(perf)
|
|
unsigned int64 iv = (unsigned int)v;
|
|
m = reduce_add(iv);
|
|
RET[programIndex] = m;
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = (programCount == 1) ? 1 : (10 * programCount/4);
|
|
}
|