Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.18.0/tests/gather-double-2.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

20 lines
459 B
Plaintext

#include "../test_static.isph"
// rule: skip on cpu=tgllp
// rule: skip on cpu=dg2
int64 zero = 0;
task void f_f(uniform float RET[], uniform float aFOO[]) {
uniform double a[programCount];
for (uniform int i = 0; i < programCount; ++i)
a[i] = aFOO[i];
#pragma ignore warning(perf)
int g = a[programIndex+zero];
RET[programIndex] = g;
}
task void result(uniform float RET[]) {
RET[programIndex] = 1 + programIndex;
}