readBuffer method

  1. @override
Future<ByteData> readBuffer(
  1. StorageBuffer buffer
)

The contents of buffer, once every pass submitted before this call has finished writing it. buffer must be hostReadable.

Implementation

@override
Future<ByteData> readBuffer(StorageBuffer buffer) =>
    webgpuReadBuffer(gpuDevice, buffer);