Creating a Histogram in a shader

hey nice work!

So how would it be possible to divide it into a grid and track for each part of the grid a separate histogram.

Texture Array or splitting it with the UV coords in the Compute Shader comes to my mind.