createTexture

open external fun createTexture(descriptor: GPUTextureDescriptor): GPUTexture(source)

The createTexture() method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.

MDN Reference