Skip to main content

CompletionFence

Type Alias CompletionFence 

Source
pub type CompletionFence = OwnedFd;
Expand description

Handle returned by convert_with_fence: a sync_file fd on Unix, an event handle on Windows that is set when the GPU work completes. Handle returned by GlPlatform::export_completion_fence (and surfaced by convert_with_fence): a sync_file fd on Unix (EGL_ANDROID_native_fence_sync), an event NT handle on Windows, set when the D3D11 device fence reaches the value the convert queued. Keeps the engine free of cfg branches (precedent: BlobFd in crates/tensor/src/blob.rs).

Aliased Typeยง

pub struct CompletionFence { /* private fields */ }