cgfx->hlsl
StencilFunc={always,1,0xff}->setDepthStencilState(DepthState,0)
StencilFunc={always,0,0xff}->setDepthStencilState(DepthState,1)
http://msdn.microsoft.com/en-us/library/windows/hardware/ff569532(v=vs.85).aspx
cgfx->hlsl
StencilFunc={always,1,0xff}->setDepthStencilState(DepthState,0)
StencilFunc={always,0,0xff}->setDepthStencilState(DepthState,1)
http://msdn.microsoft.com/en-us/library/windows/hardware/ff569532(v=vs.85).aspx