The formation of the ectoderm, mesoderm and endoderm during gastrulation. [ GOC:go_curators ]