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

    Interface WebgpuSurfaceDescriptor

    WebGPU attachment options for a native surface.

    See mln_webgpu_surface_descriptor in the C API reference.

    interface WebgpuSurfaceDescriptor {
        context?: WebgpuContextDescriptor;
        extent?: LogicalExtent;
        format?: number;
        surface?: bigint;
    }
    Index

    Borrowed WebGPU context. device is required.

    extent?: LogicalExtent

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

    format?: number

    WGPUTextureFormat to configure the surface with. Required. A browser host takes it from navigator.gpu.getPreferredCanvasFormat().

    surface?: bigint

    Borrowed WGPUSurface. Required, and must stay alive for the session. The session configures it for this device and extent, and unconfigures it when the session ends.