magic-pixels
    Preparing search index...

    Class BufferGeometry

    minimal BufferGeometry class to provide an API similar to THREE.

    A geometry is plain data; the renderer creates and caches the GPU buffers for it. Adding/removing attributes or changing the index bumps version, which makes the renderer rebuild its buffers. To change the contents of an existing attribute, write into attribute.data and set attribute.needsUpdate = true.

    Index
    attributes: Record<string, BufferAttribute> = {}
    count: number = 0
    groups: BufferGroup[] = []
    index: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike> | null = null
    indexType: 0 | 16 | 32 = 0
    version: number = 0

    Incremented on every structural change (attributes added/removed, index set)