simvx.graphics.gpu.sync¶
Fences, semaphores, and frames-in-flight synchronization.
Module Contents¶
Classes¶
Per-frame synchronization primitives. |
Data¶
API¶
- simvx.graphics.gpu.sync.__all__¶
[‘FrameSync’]
- class simvx.graphics.gpu.sync.FrameSync(device: Any, image_count: int, frame_count: int = FRAMES_IN_FLIGHT)[source]¶
Per-frame synchronization primitives.
Uses FRAMES_IN_FLIGHT fences and acquire semaphores, plus one render-finished semaphore per swapchain image to avoid the semaphore-reuse hazard described in the Vulkan swapchain guide.
Initialization
- wait_for_image(image_index: int) None[source]¶
Wait for any in-flight work using this swapchain image.