The study of the origin, composition, and evolution of rocks, particularly as related to volcanic processes.