Interface GPUTexture
interface GPUTexture {
__brand: "GPUTexture";
depthOrArrayLayers: number;
dimension: GPUTextureDimension;
format: GPUTextureFormat;
height: number;
label: string;
mipLevelCount: number;
sampleCount: number;
usage: number;
width: number;
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
destroy(): undefined;
}
__brand: "GPUTexture";
depthOrArrayLayers: number;
dimension: GPUTextureDimension;
format: GPUTextureFormat;
height: number;
label: string;
mipLevelCount: number;
sampleCount: number;
usage: number;
width: number;
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
destroy(): undefined;
}
Hierarchy
- GPUObjectBase
- GPUTexture (view full)
Index
Properties
Methods
Properties
Readonly
Internal
__brand
__brand: "GPUTexture"
Readonly
depthOrArrayLayers
depthOrArrayLayers : number
The depth or layer count of this GPUTexture.
Readonly
dimension
The dimension of the set of texel for each of this GPUTexture's subresources.
Readonly
format
The format of this GPUTexture.
Readonly
height
height: number
The height of this GPUTexture.
label
label: string
Readonly
mipLevelCount
mipLevelCount : number
The number of mip levels of this GPUTexture.
Readonly
sampleCount
sampleCount : number
The number of sample count of this GPUTexture.
Readonly
usage
usage: number
The allowed usages for this GPUTexture.
Readonly
width
width: number
The width of this GPUTexture.
Methods
createView
- create
View (descriptor?): GPUTextureView Creates a GPUTextureView.
Parameters
Optional
descriptor: GPUTextureViewDescriptorDescription of the GPUTextureView to create.
Returns GPUTextureView
destroy
- destroy(): undefined
Destroys the GPUTexture.
Returns undefined
Nominal type branding. https://github.com/microsoft/TypeScript/pull/33038