GO:0060795: cell fate commitment involved in formation of primary germ layer
The commitment of cells to specific cell fates of the endoderm, ectoderm, or mesoderm as a part of gastrulation.