From 2613539ff45a29d47ca3ad8166373223515675fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Wed, 28 Jun 2023 17:03:08 +0200 Subject: [PATCH] Change move assignment operators of vk::raii handles from using std::exchange to using std::swap (#1607) --- .../SurfaceCapabilities.cpp | 11 - VulkanHppGenerator.cpp | 21 +- vulkan/vulkan_raii.hpp | 413 ++++++++---------- 3 files changed, 191 insertions(+), 254 deletions(-) diff --git a/RAII_Samples/SurfaceCapabilities/SurfaceCapabilities.cpp b/RAII_Samples/SurfaceCapabilities/SurfaceCapabilities.cpp index 5766ae4..73f15dd 100644 --- a/RAII_Samples/SurfaceCapabilities/SurfaceCapabilities.cpp +++ b/RAII_Samples/SurfaceCapabilities/SurfaceCapabilities.cpp @@ -88,7 +88,6 @@ int main( int /*argc*/, char ** /*argv*/ ) .getSurfaceCapabilities2KHR( { *surfaceData.surface } ); vk::SurfaceCapabilitiesKHR const & surfaceCapabilities = surfaceCapabilities2.get().surfaceCapabilities; @@ -112,16 +111,6 @@ int main( int /*argc*/, char ** /*argv*/ ) std::cout << "\n"; } - if ( vk::su::contains( extensionProperties, "VK_EXT_full_screen_exclusive" ) ) - { - vk::SurfaceCapabilitiesFullScreenExclusiveEXT surfaceCapabilitiesFullScreenExclusive = - surfaceCapabilities2.get(); - std::cout << std::string( "\t" ) << "SurfaceCapabilitiesFullScreenExclusiveEXT:\n"; - std::cout << std::string( "\t\t" ) << "fullScreenExclusiveSupported = " << !!surfaceCapabilitiesFullScreenExclusive.fullScreenExclusiveSupported - << "\n"; - std::cout << "\n"; - } - if ( vk::su::contains( extensionProperties, "VK_KHR_surface_protected_capabilities" ) ) { vk::SurfaceProtectedCapabilitiesKHR surfaceProtectedCapabilities = surfaceCapabilities2.get(); diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 3592fdb..acf6712 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -9254,8 +9254,6 @@ std::tuplefirst + "( " + @@ -9291,8 +9289,7 @@ std::tuple