correct - vesicular tephratic material ejected from explosive volcanoes (i.e, those with a silicate content of greater than 56%), although these tend to form from the upper regions of a differentiated magma chamber, i.e, they are the most silica rich melts in a magma chamber. There are many side effects of this: Increasing viscosity, decreasing melting point, and, unsurprisingly, a greater ability to hold dissolved volatile gases. The rocks are tephratic in nature, hence have been formed from their ejection from the volcano. The bubbles (vesicles) are formed when the volcanic cap breaks, i.e., the seal is broken, and the volatiles gases come out of solution (yes, like a coke bottle) and if the material is ejected, this allows it to cool with sufficient haste to form these vesicles in the solid rock. Ofcourse, this is also a factor of chemistry, as in a more viscous melt, the vesicles are less likely to escape from the melt before it crosses the solidus (line of total solid constituents).