A process of complicated morphogenetic cell movements that reorganizes a bilayer embryo into one with three germ layers and specific orientation (dorsal/ventral; anterior/posterior). gastrulation describes the germ layer development of a non-mammalian blastula or that of a mammalian blastocyst.