GPUTexture
The GPUTexture interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations. Available only in secure contexts.
Properties
The depthOrArrayLayers read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
The dimension read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
The format read-only property of the GPUTexture interface represents the format of the GPUTexture.
The height read-only property of the GPUTexture interface represents the height of the GPUTexture.
The mipLevelCount read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
The sampleCount read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
The usage read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
The width read-only property of the GPUTexture interface represents the width of the GPUTexture.