Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.21.0/tests/scatter-mask-1.ispc
2025-05-18 13:04:45 +08:00

16 lines
386 B
Plaintext

#include "../test_static.isph"
uniform float a[programCount];
task void f_f(uniform float RET[], uniform float aFOO[]) {
int index = aFOO[programIndex]-1;
if (index & 1) {
#pragma ignore warning(perf)
a[index] = 1;
}
RET[programIndex] = a[programIndex];
}
task void result(uniform float RET[]) {
RET[programIndex] = (programIndex & 1) ? 1 : 0;
}