D3D: Moved setting texture by slot mask into StateManager