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

13 lines
405 B
Plaintext

#include "../test_static.isph"
task void f_f(uniform float RET[], uniform float aFOO[]) {
uniform float buf[programCount];
uniform float * varying ptr = &buf[programCount - 1 - programIndex];
#pragma ignore warning(perf)
ptr[0] = programIndex;
RET[programIndex] = buf[programIndex];
}
task void result(uniform float RET[]) {
RET[programIndex] = programCount - 1 - programIndex;
}