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