Documentation
    Preparing search index...

    Interface ParticleBatchRecord

    Everything one particle system needs at draw time.

    interface ParticleBatchRecord {
        capacityFloats: number;
        cornerBuffer: object;
        instanceBuffer: object;
        vertexArray: object;
    }
    Index
    capacityFloats: number

    Floats the instance buffer was allocated for — the system's capacity × 8.

    cornerBuffer: object

    The shared quad's position buffer this vertex array was built against.

    Recorded so the cache can tell a stale vertex array from a live one: the geometry cache deletes and re-creates its buffers whenever the quad's version advances or a context is restored, and a vertex array still referencing the old buffer would draw from freed storage.

    instanceBuffer: object

    The dynamic buffer the instance stream is uploaded into.

    vertexArray: object

    Vertex array holding the corner attribute and the three instance attributes.