e = device.createShaderModule({
    label: 'histogram chunk shader',
    code: `
      var<workgroup> histogram: array<array<atomic<u32>, 4>, 256>;
      @group(0) @binding(0) var<storage, read_write> histogramChunks: array<array<vec4u, 256>>;
      @group(0) @binding(1) var ourTexture: texture_2d<f32>;

      const kSRGBLuminanceFactors = vec3f(0.2126, 0.7152, 0.0722);
      fn srgbLuminance(color: vec3f) -> f32 {
        return saturate(dot(color, kSRGBLuminanceFactors));
      }

      
      @compute @w