Min/max texture values

Hi,

I am wondering if there are OpenGL calls to determine the min/max values of the currently bound texture. I am trying to avoid having to read back the entire texture to determine the min/max values and was thinking it would be handy if these computations could be done on the GPU.

Thanks,

T

Just like ping-pong downsampling, but you do the min/max in 2 rendertargets.

That makes sense. Thanks a lot!