Saving output of material as new texture

That’s what I was thinking of, but can something like that be done at runtime?