copyTextureToBuffer method

void copyTextureToBuffer(
  1. GPUImageCopyTexture source,
  2. GPUImageCopyBuffer destination,
  3. GPUExtent3D copySize
)

The copyTextureToBuffer() method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.

Implementation

external void copyTextureToBuffer(
  GPUImageCopyTexture source,
  GPUImageCopyBuffer destination,
  GPUExtent3D copySize,
);