What would be a good way to accomplish something such as this using the pixel shader :
On a per-frame basis, count up the number of output pixels in a specified rectangle
on the screen that fall into some range, for example, with the red component between 0
and 0.5. Then, report this count back to the CPU once per frame.
Any ...