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

Hierarchy

  • components
    • Storage

Constructors

Properties

_device?: GPUDevice
binding: number
bufferOptions: {
    type: "storage" | "read-only-storage";
}

Type declaration

  • type: "storage" | "read-only-storage"
canvas?: HTMLCanvasElement
canvasFormat: GPUTextureFormat = ...
cpuBuffer?: ArrayType
gpuBuffer?: GPUBuffer
label?: string
usage: number = GPUBufferUsage.COPY_DST
visibility: number

Methods

  • Parameters

    • canvas: HTMLCanvasElement

    Returns void

  • Parameters

    Returns Promise<void>

  • Parameters

    • label: string

    Returns void

  • Returns Promise<void>

Generated using TypeDoc