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

    Variable GpuSyncKindConst

    GpuSyncKind: {
        cpuComplete: 0;
        d3d12Fence: 6;
        metalSharedEvent: 5;
        openGlFence: 1;
        queueOrder: 2;
        syncFd: 4;
        vulkanTimelineSemaphore: 3;
    } = ...

    How one side waits for the other's GPU work on a shared texture.

    A sync file descriptor or an OpenGL fence signals once, so when AcquiredFrameHandle.release() succeeds, the session takes the one you pass. A Vulkan timeline semaphore, Metal shared event, or D3D12 fence counts up with each frame, so the one you pass stays yours. Keep it valid until a detach or release of the session completes.

    See mln_gpu_sync_kind in the C API reference.

    Type Declaration

    • ReadonlycpuComplete: 0

      The work has already finished, so there is nothing to wait for.

    • Readonlyd3d12Fence: 6

      handle is a shared Windows handle to an ID3D12Fence. Wait until it reaches value.

    • ReadonlymetalSharedEvent: 5

      handle is an MTLSharedEvent. Wait until it reaches value.

    • ReadonlyopenGlFence: 1

      handle is a GLsync in the session's share group.

    • ReadonlyqueueOrder: 2

      The work was submitted to the queue that both sides share, so work submitted to that queue later runs after it.

    • ReadonlysyncFd: 4

      handle is a sync file descriptor.

    • ReadonlyvulkanTimelineSemaphore: 3

      handle is a VkSemaphore. Wait until it reaches value.