When specifying EVST_VS_3_0 shaders, break and fastopt still generate errors.
I´m using the SDK for DX9 from Aug 2005, but I think these features were added in 2009.
Has anyone compliled Irrlicht with the Aug 2009 DX9 SDK release? : http://www.microsoft.com/en-us/download ... x?id=23549
Preventing HLSL compiler unrolling loops with fastopt
Re: Preventing HLSL compiler unrolling loops with fastopt
Does it need a later version of the HLSL compiler to be used, fxc.exe?
One that supports break and fastopt for ps 3?
One that supports break and fastopt for ps 3?
Re: Preventing HLSL compiler unrolling loops with fastopt
I use the aug 2009 DX9 and the real issue with irrlicht is that it use the avoid_flow_control flagg when compiling the shader
in my version I made it detect a specific name to and change those flags when that name is found
but some other technique could be used and compilation flags exposed for good as it's a pain when you encounter a loop that cannot be unrolled with that flagg
in my version I made it detect a specific name to and change those flags when that name is found
but some other technique could be used and compilation flags exposed for good as it's a pain when you encounter a loop that cannot be unrolled with that flagg
Re: Preventing HLSL compiler unrolling loops with fastopt
Okay, thanks, that explains it. I had a quick look for that flag but didn´t find it.