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

13 lines
268 B
Plaintext

#include "../test_static.isph"
task void f_v(uniform float RET[]) {
float<3> a = {1,10,100};
float<6> b = a.zxyyxz;
RET[programIndex] = b.x + 2*b.y + 3*b.z - 3*b[3] - 2*b[4] - b[5];
}
task void result(uniform float RET[]) {
RET[programIndex] = 0;
}