createTexture method

GPUTexture createTexture(
  1. GPUTextureDescriptor descriptor
)

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.

Implementation

external GPUTexture createTexture(GPUTextureDescriptor descriptor);