Although different washing machines have their different maximum capacity however there are some general rules to keep in mind.
For front loader washing machines, put your clothes until it is 98% full because this type of washing machines do well even you do not compress the clothes well.
On the other hand, for top loaders, you can put the clothes inside the washer until they get to the summit of the agitator.