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

13 lines
299 B
Plaintext

#include "../test_static.isph"
float foo(float &) { return 1; }
float bar(uniform float []) { return 2; }
task void f_f(uniform float RET[], uniform float aFOO[]) {
float x = 0;
RET[programIndex] = foo(x) + bar(aFOO);
}
task void result(uniform float RET[]) {
RET[programIndex] = 3;
}