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

12 lines
263 B
Plaintext

#include "../test_static.isph"
int func(const int &a) { return a+1; }
int bar() { return 0; }
task void f_f(uniform float RET[], uniform float aFOO[]) {
RET[programIndex] = func(bar());
}
task void result(uniform float RET[]) {
RET[programIndex] = 1;
}