Skip to content

Commit 16eb255

Browse files
committed
Cleanup
1 parent 7c3365f commit 16eb255

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

examples/timelinesemaphore/timelinesemaphore.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)