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

19 lines
411 B
Plaintext

#include "../test_static.isph"
void foo(uniform float * uniform * ret) {
#pragma ignore warning(perf)
uniform float *px = *ret;
++px;
#pragma ignore warning
*ret = px;
}
task void f_f(uniform float RET[], uniform float aFOO[]) {
uniform float * uniform ptr = &aFOO[0];
foo(&ptr);
RET[programIndex] = *ptr;
}
task void result(uniform float RET[]) {
RET[programIndex] = 2;
}