How can I create a texture from the front or back buffer? I'm using Clootie's DX9 headers.

The idea is to take a shot of the buffer in a texture, the process the texture with a pixel shader, and then place it in the buffer or draw it. What's the best method to acomplish that?

Regards!