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

11 lines
295 B
Plaintext

#include "../test_static.isph"
float bar(float x) { return 2. * x; }
task void f_f(uniform float RET[], uniform float aFOO[]) {
float x = aFOO[programIndex];
RET[programIndex] = extract(bar(x) * -1., 0);
}
task void result(uniform float RET[]) {
RET[programIndex] = -2.000000;
}