Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/reduce-add-uint.ispc
2025-05-18 13:04:45 +08:00

14 lines
465 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 int iv = (unsigned int)v;
/*CO if (iv & 1)*/
m = reduce_add(iv);
RET[programIndex] = m;
}
task void result(uniform float RET[]) { RET[programIndex] = (programCount == 1) ? 1 : (10 * programCount/4); }