playcanvas-opti-pixel - v1.2.0
    Preparing search index...

    Class ColorDataTextureArray

    Instance color data as sampler2DArray (RGBA8, 1 texel per instance per layer).

    Hierarchy (View Summary)

    Index
    maxUpdateCalls: number = Infinity

    Maximum number of update calls per frame.

    partialUpdate: boolean = true

    If true, the texture will be updated only if the data has changed.

    • get capacity(): number

      Maximum number of instances that the texture can hold.

      Returns number

    • get pixelsPerInstance(): number

      Number of pixels per instance.

      Returns number

    • Resize instance capacity. Optionally change layer count in the same call. Changing layers recreates the GPU texture (arrayLength is immutable).

      Parameters

      • count: number
      • layers: number = ...

      Returns void