Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.19.0/tests/test-91.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

19 lines
431 B
Plaintext

#include "../test_static.isph"
float foo(uniform float x[3]) {
return x[1];
}
task void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
uniform float x[3][3];
uniform int i, j;
for (i = 0; i < 3; ++i)
for (j = 0; j < 3; ++j)
x[i][j] = 3 + i*j;
RET[programIndex] = foo(x[1]);
}
task void result(uniform float RET[]) {
RET[programIndex] = 4.000000;
}