File tree Expand file tree Collapse file tree
examples/timelinesemaphore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ class VulkanExample : public VulkanExampleBase
7474 struct TimeLineSemaphore {
7575 VkSemaphore handle{ VK_NULL_HANDLE };
7676 uint64_t value{ 0 };
77- bool firstFrame{ true };
7877 } timeLineSemaphore;
7978
8079 VkPhysicalDeviceTimelineSemaphoreFeaturesKHR enabledTimelineSemaphoreFeaturesKHR{};
@@ -622,20 +621,16 @@ class VulkanExample : public VulkanExampleBase
622621 const uint64_t graphicsFinished = timeLineSemaphore.value ;
623622 const uint64_t computeFinished = timeLineSemaphore.value + 1 ;
624623 const uint64_t allFinished = timeLineSemaphore.value + 2 ;
625- const uint64_t firstFrameWait = 0 ;
626624
627625 VulkanExampleBase::prepareFrame (false );
628626
629627 // Timeline semaphores can also be used to replace fences
630-
631628 VkSemaphoreWaitInfo semaphoreWaitInfo{ .sType = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO };
632629 semaphoreWaitInfo.semaphoreCount = 1 ;
633630 semaphoreWaitInfo.pSemaphores = &timeLineSemaphore.handle ;
634631 semaphoreWaitInfo.pValues = &timeLineSemaphore.value ;
635632 vkWaitSemaphoresKHR (device, &semaphoreWaitInfo, UINT64_MAX);
636633
637- timeLineSemaphore.firstFrame = false ;
638-
639634 updateComputeUniformBuffers ();
640635 buildComputeCommandBuffer ();
641636
You can’t perform that action at this time.
0 commit comments