Tobin Ehlis | 98d109a | 2017-05-11 14:42:38 -0600 | [diff] [blame] | 1 | #!/usr/bin/python -i |
| 2 | |
| 3 | import sys |
| 4 | import xml.etree.ElementTree as etree |
Mark Lobodzinski | 8c9633d | 2017-06-05 13:50:10 -0600 | [diff] [blame] | 5 | try: |
| 6 | import urllib.request as urllib2 |
| 7 | except ImportError: |
| 8 | import urllib2 |
Tobin Ehlis | 98d109a | 2017-05-11 14:42:38 -0600 | [diff] [blame] | 9 | import 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 |
| 31 | FUNC_STRUCT_SHIFT = 21 |
| 32 | EXPLICIT_ID_SHIFT = 1 |
| 33 | IMPLICIT_TYPE_SHIFT = 1 |
| 34 | IMPLICIT_PARAM_SHIFT = 9 |
| 35 | explicit_bit0 = 0x0 # All explicit IDs are even |
| 36 | implicit_bit0 = 0x1 # All implicit IDs are odd |
| 37 | # Implicit type values, shifted up by ID_SHIFT bits in final ID |
| 38 | implicit_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 |
| 55 | func_struct_id_map = { |
| 56 | 'VkAcquireNextImageInfoKHX' : 0, |
| 57 | 'VkAllocationCallbacks' : 1, |
| 58 | 'VkAndroidSurfaceCreateInfoKHR' : 2, |
| 59 | 'VkApplicationInfo' : 3, |
| 60 | 'VkAttachmentDescription' : 4, |
| 61 | 'VkAttachmentReference' : 5, |
| 62 | 'VkBindBufferMemoryInfoKHX' : 6, |
| 63 | 'VkBindImageMemoryInfoKHX' : 7, |
| 64 | '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, |
| 82 | 'VkD3D12FenceSubmitInfoKHX' : 26, |
| 83 | '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, |
| 120 | 'VkExportMemoryAllocateInfoKHX' : 64, |
| 121 | 'VkExportMemoryAllocateInfoNV' : 65, |
| 122 | 'VkExportMemoryWin32HandleInfoKHX' : 66, |
| 123 | 'VkExportMemoryWin32HandleInfoNV' : 67, |
| 124 | 'VkExportSemaphoreCreateInfoKHX' : 68, |
| 125 | 'VkExportSemaphoreWin32HandleInfoKHX' : 69, |
| 126 | 'VkExternalMemoryBufferCreateInfoKHX' : 70, |
| 127 | 'VkExternalMemoryImageCreateInfoKHX' : 71, |
| 128 | '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, |
| 143 | 'VkImportMemoryFdInfoKHX' : 87, |
| 144 | 'VkImportMemoryWin32HandleInfoKHX' : 88, |
| 145 | 'VkImportMemoryWin32HandleInfoNV' : 89, |
| 146 | 'VkImportSemaphoreFdInfoKHX' : 90, |
| 147 | 'VkImportSemaphoreWin32HandleInfoKHX' : 91, |
| 148 | '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, |
| 166 | 'VkPhysicalDeviceExternalBufferInfoKHX' : 110, |
| 167 | 'VkPhysicalDeviceExternalImageFormatInfoKHX' : 111, |
| 168 | 'VkPhysicalDeviceExternalSemaphoreInfoKHX' : 112, |
| 169 | '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, |
| 227 | 'VkWin32KeyedMutexAcquireReleaseInfoKHX' : 171, |
| 228 | '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, |
| 241 | 'vkBindBufferMemory2KHX' : 185, |
| 242 | 'vkBindImageMemory' : 186, |
| 243 | 'vkBindImageMemory2KHX' : 187, |
| 244 | '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, |
| 397 | 'vkGetMemoryFdKHX' : 341, |
| 398 | 'vkGetMemoryFdPropertiesKHX' : 342, |
| 399 | 'vkGetMemoryWin32HandleKHX' : 343, |
| 400 | 'vkGetMemoryWin32HandleNV' : 344, |
| 401 | 'vkGetMemoryWin32HandlePropertiesKHX' : 345, |
| 402 | 'vkGetPastPresentationTimingGOOGLE' : 346, |
| 403 | 'vkGetPhysicalDeviceDisplayPlanePropertiesKHR' : 347, |
| 404 | 'vkGetPhysicalDeviceDisplayPropertiesKHR' : 348, |
| 405 | 'vkGetPhysicalDeviceExternalBufferPropertiesKHX' : 349, |
| 406 | 'vkGetPhysicalDeviceExternalImageFormatPropertiesNV' : 350, |
| 407 | 'vkGetPhysicalDeviceExternalSemaphorePropertiesKHX' : 351, |
| 408 | '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, |
| 441 | 'vkGetSemaphoreFdKHX' : 385, |
| 442 | 'vkGetSemaphoreWin32HandleKHX' : 386, |
| 443 | 'vkGetSwapchainCounterEXT' : 387, |
| 444 | 'vkGetSwapchainImagesKHR' : 388, |
| 445 | 'vkGetSwapchainStatusKHR' : 389, |
| 446 | 'vkImportSemaphoreFdKHX' : 390, |
| 447 | 'vkImportSemaphoreWin32HandleKHX' : 391, |
| 448 | '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 Lobodzinski | 5229537 | 2017-06-21 11:54:54 -0600 | [diff] [blame] | 472 | 'VkPhysicalDeviceProperties2KHR' : 416, |
| 473 | 'VkFormatProperties2KHR' : 417, |
| 474 | 'VkImageFormatProperties2KHR' : 418, |
| 475 | 'VkPhysicalDeviceMemoryProperties2KHR' : 419, |
| 476 | 'VkSurfaceCapabilities2KHR' : 420, |
| 477 | 'VkDeviceGroupPresentCapabilitiesKHX' : 421, |
| 478 | 'VkExternalBufferPropertiesKHX' : 422, |
| 479 | 'VkMemoryWin32HandlePropertiesKHX' : 423, |
| 480 | 'VkMemoryFdPropertiesKHX' : 424, |
| 481 | 'VkExternalSemaphorePropertiesKHX' : 425, |
Mark Lobodzinski | da9de78 | 2017-06-26 13:05:22 -0600 | [diff] [blame] | 482 | 'VkQueueFamilyProperties2KHR' : 426, |
| 483 | 'VkSparseImageFormatProperties2KHR' : 427, |
| 484 | 'VkSurfaceFormat2KHR' : 428, |
| 485 | 'VkTextureLODGatherFormatPropertiesAMD' : 429, |
| 486 | 'VkPhysicalDeviceMultiviewPropertiesKHX' : 430, |
| 487 | 'VkPhysicalDeviceGroupPropertiesKHX' : 431, |
| 488 | 'VkExternalImageFormatPropertiesKHX' : 432, |
| 489 | 'VkPhysicalDeviceIDPropertiesKHX' : 433, |
| 490 | 'VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX' : 434, |
| 491 | 'VkHdrMetadataEXT' : 435, |
Mark Lobodzinski | cb6f56f | 2017-06-26 16:04:27 -0600 | [diff] [blame] | 492 | 'VkExternalMemoryPropertiesKHX' : 436, |
Mark Lobodzinski | 4e39cc6 | 2017-06-27 13:21:03 -0600 | [diff] [blame^] | 493 | '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, |
Tobin Ehlis | 98d109a | 2017-05-11 14:42:38 -0600 | [diff] [blame] | 505 | ### ADD New func/struct mappings above this line |
| 506 | } |
| 507 | # Mapping of params to unique IDs |
| 508 | implicit_param_map = { |
| 509 | 'a' : 0, |
| 510 | 'addressModeU' : 1, |
| 511 | 'addressModeV' : 2, |
| 512 | 'addressModeW' : 3, |
| 513 | 'alphaBlendOp' : 4, |
| 514 | 'alphaMode' : 5, |
| 515 | 'aspectMask' : 6, |
| 516 | 'attachmentCount' : 7, |
| 517 | 'b' : 8, |
| 518 | 'back' : 9, |
| 519 | 'bindCount' : 10, |
| 520 | 'bindInfoCount' : 11, |
| 521 | 'bindingCount' : 12, |
| 522 | 'buffer' : 13, |
| 523 | 'bufferView' : 14, |
| 524 | 'callback' : 15, |
| 525 | 'colorBlendOp' : 16, |
| 526 | 'colorWriteMask' : 17, |
| 527 | 'commandBuffer' : 18, |
| 528 | 'commandBufferCount' : 19, |
| 529 | 'commandPool' : 20, |
| 530 | 'compareOp' : 21, |
| 531 | 'components' : 22, |
| 532 | 'compositeAlpha' : 23, |
| 533 | 'connection' : 24, |
| 534 | 'contents' : 25, |
| 535 | 'countBuffer' : 26, |
| 536 | 'counter' : 27, |
| 537 | 'createInfoCount' : 28, |
| 538 | 'cullMode' : 29, |
| 539 | 'dataSize' : 30, |
| 540 | 'dependencyFlags' : 31, |
| 541 | 'depthCompareOp' : 32, |
| 542 | 'depthFailOp' : 33, |
| 543 | 'descriptorCount' : 34, |
| 544 | 'descriptorPool' : 35, |
| 545 | 'descriptorSet' : 36, |
| 546 | 'descriptorSetCount' : 37, |
| 547 | 'descriptorSetLayout' : 38, |
| 548 | 'descriptorType' : 39, |
| 549 | 'descriptorUpdateEntryCount' : 40, |
| 550 | 'descriptorUpdateTemplate' : 41, |
| 551 | 'descriptorWriteCount' : 42, |
| 552 | 'device' : 43, |
| 553 | 'deviceEvent' : 44, |
| 554 | 'disabledValidationCheckCount' : 45, |
| 555 | 'discardRectangleCount' : 46, |
| 556 | 'discardRectangleMode' : 47, |
| 557 | 'display' : 48, |
| 558 | 'displayEvent' : 49, |
| 559 | 'displayMode' : 50, |
| 560 | 'dpy' : 51, |
| 561 | 'dstAccessMask' : 52, |
| 562 | 'dstAlphaBlendFactor' : 53, |
| 563 | 'dstBuffer' : 54, |
| 564 | 'dstCache' : 55, |
| 565 | 'dstColorBlendFactor' : 56, |
| 566 | 'dstImage' : 57, |
| 567 | 'dstImageLayout' : 58, |
| 568 | 'dstSet' : 59, |
| 569 | 'dstStageMask' : 60, |
| 570 | 'dstSubresource' : 61, |
| 571 | 'dynamicStateCount' : 62, |
| 572 | 'event' : 63, |
| 573 | 'eventCount' : 64, |
| 574 | 'externalHandleType' : 65, |
| 575 | 'faceMask' : 66, |
| 576 | 'failOp' : 67, |
| 577 | 'fence' : 68, |
| 578 | 'fenceCount' : 69, |
| 579 | 'filter' : 70, |
| 580 | 'finalLayout' : 71, |
| 581 | 'flags' : 72, |
| 582 | 'format' : 73, |
| 583 | 'framebuffer' : 74, |
| 584 | 'front' : 75, |
| 585 | 'frontFace' : 76, |
| 586 | 'g' : 77, |
| 587 | 'handleType' : 78, |
| 588 | 'handleTypes' : 79, |
| 589 | 'image' : 80, |
| 590 | 'imageColorSpace' : 81, |
| 591 | 'imageFormat' : 82, |
| 592 | 'imageLayout' : 83, |
| 593 | 'imageSharingMode' : 84, |
| 594 | 'imageSubresource' : 85, |
| 595 | 'imageType' : 86, |
| 596 | 'imageUsage' : 87, |
| 597 | 'imageView' : 88, |
| 598 | 'indexType' : 89, |
| 599 | 'indirectCommandsLayout' : 90, |
| 600 | 'indirectCommandsTokenCount' : 91, |
| 601 | 'initialLayout' : 92, |
| 602 | 'inputRate' : 93, |
| 603 | 'instance' : 94, |
| 604 | 'layout' : 95, |
| 605 | 'level' : 96, |
| 606 | 'loadOp' : 97, |
| 607 | 'magFilter' : 98, |
| 608 | 'memory' : 99, |
| 609 | 'memoryRangeCount' : 100, |
| 610 | 'minFilter' : 101, |
| 611 | 'mipmapMode' : 102, |
| 612 | 'mode' : 103, |
| 613 | 'modes' : 104, |
| 614 | 'module' : 105, |
| 615 | 'newLayout' : 106, |
| 616 | 'objectCount' : 107, |
| 617 | 'objectTable' : 108, |
| 618 | 'objectType' : 109, |
| 619 | 'oldLayout' : 110, |
| 620 | 'oldSwapchain' : 111, |
| 621 | 'pAcquireInfo' : 112, |
| 622 | 'pAcquireKeys' : 113, |
| 623 | 'pAcquireSyncs' : 114, |
| 624 | 'pAcquireTimeoutMilliseconds' : 115, |
| 625 | 'pAcquireTimeouts' : 116, |
| 626 | 'pAllocateInfo' : 117, |
| 627 | 'pAllocator' : 118, |
| 628 | 'pApplicationInfo' : 119, |
| 629 | 'pApplicationName' : 120, |
| 630 | 'pAttachments' : 121, |
| 631 | 'pAttributes' : 122, |
| 632 | 'pBeginInfo' : 123, |
| 633 | 'pBindInfo' : 124, |
| 634 | 'pBindInfos' : 125, |
| 635 | 'pBindings' : 126, |
| 636 | 'pBinds' : 127, |
| 637 | 'pBuffer' : 128, |
| 638 | 'pBufferBinds' : 129, |
| 639 | 'pBufferMemoryBarriers' : 130, |
| 640 | 'pBuffers' : 131, |
| 641 | 'pCallback' : 132, |
| 642 | 'pCapabilities' : 133, |
| 643 | 'pCode' : 134, |
| 644 | 'pColor' : 135, |
| 645 | 'pColorAttachments' : 136, |
| 646 | 'pCommandBufferDeviceMasks' : 137, |
| 647 | 'pCommandBuffers' : 138, |
| 648 | 'pCommandPool' : 139, |
| 649 | 'pCommittedMemoryInBytes' : 140, |
| 650 | 'pCorrelationMasks' : 141, |
| 651 | 'pCounterValue' : 142, |
| 652 | 'pCreateInfo' : 143, |
| 653 | 'pCreateInfos' : 144, |
| 654 | 'pData' : 145, |
| 655 | 'pDataSize' : 146, |
| 656 | 'pDependencies' : 147, |
| 657 | 'pDepthStencil' : 148, |
| 658 | 'pDepthStencilAttachment' : 149, |
| 659 | 'pDescriptorCopies' : 150, |
| 660 | 'pDescriptorPool' : 151, |
| 661 | 'pDescriptorSets' : 152, |
| 662 | 'pDescriptorUpdateEntries' : 153, |
| 663 | 'pDescriptorUpdateTemplate' : 154, |
| 664 | 'pDescriptorWrites' : 155, |
| 665 | 'pDevice' : 156, |
| 666 | 'pDeviceEventInfo' : 157, |
| 667 | 'pDeviceGroupPresentCapabilities' : 158, |
| 668 | 'pDeviceIndices' : 159, |
| 669 | 'pDeviceMasks' : 160, |
| 670 | 'pDeviceRenderAreas' : 161, |
| 671 | 'pDisabledValidationChecks' : 162, |
| 672 | 'pDiscardRectangles' : 163, |
| 673 | 'pDisplay' : 164, |
| 674 | 'pDisplayCount' : 165, |
| 675 | 'pDisplayEventInfo' : 166, |
| 676 | 'pDisplayPowerInfo' : 167, |
| 677 | 'pDisplayTimingProperties' : 168, |
| 678 | 'pDisplays' : 169, |
| 679 | 'pDynamicOffsets' : 170, |
| 680 | 'pDynamicState' : 171, |
| 681 | 'pDynamicStates' : 172, |
| 682 | 'pEnabledFeatures' : 173, |
| 683 | 'pEngineName' : 174, |
| 684 | 'pEvent' : 175, |
| 685 | 'pEvents' : 176, |
| 686 | 'pExternalBufferInfo' : 177, |
| 687 | 'pExternalBufferProperties' : 178, |
| 688 | 'pExternalImageFormatProperties' : 179, |
| 689 | 'pExternalSemaphoreInfo' : 180, |
| 690 | 'pExternalSemaphoreProperties' : 181, |
| 691 | 'pFd' : 182, |
| 692 | 'pFeatures' : 183, |
| 693 | 'pFence' : 184, |
| 694 | 'pFences' : 185, |
| 695 | 'pFormatInfo' : 186, |
| 696 | 'pFormatProperties' : 187, |
| 697 | 'pFramebuffer' : 188, |
| 698 | 'pGranularity' : 189, |
| 699 | 'pHandle' : 190, |
| 700 | 'pImage' : 191, |
| 701 | 'pImageBinds' : 192, |
| 702 | 'pImageFormatInfo' : 193, |
| 703 | 'pImageFormatProperties' : 194, |
| 704 | 'pImageIndex' : 195, |
| 705 | 'pImageIndices' : 196, |
| 706 | 'pImageMemoryBarriers' : 197, |
| 707 | 'pImageOpaqueBinds' : 198, |
| 708 | 'pImportSemaphoreFdInfo' : 199, |
| 709 | 'pImportSemaphoreWin32HandleInfo' : 200, |
| 710 | 'pIndirectCommandsLayout' : 201, |
| 711 | 'pIndirectCommandsTokens' : 202, |
| 712 | 'pInitialData' : 203, |
| 713 | 'pInputAssemblyState' : 204, |
| 714 | 'pInputAttachments' : 205, |
| 715 | 'pInstance' : 206, |
| 716 | 'pLayerName' : 207, |
| 717 | 'pLayerPrefix' : 208, |
| 718 | 'pLayout' : 209, |
| 719 | 'pLimits' : 210, |
| 720 | 'pMarkerInfo' : 211, |
| 721 | 'pMarkerName' : 212, |
| 722 | 'pMemory' : 213, |
| 723 | 'pMemoryBarriers' : 214, |
| 724 | 'pMemoryFdProperties' : 215, |
| 725 | 'pMemoryProperties' : 216, |
| 726 | 'pMemoryRanges' : 217, |
| 727 | 'pMemoryRequirements' : 218, |
| 728 | 'pMemoryWin32HandleProperties' : 219, |
| 729 | 'pMessage' : 220, |
| 730 | 'pMetadata' : 221, |
| 731 | 'pMode' : 222, |
| 732 | 'pModes' : 223, |
| 733 | 'pName' : 224, |
| 734 | 'pNameInfo' : 225, |
| 735 | 'pNext' : 226, |
| 736 | 'pObjectEntryCounts' : 227, |
| 737 | 'pObjectEntryTypes' : 228, |
| 738 | 'pObjectEntryUsageFlags' : 229, |
| 739 | 'pObjectIndices' : 230, |
| 740 | 'pObjectName' : 231, |
| 741 | 'pObjectTable' : 232, |
| 742 | 'pOffsets' : 233, |
| 743 | 'pPeerMemoryFeatures' : 234, |
| 744 | 'pPhysicalDeviceCount' : 235, |
| 745 | 'pPhysicalDeviceGroupCount' : 236, |
| 746 | 'pPhysicalDeviceGroupProperties' : 237, |
| 747 | 'pPhysicalDevices' : 238, |
| 748 | 'pPipelineCache' : 239, |
| 749 | 'pPipelineLayout' : 240, |
| 750 | 'pPipelines' : 241, |
| 751 | 'pPoolSizes' : 242, |
| 752 | 'pPresentInfo' : 243, |
| 753 | 'pPresentModeCount' : 244, |
| 754 | 'pPresentModes' : 245, |
| 755 | 'pPresentationTimingCount' : 246, |
| 756 | 'pPresentationTimings' : 247, |
| 757 | 'pPreserveAttachments' : 248, |
| 758 | 'pProcessCommandsInfo' : 249, |
| 759 | 'pProperties' : 250, |
| 760 | 'pPropertyCount' : 251, |
| 761 | 'pPushConstantRanges' : 252, |
| 762 | 'pQueryPool' : 253, |
| 763 | 'pQueue' : 254, |
| 764 | 'pQueueCreateInfos' : 255, |
| 765 | 'pQueueFamilyProperties' : 256, |
| 766 | 'pQueueFamilyPropertyCount' : 257, |
| 767 | 'pQueuePriorities' : 258, |
| 768 | 'pRanges' : 259, |
| 769 | 'pRasterizationState' : 260, |
| 770 | 'pRectCount' : 261, |
| 771 | 'pRectangles' : 262, |
| 772 | 'pRects' : 263, |
| 773 | 'pRegions' : 264, |
| 774 | 'pReleaseKeys' : 265, |
| 775 | 'pReleaseSyncs' : 266, |
| 776 | 'pRenderPass' : 267, |
| 777 | 'pRenderPassBegin' : 268, |
| 778 | 'pReserveSpaceInfo' : 269, |
| 779 | 'pResolveAttachments' : 270, |
| 780 | 'pResults' : 271, |
| 781 | 'pSFRRects' : 272, |
| 782 | 'pSampleMask' : 273, |
| 783 | 'pSampler' : 274, |
| 784 | 'pScissors' : 275, |
| 785 | 'pSemaphore' : 276, |
| 786 | 'pSetLayout' : 277, |
| 787 | 'pSetLayouts' : 278, |
| 788 | 'pShaderModule' : 279, |
| 789 | 'pSignalSemaphoreDeviceIndices' : 280, |
| 790 | 'pSignalSemaphoreValues' : 281, |
| 791 | 'pSignalSemaphores' : 282, |
| 792 | 'pSparseMemoryRequirementCount' : 283, |
| 793 | 'pSparseMemoryRequirements' : 284, |
| 794 | 'pSpecializationInfo' : 285, |
| 795 | 'pSrcCaches' : 286, |
| 796 | 'pStages' : 287, |
| 797 | 'pSubmits' : 288, |
| 798 | 'pSubpasses' : 289, |
| 799 | 'pSubresource' : 290, |
| 800 | 'pSupported' : 291, |
| 801 | 'pSurface' : 292, |
| 802 | 'pSurfaceCapabilities' : 293, |
| 803 | 'pSurfaceFormatCount' : 294, |
| 804 | 'pSurfaceFormats' : 295, |
| 805 | 'pSurfaceInfo' : 296, |
| 806 | 'pSwapchain' : 297, |
| 807 | 'pSwapchainImageCount' : 298, |
| 808 | 'pSwapchainImages' : 299, |
| 809 | 'pSwapchains' : 300, |
| 810 | 'pTag' : 301, |
| 811 | 'pTagInfo' : 302, |
| 812 | 'pTimes' : 303, |
| 813 | 'pTokens' : 304, |
| 814 | 'pValues' : 305, |
| 815 | 'pVertexAttributeDescriptions' : 306, |
| 816 | 'pVertexBindingDescriptions' : 307, |
| 817 | 'pVertexInputState' : 308, |
| 818 | 'pView' : 309, |
| 819 | 'pViewMasks' : 310, |
| 820 | 'pViewOffsets' : 311, |
| 821 | 'pWaitDstStageMask' : 312, |
| 822 | 'pWaitSemaphoreDeviceIndices' : 313, |
| 823 | 'pWaitSemaphoreValues' : 314, |
| 824 | 'pWaitSemaphores' : 315, |
| 825 | 'passOp' : 316, |
| 826 | 'physicalDevice' : 317, |
| 827 | 'pipeline' : 318, |
| 828 | 'pipelineBindPoint' : 319, |
| 829 | 'pipelineCache' : 320, |
| 830 | 'pipelineLayout' : 321, |
| 831 | 'pipelineStage' : 322, |
| 832 | 'polygonMode' : 323, |
| 833 | 'poolSizeCount' : 324, |
| 834 | 'powerState' : 325, |
| 835 | 'ppData' : 326, |
| 836 | 'ppEnabledExtensionNames' : 327, |
| 837 | 'ppEnabledLayerNames' : 328, |
| 838 | 'ppObjectTableEntries' : 329, |
| 839 | 'preTransform' : 330, |
| 840 | 'presentMode' : 331, |
| 841 | 'queryPool' : 332, |
| 842 | 'queryType' : 333, |
| 843 | 'queue' : 334, |
| 844 | 'queueCount' : 335, |
| 845 | 'queueCreateInfoCount' : 336, |
| 846 | 'r' : 337, |
| 847 | 'rangeCount' : 338, |
| 848 | 'rasterizationOrder' : 339, |
| 849 | 'rasterizationSamples' : 340, |
| 850 | 'rectCount' : 341, |
| 851 | 'regionCount' : 342, |
| 852 | 'renderPass' : 343, |
| 853 | 'sType' : 344, |
| 854 | 'sampler' : 345, |
| 855 | 'samples' : 346, |
| 856 | 'scissorCount' : 347, |
| 857 | 'semaphore' : 348, |
| 858 | 'sequencesCountBuffer' : 349, |
| 859 | 'sequencesIndexBuffer' : 350, |
| 860 | 'shaderModule' : 351, |
| 861 | 'sharingMode' : 352, |
| 862 | 'size' : 353, |
| 863 | 'srcAccessMask' : 354, |
| 864 | 'srcAlphaBlendFactor' : 355, |
| 865 | 'srcBuffer' : 356, |
| 866 | 'srcCacheCount' : 357, |
| 867 | 'srcColorBlendFactor' : 358, |
| 868 | 'srcImage' : 359, |
| 869 | 'srcImageLayout' : 360, |
| 870 | 'srcSet' : 361, |
| 871 | 'srcStageMask' : 362, |
| 872 | 'srcSubresource' : 363, |
| 873 | 'stage' : 364, |
| 874 | 'stageCount' : 365, |
| 875 | 'stageFlags' : 366, |
| 876 | 'stageMask' : 367, |
| 877 | 'stencilLoadOp' : 368, |
| 878 | 'stencilStoreOp' : 369, |
| 879 | 'storeOp' : 370, |
| 880 | 'subpassCount' : 371, |
| 881 | 'subresource' : 372, |
| 882 | 'subresourceRange' : 373, |
| 883 | 'surface' : 374, |
| 884 | 'surfaceCounters' : 375, |
| 885 | 'swapchain' : 376, |
| 886 | 'swapchainCount' : 377, |
| 887 | 'tagSize' : 378, |
| 888 | 'targetCommandBuffer' : 379, |
| 889 | 'templateType' : 380, |
| 890 | 'tiling' : 381, |
| 891 | 'tokenCount' : 382, |
| 892 | 'tokenType' : 383, |
| 893 | 'topology' : 384, |
| 894 | 'transform' : 385, |
| 895 | 'type' : 386, |
| 896 | 'usage' : 387, |
| 897 | 'viewType' : 388, |
| 898 | 'viewportCount' : 389, |
| 899 | 'w' : 390, |
| 900 | 'window' : 391, |
| 901 | 'x' : 392, |
| 902 | 'y' : 393, |
| 903 | 'z' : 394, |
Mark Lobodzinski | cb6f56f | 2017-06-26 16:04:27 -0600 | [diff] [blame] | 904 | 'externalMemoryFeatures' : 395, |
| 905 | 'compatibleHandleTypes' : 396, |
| 906 | 'exportFromImportedHandleTypes' : 397, |
Mark Lobodzinski | 4e39cc6 | 2017-06-27 13:21:03 -0600 | [diff] [blame^] | 907 | 'linearTilingFeatures' : 398, |
| 908 | 'optimalTilingFeatures' : 399, |
| 909 | 'bufferFeatures' : 400, |
| 910 | 'sampleCounts' : 401, |
| 911 | 'framebufferColorSampleCounts' : 402, |
| 912 | 'framebufferDepthSampleCounts' : 403, |
| 913 | 'framebufferStencilSampleCounts' : 404, |
| 914 | 'framebufferNoAttachmentsSampleCounts' : 405, |
| 915 | 'sampledImageColorSampleCounts' : 406, |
| 916 | 'sampledImageIntegerSampleCounts' : 407, |
| 917 | 'sampledImageDepthSampleCounts' : 408, |
| 918 | 'sampledImageStencilSampleCounts' : 409, |
| 919 | 'storageImageSampleCounts' : 410, |
| 920 | 'queueFlags' : 411, |
| 921 | 'propertyFlags' : 412, |
| 922 | 'supportedTransforms' : 413, |
| 923 | 'currentTransform' : 414, |
| 924 | 'supportedCompositeAlpha' : 415, |
| 925 | 'supportedUsageFlags' : 416, |
| 926 | 'supportedAlpha' : 417, |
| 927 | 'sharedPresentSupportedUsageFlags' : 418, |
| 928 | 'externalSemaphoreFeatures' : 419, |
| 929 | 'supportedSurfaceCounters' : 420, |
Tobin Ehlis | 98d109a | 2017-05-11 14:42:38 -0600 | [diff] [blame] | 930 | ### ADD New implicit param mappings above this line |
| 931 | } |
| 932 | |
| 933 | uniqueid_set = set() # store uniqueid to make sure we don't have duplicates |
| 934 | |
| 935 | # Convert a string VUID into numerical value |
| 936 | # See "VUID Mapping Details" comment above for more info |
| 937 | def convertVUID(vuid_string): |
| 938 | """Convert a string-based VUID into a numberical value""" |
| 939 | #func_struct_update = False |
| 940 | #imp_param_update = False |
| 941 | if vuid_string in ['', None]: |
| 942 | return -1 |
| 943 | vuid_parts = vuid_string.split('-') |
| 944 | if vuid_parts[1] not in func_struct_id_map: |
| 945 | print ("ERROR: Missing func/struct map value for '%s'!" % (vuid_parts[1])) |
| 946 | print (" TODO: Need to add mapping for this to end of func_struct_id_map") |
| 947 | print (" replace '### ADD New func/struct mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[1], len(func_struct_id_map))) |
| 948 | func_struct_id_map[vuid_parts[1]] = len(func_struct_id_map) |
| 949 | #func_struct_update = True |
| 950 | sys.exit() |
| 951 | uniqueid = func_struct_id_map[vuid_parts[1]] << FUNC_STRUCT_SHIFT |
| 952 | if vuid_parts[-1].isdigit(): # explit VUID has int on the end |
| 953 | explicit_id = int(vuid_parts[-1]) |
| 954 | # For explicit case, id is explicit_base + func/struct mapping + unique id |
| 955 | uniqueid = uniqueid + (explicit_id << EXPLICIT_ID_SHIFT) + explicit_bit0 |
| 956 | else: # implicit case |
| 957 | if vuid_parts[-1] not in implicit_type_map: |
| 958 | print("ERROR: Missing mapping for implicit type '%s'!\nTODO: Please add new mapping." % (vuid_parts[-1])) |
| 959 | sys.exit() |
| 960 | else: |
| 961 | param_id = 0 # Default when no param is available |
| 962 | if vuid_parts[-2] != vuid_parts[1]: # we have a parameter |
| 963 | if vuid_parts[-2] in implicit_param_map: |
| 964 | param_id = implicit_param_map[vuid_parts[-2]] |
| 965 | else: |
| 966 | print ("ERROR: Missing param '%s' from implicit_param_map\n TODO: Please add new mapping." % (vuid_parts[-2])) |
| 967 | print (" replace '### ADD New implicit param mappings above this line' line with \"'%s' : %d,\"" % (vuid_parts[-2], len(implicit_param_map))) |
| 968 | implicit_param_map[vuid_parts[-2]] = len(implicit_param_map) |
| 969 | #imp_param_update = True |
| 970 | sys.exit() |
| 971 | uniqueid = uniqueid + (param_id << IMPLICIT_PARAM_SHIFT) + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0 |
| 972 | else: # No parameter so that field is 0 |
| 973 | uniqueid = uniqueid + (implicit_type_map[vuid_parts[-1]] << IMPLICIT_TYPE_SHIFT) + implicit_bit0 |
Tobin Ehlis | 3c37fb3 | 2017-05-24 09:31:13 -0600 | [diff] [blame] | 974 | # if uniqueid in uniqueid_set: |
| 975 | # print ("ERROR: Uniqueid %d for string id %s is a duplicate!" % (uniqueid, vuid_string)) |
| 976 | # print (" TODO: Figure out what caused the dupe and fix it") |
| 977 | #sys.exit() |
Mark Lobodzinski | fb842d5 | 2017-06-21 12:21:34 -0600 | [diff] [blame] | 978 | # print ("Storing uniqueid %d for unique string %s" % (uniqueid, vuid_string)) |
Tobin Ehlis | 98d109a | 2017-05-11 14:42:38 -0600 | [diff] [blame] | 979 | uniqueid_set.add(uniqueid) |
| 980 | # if func_struct_update: |
| 981 | # print ("func_struct_id_map updated, here's new structure") |
| 982 | # print ("func_struct_id_map = {") |
| 983 | # fs_id = 0 |
| 984 | # for fs in sorted(func_struct_id_map): |
| 985 | # print ("'%s' : %d," % (fs, fs_id)) |
| 986 | # fs_id = fs_id + 1 |
| 987 | # print ("### ADD New func/struct mappings above this line") |
| 988 | # print ("}") |
| 989 | # if imp_param_update: |
| 990 | # print ("implicit_param_map updated, here's new structure") |
| 991 | # print ("implicit_param_map = {") |
| 992 | # ip_id = 0 |
| 993 | # for ip in sorted(implicit_param_map): |
| 994 | # print ("'%s' : %d," % (ip, ip_id)) |
| 995 | # ip_id = ip_id + 1 |
| 996 | # print ("### ADD New implicit param mappings above this line") |
| 997 | # print ("}") |
| 998 | |
| 999 | return uniqueid |