InterleavedBuffer
new InterleavedBuffer(array: TypedArray, stride: number)THREE equivalent: THREE.InterleavedBuffer
Shared typed array where multiple attributes are packed with a fixed stride. Each attribute reads at a different offset.
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
array |
Float32Array|Int32Array|Uint32Array|Uint16Array |
Backing interleaved data. |
stride |
number |
Number of elements between consecutive vertices. |
count |
number |
Number of vertices (array.length / stride). |
Methods
Section titled “Methods”| Method | Description |
|---|---|
clone(): InterleavedBuffer |
Returns a new InterleavedBuffer with a copied array. |