Posted By: Hummel
HLSL compiler bug - 02/27/11 00:03
Hi,
found a strange bug which doesnt occur when I precompile my shader using the fxc.exe from the DX SDK. The following expression should never become true but it actually does:
(x>=1) != (x>1 || x==1)
Just make simple pp effect using COL as output with these lines:
YouŽll get white vertical stripes over the screen.
Compiled with fxc the screen stays black as expected.
V8.10.1
Regards
PS: Besides, when compiling complex shaders with big loops the fxc compiler is much faster. Why?
found a strange bug which doesnt occur when I precompile my shader using the fxc.exe from the DX SDK. The following expression should never become true but it actually does:
(x>=1) != (x>1 || x==1)
Just make simple pp effect using COL as output with these lines:
Code:
float bla2=frac(Tex.x*32); COL=floor(bla2*32)/31.f; COL=((COL.r>=1) != (COL.r>1 || COL.r==1));
YouŽll get white vertical stripes over the screen.
Compiled with fxc the screen stays black as expected.
V8.10.1
Regards
PS: Besides, when compiling complex shaders with big loops the fxc compiler is much faster. Why?