⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Backend.Vulkan.GetFrameFenceFd

static int GetFrameFenceFd()

Returns a sync file descriptor for the most recently submitted frame’s GPU work! Waiting on it (e.g. via EGL_ANDROID_native_fence_sync) guarantees all rendering submitted up to the last frame end has completed. Call from StereoKit’s main thread. The caller owns the descriptor and must close it. Only functional on platforms and devices supporting external fence export.

   
RETURNS: int A sync file descriptor, or -1 when unsupported or no frame has been submitted yet.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!