Enum GpuSyncKind
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
How one side waits for the other's GPU work on a shared texture.
public enum GpuSyncKind : uint
Fields
CpuComplete = 0The work has already finished, so there is nothing to wait for.
D3d12Fence = 6handleis a shared Windows handle to anID3D12Fence. Wait until it reachesvalue.handleis anMTLSharedEvent. Wait until it reachesvalue.OpenGlFence = 1handleis aGLsyncin the session's share group.QueueOrder = 2The work was submitted to the queue that both sides share, so work submitted to that queue later runs after it.
SyncFd = 4handleis a sync file descriptor.VulkanTimelineSemaphore = 3handleis aVkSemaphore. Wait until it reachesvalue.
Remarks
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.