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

15 lines
354 B
Plaintext

#include "../test_static.isph"
typedef int<3> int3;
task void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
float a = aa[programIndex];
int3 v0 = { b, 2*b, 3*b };
int3 v1 = { a, 2*a, 3*a };
ret[programIndex] = (v0+v1).y;
}
task void result(uniform float ret[]) {
ret[programIndex] = 10 + 2 * (programIndex+1);
}