blob: e3dbfdf98439ba05d5f113fc9f07a9115e793df1 [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,
Mark Lobodzinskidbe7dce2018-01-08 08:17:24 -0700581'VkPhysicalDeviceConservativeRasterizationPropertiesEXT' : 525,
582'VkPipelineRasterizationConservativeStateCreateInfoEXT' : 526,
Mark Lobodzinski484dcb42018-02-20 09:37:55 -0700583'vkCmdWriteBufferMarkerAMD' : 527,
Tobin Ehlis98d109a2017-05-11 14:42:38 -0600584### ADD New func/struct mappings above this line
585}
586# Mapping of params to unique IDs
587implicit_param_map = {
588'a' : 0,
589'addressModeU' : 1,
590'addressModeV' : 2,
591'addressModeW' : 3,
592'alphaBlendOp' : 4,
593'alphaMode' : 5,
594'aspectMask' : 6,
595'attachmentCount' : 7,
596'b' : 8,
597'back' : 9,
598'bindCount' : 10,
599'bindInfoCount' : 11,
600'bindingCount' : 12,
601'buffer' : 13,
602'bufferView' : 14,
603'callback' : 15,
604'colorBlendOp' : 16,
605'colorWriteMask' : 17,
606'commandBuffer' : 18,
607'commandBufferCount' : 19,
608'commandPool' : 20,
609'compareOp' : 21,
610'components' : 22,
611'compositeAlpha' : 23,
612'connection' : 24,
613'contents' : 25,
614'countBuffer' : 26,
615'counter' : 27,
616'createInfoCount' : 28,
617'cullMode' : 29,
618'dataSize' : 30,
619'dependencyFlags' : 31,
620'depthCompareOp' : 32,
621'depthFailOp' : 33,
622'descriptorCount' : 34,
623'descriptorPool' : 35,
624'descriptorSet' : 36,
625'descriptorSetCount' : 37,
626'descriptorSetLayout' : 38,
627'descriptorType' : 39,
628'descriptorUpdateEntryCount' : 40,
629'descriptorUpdateTemplate' : 41,
630'descriptorWriteCount' : 42,
631'device' : 43,
632'deviceEvent' : 44,
633'disabledValidationCheckCount' : 45,
634'discardRectangleCount' : 46,
635'discardRectangleMode' : 47,
636'display' : 48,
637'displayEvent' : 49,
638'displayMode' : 50,
639'dpy' : 51,
640'dstAccessMask' : 52,
641'dstAlphaBlendFactor' : 53,
642'dstBuffer' : 54,
643'dstCache' : 55,
644'dstColorBlendFactor' : 56,
645'dstImage' : 57,
646'dstImageLayout' : 58,
647'dstSet' : 59,
648'dstStageMask' : 60,
649'dstSubresource' : 61,
650'dynamicStateCount' : 62,
651'event' : 63,
652'eventCount' : 64,
653'externalHandleType' : 65,
654'faceMask' : 66,
655'failOp' : 67,
656'fence' : 68,
657'fenceCount' : 69,
658'filter' : 70,
659'finalLayout' : 71,
660'flags' : 72,
661'format' : 73,
662'framebuffer' : 74,
663'front' : 75,
664'frontFace' : 76,
665'g' : 77,
666'handleType' : 78,
667'handleTypes' : 79,
668'image' : 80,
669'imageColorSpace' : 81,
670'imageFormat' : 82,
671'imageLayout' : 83,
672'imageSharingMode' : 84,
673'imageSubresource' : 85,
674'imageType' : 86,
675'imageUsage' : 87,
676'imageView' : 88,
677'indexType' : 89,
678'indirectCommandsLayout' : 90,
679'indirectCommandsTokenCount' : 91,
680'initialLayout' : 92,
681'inputRate' : 93,
682'instance' : 94,
683'layout' : 95,
684'level' : 96,
685'loadOp' : 97,
686'magFilter' : 98,
687'memory' : 99,
688'memoryRangeCount' : 100,
689'minFilter' : 101,
690'mipmapMode' : 102,
691'mode' : 103,
692'modes' : 104,
693'module' : 105,
694'newLayout' : 106,
695'objectCount' : 107,
696'objectTable' : 108,
697'objectType' : 109,
698'oldLayout' : 110,
699'oldSwapchain' : 111,
700'pAcquireInfo' : 112,
701'pAcquireKeys' : 113,
702'pAcquireSyncs' : 114,
703'pAcquireTimeoutMilliseconds' : 115,
704'pAcquireTimeouts' : 116,
705'pAllocateInfo' : 117,
706'pAllocator' : 118,
707'pApplicationInfo' : 119,
708'pApplicationName' : 120,
709'pAttachments' : 121,
710'pAttributes' : 122,
711'pBeginInfo' : 123,
712'pBindInfo' : 124,
713'pBindInfos' : 125,
714'pBindings' : 126,
715'pBinds' : 127,
716'pBuffer' : 128,
717'pBufferBinds' : 129,
718'pBufferMemoryBarriers' : 130,
719'pBuffers' : 131,
720'pCallback' : 132,
721'pCapabilities' : 133,
722'pCode' : 134,
723'pColor' : 135,
724'pColorAttachments' : 136,
725'pCommandBufferDeviceMasks' : 137,
726'pCommandBuffers' : 138,
727'pCommandPool' : 139,
728'pCommittedMemoryInBytes' : 140,
729'pCorrelationMasks' : 141,
730'pCounterValue' : 142,
731'pCreateInfo' : 143,
732'pCreateInfos' : 144,
733'pData' : 145,
734'pDataSize' : 146,
735'pDependencies' : 147,
736'pDepthStencil' : 148,
737'pDepthStencilAttachment' : 149,
738'pDescriptorCopies' : 150,
739'pDescriptorPool' : 151,
740'pDescriptorSets' : 152,
741'pDescriptorUpdateEntries' : 153,
742'pDescriptorUpdateTemplate' : 154,
743'pDescriptorWrites' : 155,
744'pDevice' : 156,
745'pDeviceEventInfo' : 157,
746'pDeviceGroupPresentCapabilities' : 158,
747'pDeviceIndices' : 159,
748'pDeviceMasks' : 160,
749'pDeviceRenderAreas' : 161,
750'pDisabledValidationChecks' : 162,
751'pDiscardRectangles' : 163,
752'pDisplay' : 164,
753'pDisplayCount' : 165,
754'pDisplayEventInfo' : 166,
755'pDisplayPowerInfo' : 167,
756'pDisplayTimingProperties' : 168,
757'pDisplays' : 169,
758'pDynamicOffsets' : 170,
759'pDynamicState' : 171,
760'pDynamicStates' : 172,
761'pEnabledFeatures' : 173,
762'pEngineName' : 174,
763'pEvent' : 175,
764'pEvents' : 176,
765'pExternalBufferInfo' : 177,
766'pExternalBufferProperties' : 178,
767'pExternalImageFormatProperties' : 179,
768'pExternalSemaphoreInfo' : 180,
769'pExternalSemaphoreProperties' : 181,
770'pFd' : 182,
771'pFeatures' : 183,
772'pFence' : 184,
773'pFences' : 185,
774'pFormatInfo' : 186,
775'pFormatProperties' : 187,
776'pFramebuffer' : 188,
777'pGranularity' : 189,
778'pHandle' : 190,
779'pImage' : 191,
780'pImageBinds' : 192,
781'pImageFormatInfo' : 193,
782'pImageFormatProperties' : 194,
783'pImageIndex' : 195,
784'pImageIndices' : 196,
785'pImageMemoryBarriers' : 197,
786'pImageOpaqueBinds' : 198,
787'pImportSemaphoreFdInfo' : 199,
788'pImportSemaphoreWin32HandleInfo' : 200,
789'pIndirectCommandsLayout' : 201,
790'pIndirectCommandsTokens' : 202,
791'pInitialData' : 203,
792'pInputAssemblyState' : 204,
793'pInputAttachments' : 205,
794'pInstance' : 206,
795'pLayerName' : 207,
796'pLayerPrefix' : 208,
797'pLayout' : 209,
798'pLimits' : 210,
799'pMarkerInfo' : 211,
800'pMarkerName' : 212,
801'pMemory' : 213,
802'pMemoryBarriers' : 214,
803'pMemoryFdProperties' : 215,
804'pMemoryProperties' : 216,
805'pMemoryRanges' : 217,
806'pMemoryRequirements' : 218,
807'pMemoryWin32HandleProperties' : 219,
808'pMessage' : 220,
809'pMetadata' : 221,
810'pMode' : 222,
811'pModes' : 223,
812'pName' : 224,
813'pNameInfo' : 225,
814'pNext' : 226,
815'pObjectEntryCounts' : 227,
816'pObjectEntryTypes' : 228,
817'pObjectEntryUsageFlags' : 229,
818'pObjectIndices' : 230,
819'pObjectName' : 231,
820'pObjectTable' : 232,
821'pOffsets' : 233,
822'pPeerMemoryFeatures' : 234,
823'pPhysicalDeviceCount' : 235,
824'pPhysicalDeviceGroupCount' : 236,
825'pPhysicalDeviceGroupProperties' : 237,
826'pPhysicalDevices' : 238,
827'pPipelineCache' : 239,
828'pPipelineLayout' : 240,
829'pPipelines' : 241,
830'pPoolSizes' : 242,
831'pPresentInfo' : 243,
832'pPresentModeCount' : 244,
833'pPresentModes' : 245,
834'pPresentationTimingCount' : 246,
835'pPresentationTimings' : 247,
836'pPreserveAttachments' : 248,
837'pProcessCommandsInfo' : 249,
838'pProperties' : 250,
839'pPropertyCount' : 251,
840'pPushConstantRanges' : 252,
841'pQueryPool' : 253,
842'pQueue' : 254,
843'pQueueCreateInfos' : 255,
844'pQueueFamilyProperties' : 256,
845'pQueueFamilyPropertyCount' : 257,
846'pQueuePriorities' : 258,
847'pRanges' : 259,
848'pRasterizationState' : 260,
849'pRectCount' : 261,
850'pRectangles' : 262,
851'pRects' : 263,
852'pRegions' : 264,
853'pReleaseKeys' : 265,
854'pReleaseSyncs' : 266,
855'pRenderPass' : 267,
856'pRenderPassBegin' : 268,
857'pReserveSpaceInfo' : 269,
858'pResolveAttachments' : 270,
859'pResults' : 271,
860'pSFRRects' : 272,
861'pSampleMask' : 273,
862'pSampler' : 274,
863'pScissors' : 275,
864'pSemaphore' : 276,
865'pSetLayout' : 277,
866'pSetLayouts' : 278,
867'pShaderModule' : 279,
868'pSignalSemaphoreDeviceIndices' : 280,
869'pSignalSemaphoreValues' : 281,
870'pSignalSemaphores' : 282,
871'pSparseMemoryRequirementCount' : 283,
872'pSparseMemoryRequirements' : 284,
873'pSpecializationInfo' : 285,
874'pSrcCaches' : 286,
875'pStages' : 287,
876'pSubmits' : 288,
877'pSubpasses' : 289,
878'pSubresource' : 290,
879'pSupported' : 291,
880'pSurface' : 292,
881'pSurfaceCapabilities' : 293,
882'pSurfaceFormatCount' : 294,
883'pSurfaceFormats' : 295,
884'pSurfaceInfo' : 296,
885'pSwapchain' : 297,
886'pSwapchainImageCount' : 298,
887'pSwapchainImages' : 299,
888'pSwapchains' : 300,
889'pTag' : 301,
890'pTagInfo' : 302,
891'pTimes' : 303,
892'pTokens' : 304,
893'pValues' : 305,
894'pVertexAttributeDescriptions' : 306,
895'pVertexBindingDescriptions' : 307,
896'pVertexInputState' : 308,
897'pView' : 309,
898'pViewMasks' : 310,
899'pViewOffsets' : 311,
900'pWaitDstStageMask' : 312,
901'pWaitSemaphoreDeviceIndices' : 313,
902'pWaitSemaphoreValues' : 314,
903'pWaitSemaphores' : 315,
904'passOp' : 316,
905'physicalDevice' : 317,
906'pipeline' : 318,
907'pipelineBindPoint' : 319,
908'pipelineCache' : 320,
909'pipelineLayout' : 321,
910'pipelineStage' : 322,
911'polygonMode' : 323,
912'poolSizeCount' : 324,
913'powerState' : 325,
914'ppData' : 326,
915'ppEnabledExtensionNames' : 327,
916'ppEnabledLayerNames' : 328,
917'ppObjectTableEntries' : 329,
918'preTransform' : 330,
919'presentMode' : 331,
920'queryPool' : 332,
921'queryType' : 333,
922'queue' : 334,
923'queueCount' : 335,
924'queueCreateInfoCount' : 336,
925'r' : 337,
926'rangeCount' : 338,
927'rasterizationOrder' : 339,
928'rasterizationSamples' : 340,
929'rectCount' : 341,
930'regionCount' : 342,
931'renderPass' : 343,
932'sType' : 344,
933'sampler' : 345,
934'samples' : 346,
935'scissorCount' : 347,
936'semaphore' : 348,
937'sequencesCountBuffer' : 349,
938'sequencesIndexBuffer' : 350,
939'shaderModule' : 351,
940'sharingMode' : 352,
941'size' : 353,
942'srcAccessMask' : 354,
943'srcAlphaBlendFactor' : 355,
944'srcBuffer' : 356,
945'srcCacheCount' : 357,
946'srcColorBlendFactor' : 358,
947'srcImage' : 359,
948'srcImageLayout' : 360,
949'srcSet' : 361,
950'srcStageMask' : 362,
951'srcSubresource' : 363,
952'stage' : 364,
953'stageCount' : 365,
954'stageFlags' : 366,
955'stageMask' : 367,
956'stencilLoadOp' : 368,
957'stencilStoreOp' : 369,
958'storeOp' : 370,
959'subpassCount' : 371,
960'subresource' : 372,
961'subresourceRange' : 373,
962'surface' : 374,
963'surfaceCounters' : 375,
964'swapchain' : 376,
965'swapchainCount' : 377,
966'tagSize' : 378,
967'targetCommandBuffer' : 379,
968'templateType' : 380,
969'tiling' : 381,
970'tokenCount' : 382,
971'tokenType' : 383,
972'topology' : 384,
973'transform' : 385,
974'type' : 386,
975'usage' : 387,
976'viewType' : 388,
977'viewportCount' : 389,
978'w' : 390,
979'window' : 391,
980'x' : 392,
981'y' : 393,
982'z' : 394,
Mark Lobodzinskicb6f56f2017-06-26 16:04:27 -0600983'externalMemoryFeatures' : 395,
984'compatibleHandleTypes' : 396,
985'exportFromImportedHandleTypes' : 397,
Mark Lobodzinski4e39cc62017-06-27 13:21:03 -0600986'linearTilingFeatures' : 398,
987'optimalTilingFeatures' : 399,
988'bufferFeatures' : 400,
989'sampleCounts' : 401,
990'framebufferColorSampleCounts' : 402,
991'framebufferDepthSampleCounts' : 403,
992'framebufferStencilSampleCounts' : 404,
993'framebufferNoAttachmentsSampleCounts' : 405,
994'sampledImageColorSampleCounts' : 406,
995'sampledImageIntegerSampleCounts' : 407,
996'sampledImageDepthSampleCounts' : 408,
997'sampledImageStencilSampleCounts' : 409,
998'storageImageSampleCounts' : 410,
999'queueFlags' : 411,
1000'propertyFlags' : 412,
1001'supportedTransforms' : 413,
1002'currentTransform' : 414,
1003'supportedCompositeAlpha' : 415,
1004'supportedUsageFlags' : 416,
1005'supportedAlpha' : 417,
1006'sharedPresentSupportedUsageFlags' : 418,
1007'externalSemaphoreFeatures' : 419,
1008'supportedSurfaceCounters' : 420,
Mark Lobodzinskie5b2b712017-06-28 14:58:27 -06001009'blendOverlap' : 421,
1010'coverageModulationMode' : 422,
1011'coverageModulationTableCount' : 423,
1012'reductionMode' : 424,
Mark Lobodzinski63aebd32017-06-28 10:54:26 -06001013'enabledLayerCount' : 425,
1014'enabledExtensionCount' : 426,
1015'waitSemaphoreCount' : 427,
1016'signalSemaphoreCount' : 428,
1017'bufferBindCount' : 429,
1018'imageOpaqueBindCount' : 430,
1019'imageBindCount' : 431,
1020'codeSize' : 432,
1021'initialDataSize' : 433,
1022'vertexBindingDescriptionCount' : 434,
1023'vertexAttributeDescriptionCount' : 435,
1024'setLayoutCount' : 436,
1025'pushConstantRangeCount' : 437,
1026'inputAttachmentCount' : 438,
1027'colorAttachmentCount' : 439,
1028'preserveAttachmentCount' : 440,
1029'dependencyCount' : 441,
1030'dynamicOffsetCount' : 442,
1031'rectangleCount' : 443,
1032'correlationMaskCount' : 444,
1033'acquireCount' : 445,
1034'releaseCount' : 446,
1035'deviceIndexCount' : 447,
1036'SFRRectCount' : 448,
1037'deviceRenderAreaCount' : 449,
1038'physicalDeviceCount' : 450,
1039'waitSemaphoreValuesCount' : 451,
1040'signalSemaphoreValuesCount' : 452,
Mark Lobodzinski42eb3c32017-06-28 11:47:22 -06001041'deviceType' : 453,
1042'colorSpace' : 454,
Mark Lobodzinskie1cce092017-06-28 13:21:27 -06001043'pfnAllocation' : 455,
1044'pfnReallocation' : 556,
1045'pfnFree' : 457,
1046'blendConstants' : 458,
1047'displayName' : 459,
1048'pfnCallback' : 460,
Mark Youngabc2d6e2017-07-07 07:59:56 -06001049'externalFenceFeatures' : 461,
1050'pInfo' : 462,
1051'pGetFdInfo' : 463,
1052'pGetWin32HandleInfo' : 464,
1053'pExternalFenceInfo' : 465,
1054'pExternalFenceProperties' : 466,
1055'pImportFenceProperties' : 467,
1056'pImportFenceFdInfo' : 468,
1057'pImportFenceWin32HandleInfo' : 469,
Mark Lobodzinski92df8b42017-07-20 10:38:46 -06001058'basePipelineHandle' : 470,
1059'pImmutableSamplers' : 471,
1060'pTexelBufferView' : 472,
Mike Schuchardta6b8bdb2017-09-05 16:10:20 -06001061'sampleLocationsPerPixel' : 473,
1062'sampleLocationsCount' : 474,
1063'pSampleLocations' : 475,
1064'attachmentInitialSampleLocationsCount' : 476,
1065'pAttachmentInitialSampleLocations' : 477,
1066'postSubpassSampleLocationsCount' : 478,
1067'pSubpassSampleLocations' : 479,
1068'sampleLocationSampleCounts' : 480,
1069'pValidationCache' : 481,
1070'validationCache' : 482,
1071'sampleLocationsInfo' : 483,
1072'pSampleLocationsInfo' : 484,
1073'pMultisampleProperties' : 485,
Lenny Komowb79f04a2017-09-18 17:07:00 -06001074'pointClippingBehavior' : 486,
1075'aspectReferenceCount' : 487,
1076'pAspectReferences' : 488,
1077'domainOrigin' : 489,
1078'ycbcrModel' : 490,
1079'ycbcrRange' : 491,
1080'xChromaOffset' : 492,
1081'yChromaOffset' : 493,
1082'chromaFilter' : 494,
1083'planeAspect' : 495,
1084'pYcbcrConversion' : 496,
1085'ycbcrConversion' : 497,
1086'pViewFormats' : 498,
1087'conversion' : 499,
Mark Lobodzinskie3f891d2017-10-09 13:06:50 -06001088'pPostSubpassSampleLocations' : 500,
Mark Lobodzinskia7121692017-10-23 11:31:43 -06001089'globalPriority' : 501,
1090'shaderStage' : 502,
1091'infoType' : 503,
1092'pInfoSize' : 504,
Mark Lobodzinski2ffbeb82017-10-23 09:23:06 -06001093'shaderStageMask' : 505,
Mark Lobodzinski417d5702017-11-27 12:00:45 -07001094'pMemoryHostPointerProperties' : 506,
1095'pHostPointer' : 507,
Mark Lobodzinskidbe7dce2018-01-08 08:17:24 -07001096'conservativeRasterizationMode' : 508,
1097'pViewports' : 509,
1098'pViewportWScalings' : 510,
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001099### ADD New implicit param mappings above this line
1100}
1101
1102uniqueid_set = set() # store uniqueid to make sure we don't have duplicates
1103
1104# Convert a string VUID into numerical value
1105# See "VUID Mapping Details" comment above for more info
1106def convertVUID(vuid_string):
1107 """Convert a string-based VUID into a numberical value"""
1108 #func_struct_update = False
1109 #imp_param_update = False
1110 if vuid_string in ['', None]:
1111 return -1
1112 vuid_parts = vuid_string.split('-')
1113 if vuid_parts[1] not in func_struct_id_map:
Mike Schuchardtaf69d662017-07-20 11:16:48 -06001114 return -1
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001115 print ("ERROR: Missing func/struct map value for '%s'!" % (vuid_parts[1]))
1116 print (" TODO: Need to add mapping for this to end of func_struct_id_map")
1117 print (" replace '### ADD New func/struct mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[1], len(func_struct_id_map)))
1118 func_struct_id_map[vuid_parts[1]] = len(func_struct_id_map)
1119 #func_struct_update = True
Jean-François Roybb0ca872018-01-22 15:05:11 -08001120 sys.exit(1)
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001121 uniqueid = func_struct_id_map[vuid_parts[1]] << FUNC_STRUCT_SHIFT
1122 if vuid_parts[-1].isdigit(): # explit VUID has int on the end
1123 explicit_id = int(vuid_parts[-1])
1124 # For explicit case, id is explicit_base + func/struct mapping + unique id
1125 uniqueid = uniqueid + (explicit_id << EXPLICIT_ID_SHIFT) + explicit_bit0
1126 else: # implicit case
1127 if vuid_parts[-1] not in implicit_type_map:
Mike Schuchardtaf69d662017-07-20 11:16:48 -06001128 return -1
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001129 print("ERROR: Missing mapping for implicit type '%s'!\nTODO: Please add new mapping." % (vuid_parts[-1]))
Jean-François Roybb0ca872018-01-22 15:05:11 -08001130 sys.exit(1)
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001131 else:
1132 param_id = 0 # Default when no param is available
1133 if vuid_parts[-2] != vuid_parts[1]: # we have a parameter
1134 if vuid_parts[-2] in implicit_param_map:
1135 param_id = implicit_param_map[vuid_parts[-2]]
1136 else:
Mike Schuchardtaf69d662017-07-20 11:16:48 -06001137 return -1
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001138 print ("ERROR: Missing param '%s' from implicit_param_map\n TODO: Please add new mapping." % (vuid_parts[-2]))
1139 print (" replace '### ADD New implicit param mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[-2], len(implicit_param_map)))
1140 implicit_param_map[vuid_parts[-2]] = len(implicit_param_map)
1141 #imp_param_update = True
Jean-François Roybb0ca872018-01-22 15:05:11 -08001142 sys.exit(1)
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001143 uniqueid = uniqueid + (param_id << IMPLICIT_PARAM_SHIFT) + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0
1144 else: # No parameter so that field is 0
1145 uniqueid = uniqueid + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0
Tobin Ehlis3c37fb32017-05-24 09:31:13 -06001146# if uniqueid in uniqueid_set:
1147# print ("ERROR: Uniqueid %d for string id %s is a duplicate!" % (uniqueid, vuid_string))
1148# print (" TODO: Figure out what caused the dupe and fix it")
1149 #sys.exit()
Mark Lobodzinskifb842d52017-06-21 12:21:34 -06001150 # print ("Storing uniqueid %d for unique string %s" % (uniqueid, vuid_string))
Tobin Ehlis98d109a2017-05-11 14:42:38 -06001151 uniqueid_set.add(uniqueid)
1152# if func_struct_update:
1153# print ("func_struct_id_map updated, here's new structure")
1154# print ("func_struct_id_map = {")
1155# fs_id = 0
1156# for fs in sorted(func_struct_id_map):
1157# print ("'%s' : %d," % (fs, fs_id))
1158# fs_id = fs_id + 1
1159# print ("### ADD New func/struct mappings above this line")
1160# print ("}")
1161# if imp_param_update:
1162# print ("implicit_param_map updated, here's new structure")
1163# print ("implicit_param_map = {")
1164# ip_id = 0
1165# for ip in sorted(implicit_param_map):
1166# print ("'%s' : %d," % (ip, ip_id))
1167# ip_id = ip_id + 1
1168# print ("### ADD New implicit param mappings above this line")
1169# print ("}")
1170
1171 return uniqueid