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 Summary)
Index
Properties
Methods
Properties
Readonly Internal__brand
__brand: "GPUTexture"
ReadonlydepthOrArrayLayers
depthOrArrayLayers: number
The depth or layer count of this GPUTexture.
Readonlydimension
The dimension of the set of texel for each of this GPUTexture's subresources.
Readonlyformat
The format of this GPUTexture.
Readonlyheight
height: number
The height of this GPUTexture.
label
label: string
ReadonlymipLevelCount
mipLevelCount: number
The number of mip levels of this GPUTexture.
ReadonlysampleCount
sampleCount: number
The number of sample count of this GPUTexture.
Readonlyusage
usage: number
The allowed usages for this GPUTexture.
Readonlywidth
width: number
The width of this GPUTexture.
Methods
createView
- createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView
Creates a GPUTextureView.
Parameters
Optionaldescriptor: 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