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

    Interface MetalOwnedTextureDescriptor

    Metal attachment options for an owned texture target.

    See mln_metal_owned_texture_descriptor in the C API reference.

    interface MetalOwnedTextureDescriptor {
        context?: MetalContextDescriptor;
        extent?: LogicalExtent;
        pixelFormat?: bigint;
    }
    Index

    Metal backend context. device is required.

    extent?: LogicalExtent

    Logical texture extent. A scale_factor that differs from the map's is accepted and logged as a warning.

    pixelFormat?: bigint

    Backend-native MTLPixelFormat value of the ring's textures: either MTLPixelFormatRGBA8Unorm or MTLPixelFormatBGRA8Unorm. Defaults to MTLPixelFormatRGBA8Unorm. Readback returns RGBA8 for either format.