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

12 lines
420 B
Plaintext

#include "../test_static.isph"
task void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
#pragma ignore warning
uniform int x = (1 << 4) - ~0xf0f0f0f0 + (2 * 8 / 2);
#pragma ignore warning
const static uniform int y = (1 << 4) - ~0xf0f0f0f0 + (2 * 8 / 2);
RET[programIndex] = (x == y) ? 1. : 0.;
}
task void result(uniform float RET[]) { RET[programIndex] = 1.; }