title: Need average and max value of a texture in shader
body: <p>I have a RenderTexture and need to calculate its average and maximum pixel value. The RenderTexture is of RFloat format so only has one component. Also it does not use mipmap right now.</p>