On Thu Mar 28 21:37:16 2024 +0000, Zebediah Figura wrote:
1/7 looks wrong. I haven't checked, but won't it do the wrong thing if we have something like const int x = 0x80000000; return x ? 1 : 0;
Currently, every time we generate a HLSL IR ternary operation, the condition (arg[0]) is boolean so in SM1 it should only acquire two values at this point, 1.0f or 0.0f.