Interface GPUTexture

Hierarchy

Properties

depthOrArrayLayers: number

The depth or layer count of this GPUTexture.

The dimension of the set of texel for each of this GPUTexture's subresources.

The format of this GPUTexture.

height: number

The height of this GPUTexture.

label: string
mipLevelCount: number

The number of mip levels of this GPUTexture.

sampleCount: number

The number of sample count of this GPUTexture.

textureBindingViewDimension?: GPUTextureViewDimension

On 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.

Todo

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.)

usage: number

The allowed usages for this GPUTexture.

width: number

The width of this GPUTexture.

Methods

Generated using TypeDoc