writeTexture method
void
writeTexture(
- GPUImageCopyTexture destination,
- AllowSharedBufferSource data,
- GPUImageDataLayout dataLayout,
- 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,
);