Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.16.1/tests/ptr-int-null-1.ispc
2025-05-18 13:04:45 +08:00

14 lines
273 B
Plaintext

bool foo(int *ptr) {
return (ptr == NULL);
}
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform int a = 1;
uniform int * uniform b = 0;
RET[programIndex] = foo(0);
}
export void result(uniform float RET[]) {
RET[programIndex] = 1;
}