The purpose of gastrulation is to position the 3 embryonic germ layers , the endoderm , ectoderm and mesoderm .
These three germ layers are known as the ectoderm , mesoderm , and endoderm .