Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/ptr-8.ispc
2025-05-18 13:04:45 +08:00

19 lines
381 B
Plaintext

#include "../test_static.isph"
void inc(varying int * uniform v) {
++*v;
}
task void f_f(uniform float RET[], uniform float aFOO[]) {
int a = aFOO[programIndex];
varying int * uniform b = &a;
if (a <= 2)
inc(b);
RET[programIndex] = a;
}
task void result(uniform float RET[]) {
RET[programIndex] = 1+programIndex;
RET[0] = 2;
RET[1] = 3;
}