Function readStorageBuffer
-
Parameters
- buffer: StorageBuffer
Returns Promise<ArrayBuffer>
-
readStorageBuffer(
buffer: StorageBuffer,
byteOffset: number,
byteLength?: number,
): 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>
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.