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

    Class Vec4F32DataTextureArray

    Vec4 f32 instance data as sampler2DArray (1 rgba32f 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

    • Parameters

      • layer: number

        Layer index.

      • index: number

        Index of the instance.

      • inData: Float32Array

        Data to update.

      • offset: number = 0

        Offset in the data.

      Returns void

    • 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