From 7c317df47a96a5d13f4514e65e974ea403d6a6b0 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 16 Apr 2017 13:13:17 +1200 Subject: layers: Special-case UO generation of QueuePresentKHR VkPresentInfo::pResults is an /output/ array. The generated code makes a copy on the way in (pointlessly, but other clients of safe_* might find this reasonable), but neglects to copy it back on the way out. Lift the current code generated for QueuePresentKHR back into the special cases, and add the correct post-call copy. Fixes #1670. V3: Just open-code the loop. I don't want to turn off MSVC's fussy mode, and it's convinced both std::copy and std::copy_n are unsafe with all raw pointers. Signed-off-by: Chris Forbes --- scripts/unique_objects_generator.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/unique_objects_generator.py') diff --git a/scripts/unique_objects_generator.py b/scripts/unique_objects_generator.py index cc1fe85c..8e9cc45b 100644 --- a/scripts/unique_objects_generator.py +++ b/scripts/unique_objects_generator.py @@ -137,6 +137,7 @@ class UniqueObjectsOutputGenerator(OutputGenerator): 'vkCreateSwapchainKHR', 'vkCreateSharedSwapchainsKHR', 'vkGetSwapchainImagesKHR', + 'vkQueuePresentKHR', 'vkEnumerateInstanceLayerProperties', 'vkEnumerateDeviceLayerProperties', 'vkEnumerateInstanceExtensionProperties', -- cgit v1.2.3