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

16 lines
334 B
Plaintext

#include "../test_static.isph"
int &foo(int &a, int &b) {
return b;
}
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
int a = aFOO[programIndex];
int three = 3;
int &val = foo(a, three);
RET[programIndex] = val;
}
task void result(uniform float RET[]) {
RET[programIndex] = 3;
}