Shape, Line, and Text layers can be rasterized to create raster layers. This "flattening" operation can be performed manually or automatically (when applying filters or retouch brushes).
Rasterization is only a requirement if the appearance of complex vector gradients or effects need to be honored, particularly for print artwork.