Function copyBuffer

  • Copies data from a buffer to another buffer.

    Parameters

    • device: Device

      the GPU device

    • src: Buffer

      the buffer to read from

    • dst: Buffer

      the buffer to write to

    • size: number = ...

      the byte size of the GPU buffer to read. Defaults to the whole buffer

    • srcOffset: number = 0

      the byte offset into src buffer to begin reading from. Defaults to 0

    • dstOffset: number = 0

      the byte offset into dst buffer to begin writing to. Defaults to 0

    Returns void

Generated using TypeDoc