Rhyolite is the most silica-rich of volcanic rocks. It is generally glassy or fine-grained (aphanitic) in texture, but may be porphyritic, containing larger mineral crystals (phenocrysts) in an otherwise fine-grained groundmass. The mineral assemblage is predominantly quartz, sanidine, and plagioclase. It is the extrusive equivalent of granite.
Rhyolite
QAPF diagram with rhyolite field highlighted
Volcanic rocks are rocks formed from lava erupted from a volcano. Like all rock types, the concept of volcanic rock is artificial, and in nature volcanic rocks grade into hypabyssal and metamorphic rocks and constitute an important element of some sediments and sedimentary rocks. For these reasons, in geology, volcanics and shallow hypabyssal rocks are not always treated as distinct. In the context of Precambrian shield geology, the term "volcanic" is often applied to what are strictly metavolcanic rocks. Volcanic rocks and sediment that form from magma erupted into the air are called "pyroclastics," and these are also technically sedimentary rocks.
Ignimbrite, a volcanic rock deposited by pyroclastic flows
Photomicrograph of a volcanic lithic fragment (sand grain); upper picture is plane-polarized light, bottom picture is cross-polarized light, scale box at left-center is 0.25 millimeter.
An aphanitic volcanic sand grain, with fine-grained groundmass, as seen under a petrographic microscope
Vesicular olivine basalt from La Palma (green phenocrysts are olivine).