ds to do the computation
  const encoder = device.createCommandEncoder({
    label: 'adding encoder',
  });
  const pass = encoder.beginComputePass({
    label: 'adding compute pass',
  });
  pass.setPipeline(pipeline);
  pass.setBindGroup(0, bindGroup, [0, 256, 512]);
  pass.dispatchWorkgroups(3);
  pass.end();

  // Encode a command to copy the results to a mappable buffer.
  encoder.copyBufferToBuffer(workBuffer, 0, resultBuffer, 0, resultBuffer.size);

  // Finish encoding and submit the commands
  cons