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

    Class VulkanDeviceHandle

    A Vulkan instance, device, and queue that the library creates and owns.

    See mln_vulkan_device in the C API reference.

    Hierarchy

    • Owner
      • VulkanDeviceHandle
    Index
    "[asyncDispose]": () => Promise<void>

    Calls release(), for await using. Hosts without Symbol.asyncDispose, such as ArkTS, leave it undefined.

    "[dispose]": () => void

    Calls release(), for using. Hosts without Symbol.dispose, such as ArkTS, leave it undefined.

    id: bigint

    The native handle value. It stays readable after release.

    • Creates a Vulkan instance, device, and graphics queue for render sessions.

      Attach sessions with the context from VulkanDeviceHandle.getContext(), in place of a device of your own. Without device_uuid or device_luid, it prefers a discrete GPU. The device enables the external memory and semaphore extensions that the GPU offers.

      See mln_vulkan_device_create in the C API reference.

      Errors:

      • Status.unsupported when supportedRenderBackendMask() lacks RenderBackendFlag.vulkan, or when presentation is true and the Vulkan loader or the GPU can't present.
      • Status.notFound when no GPU matches device_uuid and device_luid.
      • Status.nativeError when there is no Vulkan loader, no GPU has a graphics queue, or Vulkan can't create the instance or the device.

      Parameters

      Returns VulkanDeviceHandle