Development of germ layers The purpose of gastrulation is to position the 3 embryonic germ layers, the endoderm, ectoderm and mesoderm. ... The endoderm develops into the inner linings of the digestive tract, as well as the linings of the respiratory passages. It also forms many glands, such as the liver and pancreas.