Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.17.0/tests/foreach-28.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

19 lines
409 B
Plaintext

#include "../test_static.isph"
uniform int foo(int i);
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float ub) {
float b = ub;
RET[programIndex] = 0;
foreach (i = 0 ... 10, j = 0 ... programCount + 1) {
if (b == 12345)
continue;
if (j > 0)
++RET[j-1];
}
}
task void result(uniform float RET[]) {
RET[programIndex] = 10;
}