Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/exclusive-scan-or-1.ispc
2025-05-18 13:04:45 +08:00

13 lines
353 B
Plaintext

#include "../test_static.isph"
task void f_f(uniform float RET[], uniform float aFOO[]) {
RET[programIndex] = -1;
int32 a = (1ul << (min(programIndex, 30)));
RET[programIndex] = exclusive_scan_or(a);
}
task void result(uniform float RET[]) {
#pragma ignore warning(perf)
RET[programIndex] = (1ul << (min(programIndex, 31))) - 1;
}