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

17 lines
317 B
Plaintext

#include "../test_static.isph"
task void f_v(uniform float RET[]) {
RET[programIndex] = sizeof(uniform intptr_t);
}
task void result(uniform float RET[]) {
RET[programIndex] =
#if (ISPC_POINTER_SIZE==32)
4
#elif (ISPC_POINTER_SIZE==64)
8
#else
#error Unknown pointer size
#endif
;
}