12 lines
335 B
Plaintext
12 lines
335 B
Plaintext
#include "../test_static.isph"
|
|
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
|
#pragma ignore warning(perf)
|
|
float a = aFOO[programIndex&3];
|
|
RET[programIndex] = reduce_add(a) * 4 / programCount;
|
|
}
|
|
|
|
|
|
task void result(uniform float RET[]) {
|
|
RET[programIndex] = (programCount == 1) ? 4 : 10;
|
|
}
|