Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.19.0/tests/test-2.ispc
2025-05-18 13:04:45 +08:00

15 lines
306 B
Plaintext

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