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

18 lines
463 B
Plaintext

#include "../test_static.isph"
// rule: skip on arch=xe64
task void f_f(uniform float RET[], uniform float aFOO[]) {
int32 * uniform src = uniform new int32[1024];
int32 * uniform dst = uniform new int32[1024];
foreach (i = 0 ... 1024)
src[i] = i;
memcpy(&dst[32], src, (1024-32)*sizeof(uniform int));
RET[programIndex] = dst[64+programIndex];
}
task void result(uniform float RET[]) {
RET[programIndex] = 32 + programIndex;
}