a layer of tissue that consists of the inner of the two layers into which the unsegmented sheet of mesoderm splits in the embryo of a craniate vertebrate together with the endoderm internal to it and that forms most of the walls and substance of the visceral organs