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

18 lines
371 B
Plaintext

#include "../test_static.isph"
// rule: skip on cpu=tgllp
// rule: skip on cpu=dg2
task void f_fu(uniform float ret[], uniform float v[], uniform float u) {
double d = v[programIndex];
double r = u;
if (d <= 2.)
r = d;
ret[programIndex] = r;
}
task void result(uniform float ret[]) {
ret[programIndex] = 5;
ret[0] = 1;
ret[1] = 2;
}