Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.19.0/tests/test-127.ispc
2025-05-18 13:04:45 +08:00

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;
}