From faeeb4c32383c8c4b60f8128693d00a5c0032522 Mon Sep 17 00:00:00 2001 From: richardebel <34792228+richardebel@users.noreply.github.com> Date: Sat, 20 Aug 2022 13:29:56 -0400 Subject: [PATCH] Update 19 Increasing the performance through increasing the number of separately rendered frames.h Changed 5 references to r-value references to fix build errors for mingw64-gcc and VS std c++20 --- ...easing the number of separately rendered frames.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/Source Files/09 Command Recording and Drawing/19 Increasing the performance through increasing the number of separately rendered frames.h b/Library/Source Files/09 Command Recording and Drawing/19 Increasing the performance through increasing the number of separately rendered frames.h index 47e8f7d..572100a 100644 --- a/Library/Source Files/09 Command Recording and Drawing/19 Increasing the performance through increasing the number of separately rendered frames.h +++ b/Library/Source Files/09 Command Recording and Drawing/19 Increasing the performance through increasing the number of separately rendered frames.h @@ -43,11 +43,11 @@ namespace VulkanCookbook { VkDestroyer(VkFramebuffer) Framebuffer; FrameResources( VkCommandBuffer & command_buffer, - VkDestroyer(VkSemaphore) & image_acquired_semaphore, - VkDestroyer(VkSemaphore) & ready_to_present_semaphore, - VkDestroyer(VkFence) & drawing_finished_fence, - VkDestroyer(VkImageView) & depth_attachment, - VkDestroyer(VkFramebuffer) & framebuffer ) : + VkDestroyer(VkSemaphore) && image_acquired_semaphore, + VkDestroyer(VkSemaphore) && ready_to_present_semaphore, + VkDestroyer(VkFence) && drawing_finished_fence, + VkDestroyer(VkImageView) && depth_attachment, + VkDestroyer(VkFramebuffer) && framebuffer ) : CommandBuffer( command_buffer ), ImageAcquiredSemaphore( std::move( image_acquired_semaphore ) ), ReadyToPresentSemaphore( std::move( ready_to_present_semaphore ) ), @@ -92,4 +92,4 @@ namespace VulkanCookbook { } // namespace VulkanCookbook -#endif // INCREASING_THE_PERFORMANCE_THROUGH_INCREASING_THE_NUMBER_OF_SEPARATELY_RENDERED_FRAMES \ No newline at end of file +#endif // INCREASING_THE_PERFORMANCE_THROUGH_INCREASING_THE_NUMBER_OF_SEPARATELY_RENDERED_FRAMES