From 2547e8e940d17090c109fd08af021385afdeb4b6 Mon Sep 17 00:00:00 2001 From: Johannes Schneider Date: Wed, 10 Jul 2024 20:25:44 +0200 Subject: [PATCH] Fix spelling mistake --- src/VulkanSample.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/VulkanSample.cpp b/src/VulkanSample.cpp index 08da708..949040f 100644 --- a/src/VulkanSample.cpp +++ b/src/VulkanSample.cpp @@ -86,7 +86,7 @@ static std::vector g_SwapchainImageViews; static std::vector g_Framebuffers; static VkCommandPool g_hCommandPool; static VkCommandBuffer g_MainCommandBuffers[COMMAND_BUFFER_COUNT]; -static VkFence g_MainCommandBufferExecutedFances[COMMAND_BUFFER_COUNT]; +static VkFence g_MainCommandBufferExecutedFences[COMMAND_BUFFER_COUNT]; VkFence g_ImmediateFence; static uint32_t g_NextCommandBufferIndex; // Notice we need as many semaphores as there are swapchain images @@ -2088,7 +2088,7 @@ static void InitializeApplication() fenceInfo.flags = VK_FENCE_CREATE_SIGNALED_BIT; for(size_t i = 0; i < COMMAND_BUFFER_COUNT; ++i) { - ERR_GUARD_VULKAN( vkCreateFence(g_hDevice, &fenceInfo, g_Allocs, &g_MainCommandBufferExecutedFances[i]) ); + ERR_GUARD_VULKAN( vkCreateFence(g_hDevice, &fenceInfo, g_Allocs, &g_MainCommandBufferExecutedFences[i]) ); } ERR_GUARD_VULKAN( vkCreateFence(g_hDevice, &fenceInfo, g_Allocs, &g_ImmediateFence) ); @@ -2226,10 +2226,10 @@ static void FinalizeApplication() for(size_t i = COMMAND_BUFFER_COUNT; i--; ) { - if(g_MainCommandBufferExecutedFances[i] != VK_NULL_HANDLE) + if(g_MainCommandBufferExecutedFences[i] != VK_NULL_HANDLE) { - vkDestroyFence(g_hDevice, g_MainCommandBufferExecutedFances[i], g_Allocs); - g_MainCommandBufferExecutedFances[i] = VK_NULL_HANDLE; + vkDestroyFence(g_hDevice, g_MainCommandBufferExecutedFences[i], g_Allocs); + g_MainCommandBufferExecutedFences[i] = VK_NULL_HANDLE; } } if(g_MainCommandBuffers[0] != VK_NULL_HANDLE) @@ -2290,7 +2290,7 @@ static void DrawFrame() // Begin main command buffer size_t cmdBufIndex = (g_NextCommandBufferIndex++) % COMMAND_BUFFER_COUNT; VkCommandBuffer hCommandBuffer = g_MainCommandBuffers[cmdBufIndex]; - VkFence hCommandBufferExecutedFence = g_MainCommandBufferExecutedFances[cmdBufIndex]; + VkFence hCommandBufferExecutedFence = g_MainCommandBufferExecutedFences[cmdBufIndex]; ERR_GUARD_VULKAN( vkWaitForFences(g_hDevice, 1, &hCommandBufferExecutedFence, VK_TRUE, UINT64_MAX) ); ERR_GUARD_VULKAN( vkResetFences(g_hDevice, 1, &hCommandBufferExecutedFence) );