How to extract a Texture2D from a render target?

have you made a material based on render target?