Interface ColumnarDeckGlAttributeBindingExperimental

Bind one columnar buffer to a named deck.gl binary accessor (for example getPosition, getFillColor, getRadius).

interface ColumnarDeckGlAttributeBinding {
    accessor: string;
    bufferId: string;
    component: ColumnarComponentType;
    normalized?: boolean;
    offset?: number;
    size:
        | 1
        | 2
        | 3
        | 4;
    stride?: number;
}

Properties

accessor: string

deck.gl binary accessor name, for example getPosition.

bufferId: string

id of the ColumnarBufferV1 in the batch that backs this attribute.

Numeric component type of the buffer's elements.

normalized?: boolean

deck.gl normalized flag forwarded verbatim.

offset?: number

Byte offset into the buffer view where addressing begins. Defaults to 0.

size:
    | 1
    | 2
    | 3
    | 4

Components per vertex (deck.gl attribute size).

stride?: number

Byte stride between consecutive rows. Defaults to size * componentBytes.