Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.18.0/tests/const-fold-1.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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.; }