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

    Interface MetalTextureFrame

    Metal frame acquired from a texture ring.

    See mln_metal_texture_frame in the C API reference.

    interface MetalTextureFrame {
        device: bigint;
        frameId: bigint;
        generation: bigint;
        height: number;
        pixelFormat: bigint;
        scaleFactor: number;
        slot: number;
        texture: bigint;
        width: number;
    }
    Index
    device: bigint

    Borrowed id<MTLDevice> / MTL::Device*. Valid until frame release.

    frameId: bigint

    Opaque identity of this frame.

    generation: bigint

    Session generation that produced this frame.

    height: number

    Physical Metal texture height in device pixels.

    pixelFormat: bigint

    Backend-native pixel format value. Metal uses MTLPixelFormat.

    scaleFactor: number

    UI-to-device pixel scale used for this frame.

    slot: number

    Ring slot that holds this frame. For a borrowed target, the index of its texture in the descriptor's textures array.

    texture: bigint

    Borrowed id<MTLTexture> / MTL::Texture*. Valid until frame release.

    width: number

    Physical Metal texture width in device pixels.