API

Function readStorageBuffer

  • Read an aligned range of a GPU-writable storage allocation through one lazily reused staging buffer. Call after the producing frame is submitted; an active frame encoder is rejected.

    Parameters

    Returns Promise<ArrayBuffer>

  • Read an aligned range of a GPU-writable storage allocation through one lazily reused staging buffer. Call after the producing frame is submitted; an active frame encoder is rejected.

    Parameters

    • buffer: StorageBuffer
    • byteOffset: number
    • OptionalbyteLength: number

    Returns Promise<ArrayBuffer>