Readonly Internal__ReadonlydepthThe depth or layer count of this GPUTexture.
ReadonlydimensionThe dimension of the set of texel for each of this GPUTexture's subresources.
ReadonlyformatThe format of this GPUTexture.
ReadonlyheightThe height of this GPUTexture.
ReadonlymipThe number of mip levels of this GPUTexture.
ReadonlysampleThe number of sample count of this GPUTexture.
Optional ReadonlytextureOn 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.)
ReadonlyusageThe allowed usages for this GPUTexture.
ReadonlywidthThe width of this GPUTexture.
Creates a GPUTextureView.
Optionaldescriptor: GPUTextureViewDescriptorDescription of the GPUTextureView to create.
Destroys the GPUTexture.
Workaround for nominal typing.