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

    Interface WebGpuBorrowedTextureDescriptor

    A ring of your WebGPU textures, for MapHandle.attachWebGpuBorrowedTexture().

    logical_size sets the map's size. physical_width and physical_height give the textures' size in pixels, which is usually logical_size times the map's scale factor. Each texture must be 2D with that size, format, one layer, one mip level, one sample, and WGPUTextureUsage_RenderAttachment. The ring holds up to TEXTURE_RING_MAX_DEPTH distinct textures.

    The session uses the textures until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.

    See mln_web_gpu_borrowed_texture_descriptor in the C API reference.

    interface WebGpuBorrowedTextureDescriptor {
        context: WebGpuContextDescriptor;
        format: number;
        logicalSize: LogicalSize;
        physicalHeight: number;
        physicalWidth: number;
        textures: readonly WebGpuBorrowedTexture[];
    }
    Index
    format: number

    The textures' WGPUTextureFormat.

    logicalSize: LogicalSize
    physicalHeight: number
    physicalWidth: number
    textures: readonly WebGpuBorrowedTexture[]