writeTexture method

void writeTexture(
  1. GPUImageCopyTexture destination,
  2. AllowSharedBufferSource data,
  3. GPUImageDataLayout dataLayout,
  4. GPUExtent3D size,
)

The writeTexture() method of the GPUQueue interface writes a provided data source into a given GPUTexture.

This is a convenience function, which provides an alternative to setting texture data via buffer mapping and buffer-to-texture copies. It lets the user agent determine the most efficient way to copy the data over.

Implementation

external void writeTexture(
  GPUImageCopyTexture destination,
  AllowSharedBufferSource data,
  GPUImageDataLayout dataLayout,
  GPUExtent3D size,
);