copyExternalImageToTexture method

void copyExternalImageToTexture(
  1. GPUImageCopyExternalImage source,
  2. GPUImageCopyTextureTagged destination,
  3. GPUExtent3D copySize
)

The copyExternalImageToTexture() method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.

Using this function allows the user agent to determine the most efficient way to copy the data over for each source type.

Implementation

external void copyExternalImageToTexture(
  GPUImageCopyExternalImage source,
  GPUImageCopyTextureTagged destination,
  GPUExtent3D copySize,
);