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

    Interface WebgpuBorrowedTextureDescriptor

    WebGPU attachment options for a borrowed texture target.

    See mln_webgpu_borrowed_texture_descriptor in the C API reference.

    interface WebgpuBorrowedTextureDescriptor {
        context?: WebgpuContextDescriptor;
        extent?: LogicalExtent;
        format?: number;
        physicalHeight?: number;
        physicalWidth?: number;
        textures?: readonly WebgpuBorrowedTexture[];
    }
    Index

    Borrowed WebGPU context. device is required. Rendering is submitted through context.queue or that device's default queue.

    extent?: LogicalExtent

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

    format?: number

    Backend-native WGPUTextureFormat value of every texture. Undefined is invalid.

    physicalHeight?: number

    Physical texture height in device pixels. Defaults to 256.

    physicalWidth?: number

    Physical texture width in device pixels. Defaults to 256.

    textures?: readonly WebgpuBorrowedTexture[]

    The ring's textures, one per slot, in slot order. Required.