blob: 9c9324e3c6cca996b3744237685157865f9ba3fc [file] [log] [blame]
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001#!/usr/bin/python -i
2
3import sys
4import xml.etree.ElementTree as etree
Mark Lobodzinski8c9633d2017-06-05 13:50:10 -06005try:
6 import urllib.request as urllib2
7except ImportError:
8 import urllib2
Tobin Ehlis98d109a2017-05-11 14:42:38 -06009import json
10
11#############################
12# vuid_mapping.py script
13#
14# VUID Mapping Details
15# The Vulkan spec creation process automatically generates string-based unique IDs for each Valid Usage statement
16# For implicit VUs, the format is VUID-<func|struct>-[<param_name>]-<type>
17# func|struct is the name of the API function or structure that the VU is under
18# param_name is an optional entry with the name of the function or struct parameter
19# type is the type of implicit check, see table below for possible values
20#
21# For explicit VUs, the format is VUID-<func|struct>-[<param_name>]-<uniqueid>
22# All fields are the same as implicit VUs except the last parameter is a globally unique integer ID instead of a string type
23#
24# The values below are used to map the strings into unique integers that are used for the unique enum values returned by debug callbacks
25# Here's how the bits of the numerical unique ID map to the ID type and values
26# 31:21 - 11 bits that map to unique value for the function/struct
27# 20:1 - 20 bits that map to param-type combo for implicit VU and uniqueid for explicit VU
28# 0 - 1 bit on for implicit VU or off for explicit VU
29#
30# For implicit VUs 20:1 is split into 20:9 for parameter and 8:1 for type
31FUNC_STRUCT_SHIFT = 21
32EXPLICIT_ID_SHIFT = 1
33IMPLICIT_TYPE_SHIFT = 1
34IMPLICIT_PARAM_SHIFT = 9
35explicit_bit0 = 0x0 # All explicit IDs are even
36implicit_bit0 = 0x1 # All implicit IDs are odd
37# Implicit type values, shifted up by ID_SHIFT bits in final ID
38implicit_type_map = {
39'parameter' : 0,
40'requiredbitmask' : 1,
41'zerobitmask' : 2,
42'parent' : 3,
43'commonparent' : 4,
44'sType' : 5,
45'pNext' : 6,
46'unique' : 7,
47'queuetype' : 8,
48'recording' : 9,
49'cmdpool' : 10,
50'renderpass' : 11,
51'bufferlevel' : 12,
52'arraylength' : 13,
53}
54# Function/struct value mappings, shifted up FUNC_STRUCT_SHIFT bits in final ID
55func_struct_id_map = {
56'VkAcquireNextImageInfoKHX' : 0,
57'VkAllocationCallbacks' : 1,
58'VkAndroidSurfaceCreateInfoKHR' : 2,
59'VkApplicationInfo' : 3,
60'VkAttachmentDescription' : 4,
61'VkAttachmentReference' : 5,
Lenny Komowb79f04a2017-09-18 17:07:00 -060062'VkBindBufferMemoryInfoKHR' : 6,
63'VkBindImageMemoryInfoKHR' : 7,
Tobin Ehlis98d109a2017-05-11 14:42:38 -060064'VkBindImageMemorySwapchainInfoKHX' : 8,
65'VkBindSparseInfo' : 9,
66'VkBufferCreateInfo' : 10,
67'VkBufferImageCopy' : 11,
68'VkBufferMemoryBarrier' : 12,
69'VkBufferViewCreateInfo' : 13,
70'VkClearAttachment' : 14,
71'VkClearDepthStencilValue' : 15,
72'VkClearValue' : 16,
73'VkCmdProcessCommandsInfoNVX' : 17,
74'VkCmdReserveSpaceForCommandsInfoNVX' : 18,
75'VkCommandBufferAllocateInfo' : 19,
76'VkCommandBufferBeginInfo' : 20,
77'VkCommandBufferInheritanceInfo' : 21,
78'VkCommandPoolCreateInfo' : 22,
79'VkComponentMapping' : 23,
80'VkComputePipelineCreateInfo' : 24,
81'VkCopyDescriptorSet' : 25,
Mark Youngabc2d6e2017-07-07 07:59:56 -060082'VkD3D12FenceSubmitInfoKHR' : 26,
Tobin Ehlis98d109a2017-05-11 14:42:38 -060083'VkDebugMarkerMarkerInfoEXT' : 27,
84'VkDebugMarkerObjectNameInfoEXT' : 28,
85'VkDebugMarkerObjectTagInfoEXT' : 29,
86'VkDebugReportCallbackCreateInfoEXT' : 30,
87'VkDedicatedAllocationBufferCreateInfoNV' : 31,
88'VkDedicatedAllocationImageCreateInfoNV' : 32,
89'VkDedicatedAllocationMemoryAllocateInfoNV' : 33,
90'VkDescriptorBufferInfo' : 34,
91'VkDescriptorImageInfo' : 35,
92'VkDescriptorPoolCreateInfo' : 36,
93'VkDescriptorPoolSize' : 37,
94'VkDescriptorSetAllocateInfo' : 38,
95'VkDescriptorSetLayoutBinding' : 39,
96'VkDescriptorSetLayoutCreateInfo' : 40,
97'VkDescriptorUpdateTemplateCreateInfoKHR' : 41,
98'VkDescriptorUpdateTemplateEntryKHR' : 42,
99'VkDeviceCreateInfo' : 43,
100'VkDeviceEventInfoEXT' : 44,
101'VkDeviceGeneratedCommandsFeaturesNVX' : 45,
102'VkDeviceGeneratedCommandsLimitsNVX' : 46,
103'VkDeviceGroupBindSparseInfoKHX' : 47,
104'VkDeviceGroupCommandBufferBeginInfoKHX' : 48,
105'VkDeviceGroupDeviceCreateInfoKHX' : 49,
106'VkDeviceGroupPresentInfoKHX' : 50,
107'VkDeviceGroupRenderPassBeginInfoKHX' : 51,
108'VkDeviceGroupSubmitInfoKHX' : 52,
109'VkDeviceGroupSwapchainCreateInfoKHX' : 53,
110'VkDeviceQueueCreateInfo' : 54,
111'VkDispatchIndirectCommand' : 55,
112'VkDisplayEventInfoEXT' : 56,
113'VkDisplayModeCreateInfoKHR' : 57,
114'VkDisplayPowerInfoEXT' : 58,
115'VkDisplayPresentInfoKHR' : 59,
116'VkDisplaySurfaceCreateInfoKHR' : 60,
117'VkDrawIndexedIndirectCommand' : 61,
118'VkDrawIndirectCommand' : 62,
119'VkEventCreateInfo' : 63,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600120'VkExportMemoryAllocateInfoKHR' : 64,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600121'VkExportMemoryAllocateInfoNV' : 65,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600122'VkExportMemoryWin32HandleInfoKHR' : 66,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600123'VkExportMemoryWin32HandleInfoNV' : 67,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600124'VkExportSemaphoreCreateInfoKHR' : 68,
125'VkExportSemaphoreWin32HandleInfoKHR' : 69,
126'VkExternalMemoryBufferCreateInfoKHR' : 70,
127'VkExternalMemoryImageCreateInfoKHR' : 71,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600128'VkExternalMemoryImageCreateInfoNV' : 72,
129'VkFenceCreateInfo' : 73,
130'VkFramebufferCreateInfo' : 74,
131'VkGraphicsPipelineCreateInfo' : 75,
132'VkIOSSurfaceCreateInfoMVK' : 76,
133'VkImageBlit' : 77,
134'VkImageCopy' : 78,
135'VkImageCreateInfo' : 79,
136'VkImageMemoryBarrier' : 80,
137'VkImageResolve' : 81,
138'VkImageSubresource' : 82,
139'VkImageSubresourceLayers' : 83,
140'VkImageSubresourceRange' : 84,
141'VkImageSwapchainCreateInfoKHX' : 85,
142'VkImageViewCreateInfo' : 86,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600143'VkImportMemoryFdInfoKHR' : 87,
144'VkImportMemoryWin32HandleInfoKHR' : 88,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600145'VkImportMemoryWin32HandleInfoNV' : 89,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600146'VkImportSemaphoreFdInfoKHR' : 90,
147'VkImportSemaphoreWin32HandleInfoKHR' : 91,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600148'VkIndirectCommandsLayoutCreateInfoNVX' : 92,
149'VkIndirectCommandsLayoutTokenNVX' : 93,
150'VkIndirectCommandsTokenNVX' : 94,
151'VkInstanceCreateInfo' : 95,
152'VkMacOSSurfaceCreateInfoMVK' : 96,
153'VkMappedMemoryRange' : 97,
154'VkMemoryAllocateFlagsInfoKHX' : 98,
155'VkMemoryAllocateInfo' : 99,
156'VkMemoryBarrier' : 100,
157'VkMirSurfaceCreateInfoKHR' : 101,
158'VkObjectTableCreateInfoNVX' : 102,
159'VkObjectTableDescriptorSetEntryNVX' : 103,
160'VkObjectTableEntryNVX' : 104,
161'VkObjectTableIndexBufferEntryNVX' : 105,
162'VkObjectTablePipelineEntryNVX' : 106,
163'VkObjectTablePushConstantEntryNVX' : 107,
164'VkObjectTableVertexBufferEntryNVX' : 108,
165'VkPhysicalDeviceDiscardRectanglePropertiesEXT' : 109,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600166'VkPhysicalDeviceExternalBufferInfoKHR' : 110,
167'VkPhysicalDeviceExternalImageFormatInfoKHR' : 111,
168'VkPhysicalDeviceExternalSemaphoreInfoKHR' : 112,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600169'VkPhysicalDeviceFeatures' : 113,
170'VkPhysicalDeviceFeatures2KHR' : 114,
171'VkPhysicalDeviceImageFormatInfo2KHR' : 115,
172'VkPhysicalDeviceMultiviewFeaturesKHX' : 116,
173'VkPhysicalDevicePushDescriptorPropertiesKHR' : 117,
174'VkPhysicalDeviceSparseImageFormatInfo2KHR' : 118,
175'VkPhysicalDeviceSurfaceInfo2KHR' : 119,
176'VkPipelineCacheCreateInfo' : 120,
177'VkPipelineColorBlendAttachmentState' : 121,
178'VkPipelineColorBlendStateCreateInfo' : 122,
179'VkPipelineDepthStencilStateCreateInfo' : 123,
180'VkPipelineDiscardRectangleStateCreateInfoEXT' : 124,
181'VkPipelineDynamicStateCreateInfo' : 125,
182'VkPipelineInputAssemblyStateCreateInfo' : 126,
183'VkPipelineLayoutCreateInfo' : 127,
184'VkPipelineMultisampleStateCreateInfo' : 128,
185'VkPipelineRasterizationStateCreateInfo' : 129,
186'VkPipelineRasterizationStateRasterizationOrderAMD' : 130,
187'VkPipelineShaderStageCreateInfo' : 131,
188'VkPipelineTessellationStateCreateInfo' : 132,
189'VkPipelineVertexInputStateCreateInfo' : 133,
190'VkPipelineViewportStateCreateInfo' : 134,
191'VkPipelineViewportSwizzleStateCreateInfoNV' : 135,
192'VkPipelineViewportWScalingStateCreateInfoNV' : 136,
193'VkPresentInfoKHR' : 137,
194'VkPresentRegionKHR' : 138,
195'VkPresentRegionsKHR' : 139,
196'VkPresentTimesInfoGOOGLE' : 140,
197'VkPushConstantRange' : 141,
198'VkQueryPoolCreateInfo' : 142,
199'VkRectLayerKHR' : 143,
200'VkRenderPassBeginInfo' : 144,
201'VkRenderPassCreateInfo' : 145,
202'VkRenderPassMultiviewCreateInfoKHX' : 146,
203'VkSamplerCreateInfo' : 147,
204'VkSemaphoreCreateInfo' : 148,
205'VkShaderModuleCreateInfo' : 149,
206'VkSparseBufferMemoryBindInfo' : 150,
207'VkSparseImageMemoryBind' : 151,
208'VkSparseImageMemoryBindInfo' : 152,
209'VkSparseImageOpaqueMemoryBindInfo' : 153,
210'VkSparseMemoryBind' : 154,
211'VkSpecializationInfo' : 155,
212'VkSpecializationMapEntry' : 156,
213'VkStencilOpState' : 157,
214'VkSubmitInfo' : 158,
215'VkSubpassDependency' : 159,
216'VkSubpassDescription' : 160,
217'VkSurfaceCapabilities2EXT' : 161,
218'VkSwapchainCounterCreateInfoEXT' : 162,
219'VkSwapchainCreateInfoKHR' : 163,
220'VkValidationFlagsEXT' : 164,
221'VkVertexInputAttributeDescription' : 165,
222'VkVertexInputBindingDescription' : 166,
223'VkViSurfaceCreateInfoNN' : 167,
224'VkViewport' : 168,
225'VkViewportSwizzleNV' : 169,
226'VkWaylandSurfaceCreateInfoKHR' : 170,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600227'VkWin32KeyedMutexAcquireReleaseInfoKHR' : 171,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600228'VkWin32KeyedMutexAcquireReleaseInfoNV' : 172,
229'VkWin32SurfaceCreateInfoKHR' : 173,
230'VkWriteDescriptorSet' : 174,
231'VkXcbSurfaceCreateInfoKHR' : 175,
232'VkXlibSurfaceCreateInfoKHR' : 176,
233'vkAcquireNextImage2KHX' : 177,
234'vkAcquireNextImageKHR' : 178,
235'vkAcquireXlibDisplayEXT' : 179,
236'vkAllocateCommandBuffers' : 180,
237'vkAllocateDescriptorSets' : 181,
238'vkAllocateMemory' : 182,
239'vkBeginCommandBuffer' : 183,
240'vkBindBufferMemory' : 184,
Lenny Komowb79f04a2017-09-18 17:07:00 -0600241'vkBindBufferMemory2KHR' : 185,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600242'vkBindImageMemory' : 186,
Lenny Komowb79f04a2017-09-18 17:07:00 -0600243'vkBindImageMemory2KHR' : 187,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600244'vkCmdBeginQuery' : 188,
245'vkCmdBeginRenderPass' : 189,
246'vkCmdBindDescriptorSets' : 190,
247'vkCmdBindIndexBuffer' : 191,
248'vkCmdBindPipeline' : 192,
249'vkCmdBindVertexBuffers' : 193,
250'vkCmdBlitImage' : 194,
251'vkCmdClearAttachments' : 195,
252'vkCmdClearColorImage' : 196,
253'vkCmdClearDepthStencilImage' : 197,
254'vkCmdCopyBuffer' : 198,
255'vkCmdCopyBufferToImage' : 199,
256'vkCmdCopyImage' : 200,
257'vkCmdCopyImageToBuffer' : 201,
258'vkCmdCopyQueryPoolResults' : 202,
259'vkCmdDebugMarkerBeginEXT' : 203,
260'vkCmdDebugMarkerEndEXT' : 204,
261'vkCmdDebugMarkerInsertEXT' : 205,
262'vkCmdDispatch' : 206,
263'vkCmdDispatchBaseKHX' : 207,
264'vkCmdDispatchIndirect' : 208,
265'vkCmdDraw' : 209,
266'vkCmdDrawIndexed' : 210,
267'vkCmdDrawIndexedIndirect' : 211,
268'vkCmdDrawIndexedIndirectCountAMD' : 212,
269'vkCmdDrawIndirect' : 213,
270'vkCmdDrawIndirectCountAMD' : 214,
271'vkCmdEndQuery' : 215,
272'vkCmdEndRenderPass' : 216,
273'vkCmdExecuteCommands' : 217,
274'vkCmdFillBuffer' : 218,
275'vkCmdNextSubpass' : 219,
276'vkCmdPipelineBarrier' : 220,
277'vkCmdProcessCommandsNVX' : 221,
278'vkCmdPushConstants' : 222,
279'vkCmdPushDescriptorSetKHR' : 223,
280'vkCmdPushDescriptorSetWithTemplateKHR' : 224,
281'vkCmdReserveSpaceForCommandsNVX' : 225,
282'vkCmdResetEvent' : 226,
283'vkCmdResetQueryPool' : 227,
284'vkCmdResolveImage' : 228,
285'vkCmdSetBlendConstants' : 229,
286'vkCmdSetDepthBias' : 230,
287'vkCmdSetDepthBounds' : 231,
288'vkCmdSetDeviceMaskKHX' : 232,
289'vkCmdSetDiscardRectangleEXT' : 233,
290'vkCmdSetEvent' : 234,
291'vkCmdSetLineWidth' : 235,
292'vkCmdSetScissor' : 236,
293'vkCmdSetStencilCompareMask' : 237,
294'vkCmdSetStencilReference' : 238,
295'vkCmdSetStencilWriteMask' : 239,
296'vkCmdSetViewport' : 240,
297'vkCmdSetViewportWScalingNV' : 241,
298'vkCmdUpdateBuffer' : 242,
299'vkCmdWaitEvents' : 243,
300'vkCmdWriteTimestamp' : 244,
301'vkCreateAndroidSurfaceKHR' : 245,
302'vkCreateBuffer' : 246,
303'vkCreateBufferView' : 247,
304'vkCreateCommandPool' : 248,
305'vkCreateComputePipelines' : 249,
306'vkCreateDebugReportCallbackEXT' : 250,
307'vkCreateDescriptorPool' : 251,
308'vkCreateDescriptorSetLayout' : 252,
309'vkCreateDescriptorUpdateTemplateKHR' : 253,
310'vkCreateDevice' : 254,
311'vkCreateDisplayModeKHR' : 255,
312'vkCreateDisplayPlaneSurfaceKHR' : 256,
313'vkCreateEvent' : 257,
314'vkCreateFence' : 258,
315'vkCreateFramebuffer' : 259,
316'vkCreateGraphicsPipelines' : 260,
317'vkCreateIOSSurfaceMVK' : 261,
318'vkCreateImage' : 262,
319'vkCreateImageView' : 263,
320'vkCreateIndirectCommandsLayoutNVX' : 264,
321'vkCreateInstance' : 265,
322'vkCreateMacOSSurfaceMVK' : 266,
323'vkCreateMirSurfaceKHR' : 267,
324'vkCreateObjectTableNVX' : 268,
325'vkCreatePipelineCache' : 269,
326'vkCreatePipelineLayout' : 270,
327'vkCreateQueryPool' : 271,
328'vkCreateRenderPass' : 272,
329'vkCreateSampler' : 273,
330'vkCreateSemaphore' : 274,
331'vkCreateShaderModule' : 275,
332'vkCreateSharedSwapchainsKHR' : 276,
333'vkCreateSwapchainKHR' : 277,
334'vkCreateViSurfaceNN' : 278,
335'vkCreateWaylandSurfaceKHR' : 279,
336'vkCreateWin32SurfaceKHR' : 280,
337'vkCreateXcbSurfaceKHR' : 281,
338'vkCreateXlibSurfaceKHR' : 282,
339'vkDebugMarkerSetObjectNameEXT' : 283,
340'vkDebugMarkerSetObjectTagEXT' : 284,
341'vkDebugReportMessageEXT' : 285,
342'vkDestroyBuffer' : 286,
343'vkDestroyBufferView' : 287,
344'vkDestroyCommandPool' : 288,
345'vkDestroyDebugReportCallbackEXT' : 289,
346'vkDestroyDescriptorPool' : 290,
347'vkDestroyDescriptorSetLayout' : 291,
348'vkDestroyDescriptorUpdateTemplateKHR' : 292,
349'vkDestroyDevice' : 293,
350'vkDestroyEvent' : 294,
351'vkDestroyFence' : 295,
352'vkDestroyFramebuffer' : 296,
353'vkDestroyImage' : 297,
354'vkDestroyImageView' : 298,
355'vkDestroyIndirectCommandsLayoutNVX' : 299,
356'vkDestroyInstance' : 300,
357'vkDestroyObjectTableNVX' : 301,
358'vkDestroyPipeline' : 302,
359'vkDestroyPipelineCache' : 303,
360'vkDestroyPipelineLayout' : 304,
361'vkDestroyQueryPool' : 305,
362'vkDestroyRenderPass' : 306,
363'vkDestroySampler' : 307,
364'vkDestroySemaphore' : 308,
365'vkDestroyShaderModule' : 309,
366'vkDestroySurfaceKHR' : 310,
367'vkDestroySwapchainKHR' : 311,
368'vkDeviceWaitIdle' : 312,
369'vkDisplayPowerControlEXT' : 313,
370'vkEndCommandBuffer' : 314,
371'vkEnumerateDeviceExtensionProperties' : 315,
372'vkEnumerateDeviceLayerProperties' : 316,
373'vkEnumerateInstanceExtensionProperties' : 317,
374'vkEnumerateInstanceLayerProperties' : 318,
375'vkEnumeratePhysicalDeviceGroupsKHX' : 319,
376'vkEnumeratePhysicalDevices' : 320,
377'vkFlushMappedMemoryRanges' : 321,
378'vkFreeCommandBuffers' : 322,
379'vkFreeDescriptorSets' : 323,
380'vkFreeMemory' : 324,
381'vkGetBufferMemoryRequirements' : 325,
382'vkGetDeviceGroupPeerMemoryFeaturesKHX' : 326,
383'vkGetDeviceGroupPresentCapabilitiesKHX' : 327,
384'vkGetDeviceGroupSurfacePresentModesKHX' : 328,
385'vkGetDeviceMemoryCommitment' : 329,
386'vkGetDeviceProcAddr' : 330,
387'vkGetDeviceQueue' : 331,
388'vkGetDisplayModePropertiesKHR' : 332,
389'vkGetDisplayPlaneCapabilitiesKHR' : 333,
390'vkGetDisplayPlaneSupportedDisplaysKHR' : 334,
391'vkGetEventStatus' : 335,
392'vkGetFenceStatus' : 336,
393'vkGetImageMemoryRequirements' : 337,
394'vkGetImageSparseMemoryRequirements' : 338,
395'vkGetImageSubresourceLayout' : 339,
396'vkGetInstanceProcAddr' : 340,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600397'vkGetMemoryFdKHR' : 341,
398'vkGetMemoryFdPropertiesKHR' : 342,
399'vkGetMemoryWin32HandleKHR' : 343,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600400'vkGetMemoryWin32HandleNV' : 344,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600401'vkGetMemoryWin32HandlePropertiesKHR' : 345,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600402'vkGetPastPresentationTimingGOOGLE' : 346,
403'vkGetPhysicalDeviceDisplayPlanePropertiesKHR' : 347,
404'vkGetPhysicalDeviceDisplayPropertiesKHR' : 348,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600405'vkGetPhysicalDeviceExternalBufferPropertiesKHR' : 349,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600406'vkGetPhysicalDeviceExternalImageFormatPropertiesNV' : 350,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600407'vkGetPhysicalDeviceExternalSemaphorePropertiesKHR' : 351,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600408'vkGetPhysicalDeviceFeatures' : 352,
409'vkGetPhysicalDeviceFeatures2KHR' : 353,
410'vkGetPhysicalDeviceFormatProperties' : 354,
411'vkGetPhysicalDeviceFormatProperties2KHR' : 355,
412'vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX' : 356,
413'vkGetPhysicalDeviceImageFormatProperties' : 357,
414'vkGetPhysicalDeviceImageFormatProperties2KHR' : 358,
415'vkGetPhysicalDeviceMemoryProperties' : 359,
416'vkGetPhysicalDeviceMemoryProperties2KHR' : 360,
417'vkGetPhysicalDeviceMirPresentationSupportKHR' : 361,
418'vkGetPhysicalDevicePresentRectanglesKHX' : 362,
419'vkGetPhysicalDeviceProperties' : 363,
420'vkGetPhysicalDeviceProperties2KHR' : 364,
421'vkGetPhysicalDeviceQueueFamilyProperties' : 365,
422'vkGetPhysicalDeviceQueueFamilyProperties2KHR' : 366,
423'vkGetPhysicalDeviceSparseImageFormatProperties' : 367,
424'vkGetPhysicalDeviceSparseImageFormatProperties2KHR' : 368,
425'vkGetPhysicalDeviceSurfaceCapabilities2EXT' : 369,
426'vkGetPhysicalDeviceSurfaceCapabilities2KHR' : 370,
427'vkGetPhysicalDeviceSurfaceCapabilitiesKHR' : 371,
428'vkGetPhysicalDeviceSurfaceFormats2KHR' : 372,
429'vkGetPhysicalDeviceSurfaceFormatsKHR' : 373,
430'vkGetPhysicalDeviceSurfacePresentModesKHR' : 374,
431'vkGetPhysicalDeviceSurfaceSupportKHR' : 375,
432'vkGetPhysicalDeviceWaylandPresentationSupportKHR' : 376,
433'vkGetPhysicalDeviceWin32PresentationSupportKHR' : 377,
434'vkGetPhysicalDeviceXcbPresentationSupportKHR' : 378,
435'vkGetPhysicalDeviceXlibPresentationSupportKHR' : 379,
436'vkGetPipelineCacheData' : 380,
437'vkGetQueryPoolResults' : 381,
438'vkGetRandROutputDisplayEXT' : 382,
439'vkGetRefreshCycleDurationGOOGLE' : 383,
440'vkGetRenderAreaGranularity' : 384,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600441'vkGetSemaphoreFdKHR' : 385,
442'vkGetSemaphoreWin32HandleKHR' : 386,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600443'vkGetSwapchainCounterEXT' : 387,
444'vkGetSwapchainImagesKHR' : 388,
445'vkGetSwapchainStatusKHR' : 389,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600446'vkImportSemaphoreFdKHR' : 390,
447'vkImportSemaphoreWin32HandleKHR' : 391,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600448'vkInvalidateMappedMemoryRanges' : 392,
449'vkMapMemory' : 393,
450'vkMergePipelineCaches' : 394,
451'vkQueueBindSparse' : 395,
452'vkQueuePresentKHR' : 396,
453'vkQueueSubmit' : 397,
454'vkQueueWaitIdle' : 398,
455'vkRegisterDeviceEventEXT' : 399,
456'vkRegisterDisplayEventEXT' : 400,
457'vkRegisterObjectsNVX' : 401,
458'vkReleaseDisplayEXT' : 402,
459'vkResetCommandBuffer' : 403,
460'vkResetCommandPool' : 404,
461'vkResetDescriptorPool' : 405,
462'vkResetEvent' : 406,
463'vkResetFences' : 407,
464'vkSetEvent' : 408,
465'vkSetHdrMetadataEXT' : 409,
466'vkTrimCommandPoolKHR' : 410,
467'vkUnmapMemory' : 411,
468'vkUnregisterObjectsNVX' : 412,
469'vkUpdateDescriptorSetWithTemplateKHR' : 413,
470'vkUpdateDescriptorSets' : 414,
471'vkWaitForFences' : 415,
Mark Lobodzinski52295372017-06-21 11:54:54 -0600472'VkPhysicalDeviceProperties2KHR' : 416,
473'VkFormatProperties2KHR' : 417,
474'VkImageFormatProperties2KHR' : 418,
475'VkPhysicalDeviceMemoryProperties2KHR' : 419,
476'VkSurfaceCapabilities2KHR' : 420,
477'VkDeviceGroupPresentCapabilitiesKHX' : 421,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600478'VkExternalBufferPropertiesKHR' : 422,
479'VkMemoryWin32HandlePropertiesKHR' : 423,
480'VkMemoryFdPropertiesKHR' : 424,
481'VkExternalSemaphorePropertiesKHR' : 425,
Mark Lobodzinskida9de782017-06-26 13:05:22 -0600482'VkQueueFamilyProperties2KHR' : 426,
483'VkSparseImageFormatProperties2KHR' : 427,
484'VkSurfaceFormat2KHR' : 428,
485'VkTextureLODGatherFormatPropertiesAMD' : 429,
486'VkPhysicalDeviceMultiviewPropertiesKHX' : 430,
487'VkPhysicalDeviceGroupPropertiesKHX' : 431,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600488'VkExternalImageFormatPropertiesKHR' : 432,
489'VkPhysicalDeviceIDPropertiesKHR' : 433,
Mark Lobodzinskida9de782017-06-26 13:05:22 -0600490'VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX' : 434,
491'VkHdrMetadataEXT' : 435,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600492'VkExternalMemoryPropertiesKHR' : 436,
Mark Lobodzinski4e39cc62017-06-27 13:21:03 -0600493'VkFormatProperties' : 437,
494'VkImageFormatProperties' : 438,
495'VkPhysicalDeviceLimits' : 439,
496'VkQueueFamilyProperties' : 440,
497'VkMemoryType' : 441,
498'VkMemoryHeap' : 442,
499'VkSparseImageFormatProperties' : 443,
500'VkSurfaceCapabilitiesKHR' : 444,
501'VkDisplayPropertiesKHR' : 445,
502'VkDisplayPlaneCapabilitiesKHR' : 446,
503'VkSharedPresentSurfaceCapabilitiesKHR' : 447,
504'VkExternalImageFormatPropertiesNV' : 448,
Mark Lobodzinskie5b2b712017-06-28 14:58:27 -0600505'VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT' : 449,
506'VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT' : 450,
507'VkPhysicalDeviceSamplerFilterMinmaxPropertiesEXT' : 451,
508'VkPipelineColorBlendAdvancedStateCreateInfoEXT' : 452,
509'VkPipelineCoverageModulationStateCreateInfoNV' : 453,
510'VkPipelineCoverageToColorStateCreateInfoNV' : 454,
511'VkSamplerReductionModeCreateInfoEXT' : 455,
Mark Lobodzinski42eb3c32017-06-28 11:47:22 -0600512'VkPhysicalDeviceProperties' : 456,
513'VkSurfaceFormatKHR' : 457,
Mark Youngabc2d6e2017-07-07 07:59:56 -0600514'VkExportFenceCreateInfoKHR' : 458,
515'VkPhysicalDeviceExternalFenceInfoKHR' : 459,
516'VkExternalFencePropertiesKHR' : 460,
517'vkGetPhysicalDeviceExternalFencePropertiesKHR' : 461,
518'VkImportFenceFdInfoKHR' : 462,
519'VkFenceGetFdInfoKHR' : 463,
520'vkImportFenceFdKHR' : 464,
521'vkGetFenceFdKHR' : 465,
522'VkImportFenceWin32HandleInfoKHR' : 466,
523'VkExportFenceWin32HandleInfoKHR' : 467,
524'VkFenceGetWin32HandleInfoKHR' : 468,
525'vkImportFenceWin32HandleKHR' : 469,
526'vkGetFenceWin32HandleKHR' : 470,
527'VkSemaphoreGetFdInfoKHR' : 471,
528'VkSemaphoreGetWin32HandleInfoKHR' : 472,
529'VkMemoryGetFdInfoKHR' : 473,
530'VkMemoryGetWin32HandleInfoKHR' : 474,
531'VkMemoryDedicatedRequirementsKHR' : 475,
532'VkMemoryDedicatedAllocateInfoKHR' : 476,
533'VkBufferMemoryRequirementsInfo2KHR' : 477,
534'VkImageMemoryRequirementsInfo2KHR' : 478,
535'VkImageSparseMemoryRequirementsInfo2KHR' : 479,
536'VkMemoryRequirements2KHR' : 480,
537'VkSparseImageMemoryRequirements2KHR' : 481,
538'vkGetImageMemoryRequirements2KHR' : 482,
539'vkGetBufferMemoryRequirements2KHR' : 483,
540'vkGetImageSparseMemoryRequirements2KHR' : 484,
541'VkPhysicalDevice16BitStorageFeaturesKHR' : 485,
542'VkPhysicalDeviceVariablePointerFeaturesKHR' : 486,
Mike Schuchardta6b8bdb2017-09-05 16:10:20 -0600543'VkSampleLocationsInfoEXT' : 487,
544'VkRenderPassSampleLocationsBeginInfoEXT' : 488,
545'VkPipelineSampleLocationsStateCreateInfoEXT' : 489,
546'VkPhysicalDeviceSampleLocationsPropertiesEXT' : 490,
547'VkMultisamplePropertiesEXT' : 491,
548'vkGetPhysicalDeviceMultisamplePropertiesEXT' : 492,
549'VkValidationCacheCreateInfoEXT' : 493,
550'VkShaderModuleValidationCacheCreateInfoEXT' : 494,
551'vkCreateValidationCacheEXT' : 495,
552'vkGetValidationCacheDataEXT' : 496,
553'vkCmdSetSampleLocationsEXT' : 497,
554'vkDestroyValidationCacheEXT' : 498,
555'vkMergeValidationCachesEXT' : 499,
556'VkAttachmentSampleLocationsEXT' : 500,
557'VkSubpassSampleLocationsEXT' : 501,
Lenny Komowb79f04a2017-09-18 17:07:00 -0600558'VkPhysicalDevicePointClippingPropertiesKHR' : 502,
559'VkInputAttachmentAspectReferenceKHR' : 503,
560'VkRenderPassInputAttachmentAspectCreateInfoKHR' : 504,
561'VkImageViewUsageCreateInfoKHR' : 505,
562'VkPipelineTessellationDomainOriginStateCreateInfoKHR' : 506,
563'VkImageFormatListCreateInfoKHR' : 507,
564'VkSamplerYcbcrConversionCreateInfoKHR' : 508,
565'VkBindImagePlaneMemoryInfoKHR' : 509,
566'VkImagePlaneMemoryRequirementsInfoKHR' : 510,
567'vkCreateSamplerYcbcrConversionKHR' : 511,
568'VkBindBufferMemoryDeviceGroupInfoKHX' : 512,
569'VkBindImageMemoryDeviceGroupInfoKHX' : 513,
570'vkDestroySamplerYcbcrConversionKHR' : 514,
571'VkPhysicalDeviceSamplerYcbcrConversionFeaturesKHR' : 515,
572'VkSamplerYcbcrConversionImageFormatPropertiesKHR' : 516,
573'VkSamplerYcbcrConversionInfoKHR' : 517,
Mark Lobodzinskia7121692017-10-23 11:31:43 -0600574'VkDeviceQueueGlobalPriorityCreateInfoEXT' : 518,
575'vkGetShaderInfoAMD' : 519,
Mark Lobodzinski2ffbeb82017-10-23 09:23:06 -0600576'VkShaderStatisticsInfoAMD' : 520,
Mark Lobodzinski417d5702017-11-27 12:00:45 -0700577'VkImportMemoryHostPointerInfoEXT' : 521,
578'VkMemoryHostPointerPropertiesEXT' : 522,
579'VkPhysicalDeviceExternalMemoryHostPropertiesEXT' : 523,
580'vkGetMemoryHostPointerPropertiesEXT' : 524,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600581### ADD New func/struct mappings above this line
582}
583# Mapping of params to unique IDs
584implicit_param_map = {
585'a' : 0,
586'addressModeU' : 1,
587'addressModeV' : 2,
588'addressModeW' : 3,
589'alphaBlendOp' : 4,
590'alphaMode' : 5,
591'aspectMask' : 6,
592'attachmentCount' : 7,
593'b' : 8,
594'back' : 9,
595'bindCount' : 10,
596'bindInfoCount' : 11,
597'bindingCount' : 12,
598'buffer' : 13,
599'bufferView' : 14,
600'callback' : 15,
601'colorBlendOp' : 16,
602'colorWriteMask' : 17,
603'commandBuffer' : 18,
604'commandBufferCount' : 19,
605'commandPool' : 20,
606'compareOp' : 21,
607'components' : 22,
608'compositeAlpha' : 23,
609'connection' : 24,
610'contents' : 25,
611'countBuffer' : 26,
612'counter' : 27,
613'createInfoCount' : 28,
614'cullMode' : 29,
615'dataSize' : 30,
616'dependencyFlags' : 31,
617'depthCompareOp' : 32,
618'depthFailOp' : 33,
619'descriptorCount' : 34,
620'descriptorPool' : 35,
621'descriptorSet' : 36,
622'descriptorSetCount' : 37,
623'descriptorSetLayout' : 38,
624'descriptorType' : 39,
625'descriptorUpdateEntryCount' : 40,
626'descriptorUpdateTemplate' : 41,
627'descriptorWriteCount' : 42,
628'device' : 43,
629'deviceEvent' : 44,
630'disabledValidationCheckCount' : 45,
631'discardRectangleCount' : 46,
632'discardRectangleMode' : 47,
633'display' : 48,
634'displayEvent' : 49,
635'displayMode' : 50,
636'dpy' : 51,
637'dstAccessMask' : 52,
638'dstAlphaBlendFactor' : 53,
639'dstBuffer' : 54,
640'dstCache' : 55,
641'dstColorBlendFactor' : 56,
642'dstImage' : 57,
643'dstImageLayout' : 58,
644'dstSet' : 59,
645'dstStageMask' : 60,
646'dstSubresource' : 61,
647'dynamicStateCount' : 62,
648'event' : 63,
649'eventCount' : 64,
650'externalHandleType' : 65,
651'faceMask' : 66,
652'failOp' : 67,
653'fence' : 68,
654'fenceCount' : 69,
655'filter' : 70,
656'finalLayout' : 71,
657'flags' : 72,
658'format' : 73,
659'framebuffer' : 74,
660'front' : 75,
661'frontFace' : 76,
662'g' : 77,
663'handleType' : 78,
664'handleTypes' : 79,
665'image' : 80,
666'imageColorSpace' : 81,
667'imageFormat' : 82,
668'imageLayout' : 83,
669'imageSharingMode' : 84,
670'imageSubresource' : 85,
671'imageType' : 86,
672'imageUsage' : 87,
673'imageView' : 88,
674'indexType' : 89,
675'indirectCommandsLayout' : 90,
676'indirectCommandsTokenCount' : 91,
677'initialLayout' : 92,
678'inputRate' : 93,
679'instance' : 94,
680'layout' : 95,
681'level' : 96,
682'loadOp' : 97,
683'magFilter' : 98,
684'memory' : 99,
685'memoryRangeCount' : 100,
686'minFilter' : 101,
687'mipmapMode' : 102,
688'mode' : 103,
689'modes' : 104,
690'module' : 105,
691'newLayout' : 106,
692'objectCount' : 107,
693'objectTable' : 108,
694'objectType' : 109,
695'oldLayout' : 110,
696'oldSwapchain' : 111,
697'pAcquireInfo' : 112,
698'pAcquireKeys' : 113,
699'pAcquireSyncs' : 114,
700'pAcquireTimeoutMilliseconds' : 115,
701'pAcquireTimeouts' : 116,
702'pAllocateInfo' : 117,
703'pAllocator' : 118,
704'pApplicationInfo' : 119,
705'pApplicationName' : 120,
706'pAttachments' : 121,
707'pAttributes' : 122,
708'pBeginInfo' : 123,
709'pBindInfo' : 124,
710'pBindInfos' : 125,
711'pBindings' : 126,
712'pBinds' : 127,
713'pBuffer' : 128,
714'pBufferBinds' : 129,
715'pBufferMemoryBarriers' : 130,
716'pBuffers' : 131,
717'pCallback' : 132,
718'pCapabilities' : 133,
719'pCode' : 134,
720'pColor' : 135,
721'pColorAttachments' : 136,
722'pCommandBufferDeviceMasks' : 137,
723'pCommandBuffers' : 138,
724'pCommandPool' : 139,
725'pCommittedMemoryInBytes' : 140,
726'pCorrelationMasks' : 141,
727'pCounterValue' : 142,
728'pCreateInfo' : 143,
729'pCreateInfos' : 144,
730'pData' : 145,
731'pDataSize' : 146,
732'pDependencies' : 147,
733'pDepthStencil' : 148,
734'pDepthStencilAttachment' : 149,
735'pDescriptorCopies' : 150,
736'pDescriptorPool' : 151,
737'pDescriptorSets' : 152,
738'pDescriptorUpdateEntries' : 153,
739'pDescriptorUpdateTemplate' : 154,
740'pDescriptorWrites' : 155,
741'pDevice' : 156,
742'pDeviceEventInfo' : 157,
743'pDeviceGroupPresentCapabilities' : 158,
744'pDeviceIndices' : 159,
745'pDeviceMasks' : 160,
746'pDeviceRenderAreas' : 161,
747'pDisabledValidationChecks' : 162,
748'pDiscardRectangles' : 163,
749'pDisplay' : 164,
750'pDisplayCount' : 165,
751'pDisplayEventInfo' : 166,
752'pDisplayPowerInfo' : 167,
753'pDisplayTimingProperties' : 168,
754'pDisplays' : 169,
755'pDynamicOffsets' : 170,
756'pDynamicState' : 171,
757'pDynamicStates' : 172,
758'pEnabledFeatures' : 173,
759'pEngineName' : 174,
760'pEvent' : 175,
761'pEvents' : 176,
762'pExternalBufferInfo' : 177,
763'pExternalBufferProperties' : 178,
764'pExternalImageFormatProperties' : 179,
765'pExternalSemaphoreInfo' : 180,
766'pExternalSemaphoreProperties' : 181,
767'pFd' : 182,
768'pFeatures' : 183,
769'pFence' : 184,
770'pFences' : 185,
771'pFormatInfo' : 186,
772'pFormatProperties' : 187,
773'pFramebuffer' : 188,
774'pGranularity' : 189,
775'pHandle' : 190,
776'pImage' : 191,
777'pImageBinds' : 192,
778'pImageFormatInfo' : 193,
779'pImageFormatProperties' : 194,
780'pImageIndex' : 195,
781'pImageIndices' : 196,
782'pImageMemoryBarriers' : 197,
783'pImageOpaqueBinds' : 198,
784'pImportSemaphoreFdInfo' : 199,
785'pImportSemaphoreWin32HandleInfo' : 200,
786'pIndirectCommandsLayout' : 201,
787'pIndirectCommandsTokens' : 202,
788'pInitialData' : 203,
789'pInputAssemblyState' : 204,
790'pInputAttachments' : 205,
791'pInstance' : 206,
792'pLayerName' : 207,
793'pLayerPrefix' : 208,
794'pLayout' : 209,
795'pLimits' : 210,
796'pMarkerInfo' : 211,
797'pMarkerName' : 212,
798'pMemory' : 213,
799'pMemoryBarriers' : 214,
800'pMemoryFdProperties' : 215,
801'pMemoryProperties' : 216,
802'pMemoryRanges' : 217,
803'pMemoryRequirements' : 218,
804'pMemoryWin32HandleProperties' : 219,
805'pMessage' : 220,
806'pMetadata' : 221,
807'pMode' : 222,
808'pModes' : 223,
809'pName' : 224,
810'pNameInfo' : 225,
811'pNext' : 226,
812'pObjectEntryCounts' : 227,
813'pObjectEntryTypes' : 228,
814'pObjectEntryUsageFlags' : 229,
815'pObjectIndices' : 230,
816'pObjectName' : 231,
817'pObjectTable' : 232,
818'pOffsets' : 233,
819'pPeerMemoryFeatures' : 234,
820'pPhysicalDeviceCount' : 235,
821'pPhysicalDeviceGroupCount' : 236,
822'pPhysicalDeviceGroupProperties' : 237,
823'pPhysicalDevices' : 238,
824'pPipelineCache' : 239,
825'pPipelineLayout' : 240,
826'pPipelines' : 241,
827'pPoolSizes' : 242,
828'pPresentInfo' : 243,
829'pPresentModeCount' : 244,
830'pPresentModes' : 245,
831'pPresentationTimingCount' : 246,
832'pPresentationTimings' : 247,
833'pPreserveAttachments' : 248,
834'pProcessCommandsInfo' : 249,
835'pProperties' : 250,
836'pPropertyCount' : 251,
837'pPushConstantRanges' : 252,
838'pQueryPool' : 253,
839'pQueue' : 254,
840'pQueueCreateInfos' : 255,
841'pQueueFamilyProperties' : 256,
842'pQueueFamilyPropertyCount' : 257,
843'pQueuePriorities' : 258,
844'pRanges' : 259,
845'pRasterizationState' : 260,
846'pRectCount' : 261,
847'pRectangles' : 262,
848'pRects' : 263,
849'pRegions' : 264,
850'pReleaseKeys' : 265,
851'pReleaseSyncs' : 266,
852'pRenderPass' : 267,
853'pRenderPassBegin' : 268,
854'pReserveSpaceInfo' : 269,
855'pResolveAttachments' : 270,
856'pResults' : 271,
857'pSFRRects' : 272,
858'pSampleMask' : 273,
859'pSampler' : 274,
860'pScissors' : 275,
861'pSemaphore' : 276,
862'pSetLayout' : 277,
863'pSetLayouts' : 278,
864'pShaderModule' : 279,
865'pSignalSemaphoreDeviceIndices' : 280,
866'pSignalSemaphoreValues' : 281,
867'pSignalSemaphores' : 282,
868'pSparseMemoryRequirementCount' : 283,
869'pSparseMemoryRequirements' : 284,
870'pSpecializationInfo' : 285,
871'pSrcCaches' : 286,
872'pStages' : 287,
873'pSubmits' : 288,
874'pSubpasses' : 289,
875'pSubresource' : 290,
876'pSupported' : 291,
877'pSurface' : 292,
878'pSurfaceCapabilities' : 293,
879'pSurfaceFormatCount' : 294,
880'pSurfaceFormats' : 295,
881'pSurfaceInfo' : 296,
882'pSwapchain' : 297,
883'pSwapchainImageCount' : 298,
884'pSwapchainImages' : 299,
885'pSwapchains' : 300,
886'pTag' : 301,
887'pTagInfo' : 302,
888'pTimes' : 303,
889'pTokens' : 304,
890'pValues' : 305,
891'pVertexAttributeDescriptions' : 306,
892'pVertexBindingDescriptions' : 307,
893'pVertexInputState' : 308,
894'pView' : 309,
895'pViewMasks' : 310,
896'pViewOffsets' : 311,
897'pWaitDstStageMask' : 312,
898'pWaitSemaphoreDeviceIndices' : 313,
899'pWaitSemaphoreValues' : 314,
900'pWaitSemaphores' : 315,
901'passOp' : 316,
902'physicalDevice' : 317,
903'pipeline' : 318,
904'pipelineBindPoint' : 319,
905'pipelineCache' : 320,
906'pipelineLayout' : 321,
907'pipelineStage' : 322,
908'polygonMode' : 323,
909'poolSizeCount' : 324,
910'powerState' : 325,
911'ppData' : 326,
912'ppEnabledExtensionNames' : 327,
913'ppEnabledLayerNames' : 328,
914'ppObjectTableEntries' : 329,
915'preTransform' : 330,
916'presentMode' : 331,
917'queryPool' : 332,
918'queryType' : 333,
919'queue' : 334,
920'queueCount' : 335,
921'queueCreateInfoCount' : 336,
922'r' : 337,
923'rangeCount' : 338,
924'rasterizationOrder' : 339,
925'rasterizationSamples' : 340,
926'rectCount' : 341,
927'regionCount' : 342,
928'renderPass' : 343,
929'sType' : 344,
930'sampler' : 345,
931'samples' : 346,
932'scissorCount' : 347,
933'semaphore' : 348,
934'sequencesCountBuffer' : 349,
935'sequencesIndexBuffer' : 350,
936'shaderModule' : 351,
937'sharingMode' : 352,
938'size' : 353,
939'srcAccessMask' : 354,
940'srcAlphaBlendFactor' : 355,
941'srcBuffer' : 356,
942'srcCacheCount' : 357,
943'srcColorBlendFactor' : 358,
944'srcImage' : 359,
945'srcImageLayout' : 360,
946'srcSet' : 361,
947'srcStageMask' : 362,
948'srcSubresource' : 363,
949'stage' : 364,
950'stageCount' : 365,
951'stageFlags' : 366,
952'stageMask' : 367,
953'stencilLoadOp' : 368,
954'stencilStoreOp' : 369,
955'storeOp' : 370,
956'subpassCount' : 371,
957'subresource' : 372,
958'subresourceRange' : 373,
959'surface' : 374,
960'surfaceCounters' : 375,
961'swapchain' : 376,
962'swapchainCount' : 377,
963'tagSize' : 378,
964'targetCommandBuffer' : 379,
965'templateType' : 380,
966'tiling' : 381,
967'tokenCount' : 382,
968'tokenType' : 383,
969'topology' : 384,
970'transform' : 385,
971'type' : 386,
972'usage' : 387,
973'viewType' : 388,
974'viewportCount' : 389,
975'w' : 390,
976'window' : 391,
977'x' : 392,
978'y' : 393,
979'z' : 394,
Mark Lobodzinskicb6f56f2017-06-26 16:04:27 -0600980'externalMemoryFeatures' : 395,
981'compatibleHandleTypes' : 396,
982'exportFromImportedHandleTypes' : 397,
Mark Lobodzinski4e39cc62017-06-27 13:21:03 -0600983'linearTilingFeatures' : 398,
984'optimalTilingFeatures' : 399,
985'bufferFeatures' : 400,
986'sampleCounts' : 401,
987'framebufferColorSampleCounts' : 402,
988'framebufferDepthSampleCounts' : 403,
989'framebufferStencilSampleCounts' : 404,
990'framebufferNoAttachmentsSampleCounts' : 405,
991'sampledImageColorSampleCounts' : 406,
992'sampledImageIntegerSampleCounts' : 407,
993'sampledImageDepthSampleCounts' : 408,
994'sampledImageStencilSampleCounts' : 409,
995'storageImageSampleCounts' : 410,
996'queueFlags' : 411,
997'propertyFlags' : 412,
998'supportedTransforms' : 413,
999'currentTransform' : 414,
1000'supportedCompositeAlpha' : 415,
1001'supportedUsageFlags' : 416,
1002'supportedAlpha' : 417,
1003'sharedPresentSupportedUsageFlags' : 418,
1004'externalSemaphoreFeatures' : 419,
1005'supportedSurfaceCounters' : 420,
Mark Lobodzinskie5b2b712017-06-28 14:58:27 -06001006'blendOverlap' : 421,
1007'coverageModulationMode' : 422,
1008'coverageModulationTableCount' : 423,
1009'reductionMode' : 424,
Mark Lobodzinski63aebd32017-06-28 10:54:26 -06001010'enabledLayerCount' : 425,
1011'enabledExtensionCount' : 426,
1012'waitSemaphoreCount' : 427,
1013'signalSemaphoreCount' : 428,
1014'bufferBindCount' : 429,
1015'imageOpaqueBindCount' : 430,
1016'imageBindCount' : 431,
1017'codeSize' : 432,
1018'initialDataSize' : 433,
1019'vertexBindingDescriptionCount' : 434,
1020'vertexAttributeDescriptionCount' : 435,
1021'setLayoutCount' : 436,
1022'pushConstantRangeCount' : 437,
1023'inputAttachmentCount' : 438,
1024'colorAttachmentCount' : 439,
1025'preserveAttachmentCount' : 440,
1026'dependencyCount' : 441,
1027'dynamicOffsetCount' : 442,
1028'rectangleCount' : 443,
1029'correlationMaskCount' : 444,
1030'acquireCount' : 445,
1031'releaseCount' : 446,
1032'deviceIndexCount' : 447,
1033'SFRRectCount' : 448,
1034'deviceRenderAreaCount' : 449,
1035'physicalDeviceCount' : 450,
1036'waitSemaphoreValuesCount' : 451,
1037'signalSemaphoreValuesCount' : 452,
Mark Lobodzinski42eb3c32017-06-28 11:47:22 -06001038'deviceType' : 453,
1039'colorSpace' : 454,
Mark Lobodzinskie1cce092017-06-28 13:21:27 -06001040'pfnAllocation' : 455,
1041'pfnReallocation' : 556,
1042'pfnFree' : 457,
1043'blendConstants' : 458,
1044'displayName' : 459,
1045'pfnCallback' : 460,
Mark Youngabc2d6e2017-07-07 07:59:56 -06001046'externalFenceFeatures' : 461,
1047'pInfo' : 462,
1048'pGetFdInfo' : 463,
1049'pGetWin32HandleInfo' : 464,
1050'pExternalFenceInfo' : 465,
1051'pExternalFenceProperties' : 466,
1052'pImportFenceProperties' : 467,
1053'pImportFenceFdInfo' : 468,
1054'pImportFenceWin32HandleInfo' : 469,
Mark Lobodzinski92df8b42017-07-20 10:38:46 -06001055'basePipelineHandle' : 470,
1056'pImmutableSamplers' : 471,
1057'pTexelBufferView' : 472,
Mike Schuchardta6b8bdb2017-09-05 16:10:20 -06001058'sampleLocationsPerPixel' : 473,
1059'sampleLocationsCount' : 474,
1060'pSampleLocations' : 475,
1061'attachmentInitialSampleLocationsCount' : 476,
1062'pAttachmentInitialSampleLocations' : 477,
1063'postSubpassSampleLocationsCount' : 478,
1064'pSubpassSampleLocations' : 479,
1065'sampleLocationSampleCounts' : 480,
1066'pValidationCache' : 481,
1067'validationCache' : 482,
1068'sampleLocationsInfo' : 483,
1069'pSampleLocationsInfo' : 484,
1070'pMultisampleProperties' : 485,
Lenny Komowb79f04a2017-09-18 17:07:00 -06001071'pointClippingBehavior' : 486,
1072'aspectReferenceCount' : 487,
1073'pAspectReferences' : 488,
1074'domainOrigin' : 489,
1075'ycbcrModel' : 490,
1076'ycbcrRange' : 491,
1077'xChromaOffset' : 492,
1078'yChromaOffset' : 493,
1079'chromaFilter' : 494,
1080'planeAspect' : 495,
1081'pYcbcrConversion' : 496,
1082'ycbcrConversion' : 497,
1083'pViewFormats' : 498,
1084'conversion' : 499,
Mark Lobodzinskie3f891d2017-10-09 13:06:50 -06001085'pPostSubpassSampleLocations' : 500,
Mark Lobodzinskia7121692017-10-23 11:31:43 -06001086'globalPriority' : 501,
1087'shaderStage' : 502,
1088'infoType' : 503,
1089'pInfoSize' : 504,
Mark Lobodzinski2ffbeb82017-10-23 09:23:06 -06001090'shaderStageMask' : 505,
Mark Lobodzinski417d5702017-11-27 12:00:45 -07001091'pMemoryHostPointerProperties' : 506,
1092'pHostPointer' : 507,
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001093### ADD New implicit param mappings above this line
1094}
1095
1096uniqueid_set = set() # store uniqueid to make sure we don't have duplicates
1097
1098# Convert a string VUID into numerical value
1099# See "VUID Mapping Details" comment above for more info
1100def convertVUID(vuid_string):
1101 """Convert a string-based VUID into a numberical value"""
1102 #func_struct_update = False
1103 #imp_param_update = False
1104 if vuid_string in ['', None]:
1105 return -1
1106 vuid_parts = vuid_string.split('-')
1107 if vuid_parts[1] not in func_struct_id_map:
1108 print ("ERROR: Missing func/struct map value for '%s'!" % (vuid_parts[1]))
1109 print (" TODO: Need to add mapping for this to end of func_struct_id_map")
1110 print (" replace '### ADD New func/struct mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[1], len(func_struct_id_map)))
1111 func_struct_id_map[vuid_parts[1]] = len(func_struct_id_map)
1112 #func_struct_update = True
1113 sys.exit()
1114 uniqueid = func_struct_id_map[vuid_parts[1]] << FUNC_STRUCT_SHIFT
1115 if vuid_parts[-1].isdigit(): # explit VUID has int on the end
1116 explicit_id = int(vuid_parts[-1])
1117 # For explicit case, id is explicit_base + func/struct mapping + unique id
1118 uniqueid = uniqueid + (explicit_id << EXPLICIT_ID_SHIFT) + explicit_bit0
1119 else: # implicit case
1120 if vuid_parts[-1] not in implicit_type_map:
1121 print("ERROR: Missing mapping for implicit type '%s'!\nTODO: Please add new mapping." % (vuid_parts[-1]))
1122 sys.exit()
1123 else:
1124 param_id = 0 # Default when no param is available
1125 if vuid_parts[-2] != vuid_parts[1]: # we have a parameter
1126 if vuid_parts[-2] in implicit_param_map:
1127 param_id = implicit_param_map[vuid_parts[-2]]
1128 else:
1129 print ("ERROR: Missing param '%s' from implicit_param_map\n TODO: Please add new mapping." % (vuid_parts[-2]))
1130 print (" replace '### ADD New implicit param mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[-2], len(implicit_param_map)))
1131 implicit_param_map[vuid_parts[-2]] = len(implicit_param_map)
1132 #imp_param_update = True
1133 sys.exit()
1134 uniqueid = uniqueid + (param_id << IMPLICIT_PARAM_SHIFT) + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0
1135 else: # No parameter so that field is 0
1136 uniqueid = uniqueid + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0
Tobin Ehlis3c37fb32017-05-24 09:31:13 -06001137# if uniqueid in uniqueid_set:
1138# print ("ERROR: Uniqueid %d for string id %s is a duplicate!" % (uniqueid, vuid_string))
1139# print (" TODO: Figure out what caused the dupe and fix it")
1140 #sys.exit()
Mark Lobodzinskifb842d52017-06-21 12:21:34 -06001141 # print ("Storing uniqueid %d for unique string %s" % (uniqueid, vuid_string))
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001142 uniqueid_set.add(uniqueid)
1143# if func_struct_update:
1144# print ("func_struct_id_map updated, here's new structure")
1145# print ("func_struct_id_map = {")
1146# fs_id = 0
1147# for fs in sorted(func_struct_id_map):
1148# print ("'%s' : %d," % (fs, fs_id))
1149# fs_id = fs_id + 1
1150# print ("### ADD New func/struct mappings above this line")
1151# print ("}")
1152# if imp_param_update:
1153# print ("implicit_param_map updated, here's new structure")
1154# print ("implicit_param_map = {")
1155# ip_id = 0
1156# for ip in sorted(implicit_param_map):
1157# print ("'%s' : %d," % (ip, ip_id))
1158# ip_id = ip_id + 1
1159# print ("### ADD New implicit param mappings above this line")
1160# print ("}")
1161
1162 return uniqueid