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

15 lines
326 B
Plaintext

#include "../test_static.isph"
task void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
float b = 0.; b = a;
RET[programIndex] = a+b;
goto skip;
RET[programIndex] = 0;
skip:
;
}
task void result(uniform float RET[]) {
RET[programIndex] = 2 + 2*programIndex;
}