    );

    device.queue.submit([commandEncoder2.finish()]);

    dst.destroy();

    tempBuffer.mapAsync(GPUMapMode.READ).then( () => {
      const range = tempBuffer.getMappedRange();
      const float32Array = new Float32Array(range);
      tempBuffer.destroy();
    });

    requestAnimationFrame(frame);
  }

  requestAnimationFrame(frame);
};

main();
        </script>
    </body>
</html>
