A GPU texture object that can be used in a BindGroup.

Hierarchy

  • components
    • Texture

Constructors

Properties

_device?: GPUDevice
binding: number
canvas?: HTMLCanvasElement
canvasFormat: GPUTextureFormat = ...
cpuBuffer?: Uint8ClampedArray & ArrayType
gpuTexture?: GPUTexture
label?: string
textureFormat: GPUTextureFormat = "rgba8unorm"
textureHeight: number = 1
textureUsage: number = ...
textureWidth: number = 1
visibility: number

Methods

  • Parameters

    • replace: boolean = false

    Returns Promise<void>

  • Parameters

    • canvas: HTMLCanvasElement

    Returns void

  • Parameters

    • image: string | HTMLImageElement

    Returns Promise<void>

  • Parameters

    • label: string

    Returns void

  • Parameters

    • width: number
    • height: number

    Returns void

Generated using TypeDoc