VertexAttributeObject

A GPU vertex attribute object that is composed of multiple Attributes to be used in a PipelineGroup.

Constructors

new VertexAttributeObject(options: VAOOptions): VertexAttributeObject

Properties

attributes

attributes: Attribute[]

canvas

canvas: HTMLCanvasElement

canvasFormat

canvasFormat: GPUTextureFormat

context

cpuBuffer

cpuBuffer: ArrayType

gpuBuffer

gpuBuffer: GPUBuffer

itemCount

itemCount: number

label

label: string

layout

stepMode

usage

usage: number

Methods

addAttributes

addAttributes(attributes: Attribute[]): Promise<void>

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.