Function readBuffer

  • Reads data from a buffer.

    Parameters

    • device: Device

      the GPU device

    • buffer: Buffer

      the GPU buffer to read from

    • Optional out: Uint8Array

      the output CPU buffer

    • offset: number = 0

      othe byte offset into GPU buffer to begin reading from. Defaults to 0

    Returns Future<Uint8Array>

    a Future

Generated using TypeDoc