Attribute

An attribute object that contains vertex data

Constructors

new Attribute(options: AttributeOptions): Attribute

Properties

canvas

canvas: HTMLCanvasElement

canvasFormat

canvasFormat: GPUTextureFormat

context

cpuBuffer

cpuBuffer: ArrayType

format

The format that the data is stored in

itemCount

itemCount: number

itemSize

itemSize: number

label

label: string

shaderLocation

shaderLocation: number

Methods

getDevice

getDevice(): Promise<GPUDevice>

setCanvas

setCanvas(canvas: HTMLCanvasElement): void

setCpuBuffer

setCpuBuffer(buffer: ArrayType): void

setDevice

setDevice(d: GPUDevice): void

setLabel

setLabel(label: string): void

You are viewing the beta docs. You may find the legacy docs more helpful.