Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.16.1/tests/scatter-mask-1.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

15 lines
359 B
Plaintext

uniform float a[programCount];
export 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];
}
export void result(uniform float RET[]) {
RET[programIndex] = (programIndex & 1) ? 1 : 0;
}