First look for IDirect3DDevice9:tretchRect. You scan StretchRect from backbuffer (rendertarget) to rendertarget-texture. ANd on second step use this texture as the source to the shader drawn with full-screen quad.

Be warned: a lot of HW (probably except NV GF6 and up) have some restrictions on "non-power-of-two" textures.