new Texture(options: TextureOptions): Texture
binding: number
canvas: HTMLCanvasElement
canvasFormat: GPUTextureFormat
context: GPUCanvasContext
cpuBuffer: Uint8ClampedArray & ArrayType
gpuTexture: GPUTexture
label: string
textureFormat: GPUTextureFormat
textureHeight: number
textureUsage: number
textureWidth: number
visibility: number
generateMipMaps(): Promise<void>
getDevice(): Promise<GPUDevice>
setCanvas(canvas: HTMLCanvasElement): void
setCpuBuffer(buffer: Uint8ClampedArray): void
setCpuBuffer(buffer: ArrayType): void
setDevice(d: GPUDevice): void
setFromData(data: ArrayType): Promise<void>
setFromImage(image: string | HTMLImageElement): Promise<void>
setLabel(label: string): void
setTextureFormat(format: GPUTextureFormat): void
setTextureSize(width: number, height: number): void
setTextureUsage(usage: number): void
updateTexture(): Promise<void>
You are viewing the beta docs. You may find the legacy docs more helpful.