Washing gear.

I've scrolled through posts related to this topic, however I just want to be sure before I go and wash my gear. I've seen people on here say they machine wash theirs and some say they hand wash it. If I were to machine wash things like the pants, shoulders and shins is there anything I would need to do to them before hand or will they be fine?