PDA

View Full Version : Min/max texture values



thinks
08-24-2010, 06:59 AM
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

Ilian Dinev
08-24-2010, 08:00 AM
Just like ping-pong downsampling, but you do the min/max in 2 rendertargets.

thinks
08-24-2010, 08:12 AM
That makes sense. Thanks a lot!