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

    Interface OffscreenDeviceOptions

    Options for OffscreenDeviceHandle.create().

    See mln_offscreen_device_options in the C API reference.

    interface OffscreenDeviceOptions {
        adapterIndex?: number;
        clientApi?: OpenGlClientApi;
        singleContext?: boolean;
    }
    Index
    adapterIndex?: number

    The GPU to use, as an index into the platform's list of GPUs.

    clientApi?: OpenGlClientApi

    The OpenGL API that the device's sessions render with. An EGL device defaults to OpenGlClientApi.gles, and takes OpenGlClientApi.gl too on Linux and FreeBSD. A WGL device takes only OpenGlClientApi.gl, its default, and a WebGL device only OpenGlClientApi.gles, its default. Other devices take neither.

    singleContext?: boolean

    Whether the device's sessions take turns in one OpenGL context instead of having one each. Only an EGL device reads it.