Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/array-scatter-unif-2.ispc
2025-05-18 13:04:45 +08:00

15 lines
440 B
Plaintext

#include "../test_static.isph"
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float a = aFOO[programIndex];
uniform float x[2*programCount];
for (uniform int i = 0; i < 2*programCount; ++i)
x[i] = 0;
#pragma ignore warning(perf)
x[2*(a-1)] = b;
RET[programIndex] = x[4]+x[5];
}
task void result(uniform float RET[]) { RET[programIndex] = programCount == 1 ? 0 : 5; }