Readonly depthReadonly dimensionThe dimension of the set of texel for each of this GPUTexture's subresources.
Readonly formatThe format of this GPUTexture.
Readonly heightThe height of this GPUTexture.
Readonly mipThe number of mip levels of this GPUTexture.
Readonly sampleThe number of sample count of this GPUTexture.
Optional Readonly textureOn devices without "core-features-and-limits", views created from this texture must have this as their dimension.
On devices with "core-features-and-limits", this is undefined, and there is no such restriction.
Temporarily optional until all browsers have implemented it.
It is safe to access on any browser, as it will just (correctly) return
undefined if not implemented. Note, depending on the device, undefined
is a valid value even in browsers that implement this attribute. (So be
careful if using the non-null assertion operator ! on this.)
Readonly usageThe allowed usages for this GPUTexture.
Readonly widthThe width of this GPUTexture.
Creates a GPUTextureView.
Optional descriptor: GPUTextureViewDescriptorDescription of the GPUTextureView to create.
Destroys the GPUTexture.
Generated using TypeDoc
The depth or layer count of this GPUTexture.