Function copyTextureToBuffer

  • Copies subregion of a texture to a buffer.

    Parameters

    • device: Device

      the GPU device

    • src: ImageCopyTexture

      the texture subregion to read from.

    • dst: Buffer

      the buffer to write to

    • layout: ImageDataLayout

      the buffer data layout to use for storing the texture

    • Optional size: Extent3D

      the size of the texture subregion to copy

    Returns void

Generated using TypeDoc