Class IndexBuffer

An index buffer that is used in a VertexAttributeObject to direct indexed drawing operations.

Hierarchy

  • components
    • IndexBuffer

Constructors

Properties

_device?: GPUDevice
baseIndex?: number
canvas?: HTMLCanvasElement
canvasFormat: GPUTextureFormat = ...
cpuBuffer: IndexArray
firstIndex?: number
gpuBuffer?: GPUBuffer
indexCount?: number
label?: string
usage: number = GPUBufferUsage.COPY_DST

Methods

  • Parameters

    • baseIndex: number

    Returns void

  • Parameters

    • canvas: HTMLCanvasElement

    Returns void

  • Parameters

    • indexBuffer: IndexArray

    Returns Promise<void>

  • Parameters

    • firstIndex: number

    Returns void

  • Parameters

    • indexCount: number

    Returns void

  • Parameters

    • label: string

    Returns void

Generated using TypeDoc