示例#1
0
        internal SharpVulkan.Semaphore ReleaseAcquirementSemaphore()
        {
            var semaphore = acquirementSemaphore;

            acquirementSemaphore = SharpVulkan.Semaphore.Null;
            return(semaphore);
        }
示例#2
0
 private void AcquireNextImage()
 {
     acquirementSemaphore           = acquirementSemaphores[nextAcquirementSemaphoreIndex];
     nextAcquirementSemaphoreIndex += 1;
     nextAcquirementSemaphoreIndex %= acquirementSemaphores.Length;
     backbufferIndex = context.Device.AcquireNextImage(swapchain, ulong.MaxValue, acquirementSemaphore, SharpVulkan.Fence.Null);
 }