aboutsummaryrefslogtreecommitdiff
path: root/scripts/unique_objects_generator.py
diff options
context:
space:
mode:
authorChris Forbes <chrisforbes@google.com>2017-04-16 13:13:17 +1200
committerChris Forbes <chrisf@ijw.co.nz>2017-04-18 07:31:13 +1200
commit7c317df47a96a5d13f4514e65e974ea403d6a6b0 (patch)
tree9676ff9a9dfe5cd0e3f9ef414bf226000deda725 /scripts/unique_objects_generator.py
parent7b59978c199c64bd8428cdae570f989002a7a2a4 (diff)
downloadusermoji-7c317df47a96a5d13f4514e65e974ea403d6a6b0.tar.xz
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 <chrisforbes@google.com>
Diffstat (limited to 'scripts/unique_objects_generator.py')
-rw-r--r--scripts/unique_objects_generator.py1
1 files changed, 1 insertions, 0 deletions
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',