Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AttribPool

Implements

  • IRelease

Index

Constructors

constructor

Properties

addr

addr: number

attribs

attribs: IObjectOf<TypedArray>

byteStride

byteStride: number

capacity

capacity: number

maxAttribSize

maxAttribSize: number

order

order: string[]

pool

pool: MemPool

resizable

resizable: boolean

specs

specs: IObjectOf<AttribSpec>

Methods

addAttribs

  • addAttribs(specs: IObjectOf<AttribSpec>, alloc?: boolean): void

attribArray

  • attribArray(id: string): Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array
  • Parameters

    • id: string

    Returns Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array

attribValue

  • attribValue(id: string, i: number): undefined | number | Vec

attribValues

  • attribValues(id: string): Generator<number | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array, void, unknown>
  • Parameters

    • id: string

    Returns Generator<number | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array, void, unknown>

bytes

  • bytes(): Uint8Array

Protected computeStride

  • computeStride(specs: IObjectOf<AttribSpec>, inclExisting?: boolean): number[]

ensure

  • ensure(newCapacity: number, fill?: boolean): void

Protected initDefaults

  • initDefaults(specs: IObjectOf<AttribSpec>, start?: number, end?: number): void

Protected realign

  • realign(newByteStride: number): void

release

  • release(releasePool?: boolean): boolean

removeAttrib

  • removeAttrib(id: string): undefined | false

setAttribValue

  • setAttribValue(id: string, index: number, v: number | ReadonlyVec): AttribPool

setAttribValues

  • setAttribValues(id: string, vals: ReadonlyVec | ReadonlyVec[], index?: number): void

setAttribs

  • setAttribs(specs: IObjectOf<Partial<{ data: ReadonlyVec | ReadonlyVec[]; index: number }>>): void

Protected setDefaults

  • setDefaults(specs: IObjectOf<AttribSpec>, start?: number, end?: number): void

Protected updateOrder

  • updateOrder(): void

Protected validateSpecs

  • validateSpecs(specs: IObjectOf<AttribSpec>, stride?: number): void

Generated using TypeDoc