Get Pixel values after applying pixel shader

Nov 25, 2010 at 2:20 PM


Is it possible to retrieve maximum and minimum pixel values in the image after the contrast adjust effect has been applied to an image. e.g., I apply a brightness and contrast change to the image but I do not know how to find a value for the minimum and maximum pixel values in the image.

Is there a HLSL code somebody can provide to solve this problem. I do not want to iterate though all the pixels in the image to find this value.