@maplibre/native-ffi
    Preparing search index...

    Interface RenderSessionSnapshot

    The state of a render session at one moment.

    See mln_render_session_snapshot in the C API reference.

    interface RenderSessionSnapshot {
        acquiredFrameCount: number;
        extent: LogicalExtent;
        failureStatus: Status;
        frameGeneration: bigint;
        generation: bigint;
        hasTarget: boolean;
        state: RenderSessionState;
    }
    Index
    acquiredFrameCount: number

    The target's logical size, and the map's scale factor.

    failureStatus: Status

    Status.ok until the session fails. Then Status.targetLost when it failed because it lost its target, or Status.nativeError when it failed for another reason.

    frameGeneration: bigint
    generation: bigint
    hasTarget: boolean

    Whether the session is attached and has a target to render to. It's false from when RenderSessionHandle.releaseTarget() completes until you give the session a new target.