Apply tonemapping on a hdr texture

Hi,

I captured the scene using a cubemap render target and converted the cubemap to a 2d panorama texture using
a resolution I specified(2048*1024 for example) by following some example in source code. Since the captured result is in hdr format, I have to run a tonmapping pass on it to make it LDR. How to run the tonemapping pass alone for the texture? In the source code, tonemapping is part of the post processing. Can I use the existing tonemap shader and run it with my texture as input?

Thanks a lot!

Any suggestion or help is much appreciated.

Have you found a solution to this issue?