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

11 lines
335 B
Plaintext

#include "../test_static.isph"
// rule: skip on arch=x86
// rule: skip on arch=x86-64
task void f_f(uniform float RET[], uniform float aFOO[]) {
float16 a = aFOO[programIndex];
float16 b = (programCount == 1) ? 4 : broadcast(a, 2);
RET[programIndex] = b;
}
task void result(uniform float RET[]) { RET[programIndex] = 3; }