STORAGE | GPUBufferUsage.COPY_SRC,
  });

  const chunkWidth = 256;
  const chunkHeight = 1;
  const chunksAcross = Math.ceil(texture.width / chunkWidth);
  const chunksDown = Math.ceil(texture.height / chunkHeight);
  const numChunks = chunksAcross * chunksDown;
  console.log(numChunks, chunksAcross, chunksDown);
  const chunksBuffer = device.createBuffer({
    size: numChunks * 256 * 4 * 4,
    usage: GPUBufferUsage.STORAGE,
  });

  const resultBuffer = device.createBuffer({
    size: histogramBuffer.siz