if in hlsl

seems that in HLSL_4, we can use if 

https://msdn.microsoft.com/en-us/library/bb313972(v=xnagamestudio.31).aspx

原文地址:https://www.cnblogs.com/minggoddess/p/4299929.html