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

19 lines
475 B
Plaintext

#include "../test_static.isph"
int zero = 0;
void *gptr;
task void f_f(uniform float RET[], uniform float aFOO[]) {
uniform float a[programCount];
for (uniform int i = 0; i < programCount; ++i)
a[i] = aFOO[i];
float *ptr = (aFOO[0] == 1234) ? (float * varying)gptr : (a + programIndex);
#pragma ignore warning(perf)
int g = *ptr;
RET[programIndex] = g;
}
task void result(uniform float RET[]) {
RET[programIndex] = 1 + programIndex;
}