Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.21.0/tests/exclusive-scan-or-1.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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;
}