Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | # |
| 3 | # Copyright (C) 2018 Google, Inc. |
| 4 | # |
| 5 | # Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | # copy of this software and associated documentation files (the "Software"), |
| 7 | # to deal in the Software without restriction, including without limitation |
| 8 | # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 | # and/or sell copies of the Software, and to permit persons to whom the |
| 10 | # Software is furnished to do so, subject to the following conditions: |
| 11 | # |
| 12 | # The above copyright notice and this permission notice shall be included |
| 13 | # in all copies or substantial portions of the Software. |
| 14 | # |
| 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 21 | # DEALINGS IN THE SOFTWARE. |
| 22 | |
| 23 | """Generate Vulkan wrapper to support Android without libvulkan |
| 24 | """ |
| 25 | |
| 26 | import os |
| 27 | import sys |
| 28 | |
| 29 | class Command(object): |
| 30 | PLATFORM = 0 |
| 31 | LOADER = 1 |
| 32 | INSTANCE = 2 |
| 33 | DEVICE = 3 |
| 34 | |
| 35 | def __init__(self, name, dispatch): |
| 36 | self.name = name |
| 37 | self.dispatch = dispatch |
| 38 | self.ty = self._get_type() |
| 39 | |
| 40 | @staticmethod |
| 41 | def valid_c_typedef(c): |
| 42 | return (c.startswith("typedef") and |
| 43 | c.endswith(");") and |
| 44 | "*PFN_vkVoidFunction" not in c) |
| 45 | |
| 46 | @classmethod |
| 47 | def from_c_typedef(cls, c): |
| 48 | name_begin = c.find("*PFN_vk") + 5 # instead of 7 to restore vk |
| 49 | name_end = c.find(")(", name_begin) |
| 50 | name = c[name_begin:name_end] |
| 51 | |
| 52 | dispatch_begin = name_end + 2 |
| 53 | dispatch_end = c.find(" ", dispatch_begin) |
| 54 | dispatch = c[dispatch_begin:dispatch_end] |
| 55 | if not dispatch.startswith("Vk"): |
| 56 | dispatch = None |
| 57 | |
| 58 | return cls(name, dispatch) |
| 59 | |
| 60 | def _get_type(self): |
| 61 | if self.dispatch: |
| 62 | if self.dispatch in ["VkDevice", "VkQueue", "VkCommandBuffer"]: |
| 63 | return self.DEVICE |
| 64 | else: |
| 65 | return self.INSTANCE |
| 66 | else: |
| 67 | if self.name in ["GetInstanceProcAddr"]: |
| 68 | return self.PLATFORM |
| 69 | else: |
| 70 | return self.LOADER |
| 71 | |
| 72 | def __repr__(self): |
| 73 | return "Command(name=%s, dispatch=%s)" % \ |
| 74 | (repr(self.name), repr(self.dispatch)) |
| 75 | |
| 76 | class Extension(object): |
| 77 | def __init__(self, name, version, guard=None, commands=[]): |
| 78 | self.name = name |
| 79 | self.version = version |
| 80 | self.guard = guard |
| 81 | self.commands = commands[:] |
| 82 | |
| 83 | def add_command(self, cmd): |
| 84 | self.commands.append(cmd) |
| 85 | |
| 86 | def __repr__(self): |
| 87 | lines = [] |
| 88 | lines.append("Extension(name=%s, version=%s, guard=%s, commands=[" % |
| 89 | (repr(self.name), repr(self.version), repr(self.guard))) |
| 90 | |
| 91 | for cmd in self.commands: |
| 92 | lines.append(" %s," % repr(cmd)) |
| 93 | |
| 94 | lines.append("])") |
| 95 | |
| 96 | return "\n".join(lines) |
| 97 | |
| 98 | # generated by "generate_vulkan_wrapper.py parse vulkan.h" |
| 99 | VK_core_0 = Extension(name='VK_core_0', version=0, guard=None, commands=[ |
| 100 | Command(name='vkCreateInstance', dispatch=None), |
| 101 | Command(name='vkDestroyInstance', dispatch='VkInstance'), |
| 102 | Command(name='vkEnumeratePhysicalDevices', dispatch='VkInstance'), |
| 103 | Command(name='vkGetPhysicalDeviceFeatures', dispatch='VkPhysicalDevice'), |
| 104 | Command(name='vkGetPhysicalDeviceFormatProperties', dispatch='VkPhysicalDevice'), |
| 105 | Command(name='vkGetPhysicalDeviceImageFormatProperties', dispatch='VkPhysicalDevice'), |
| 106 | Command(name='vkGetPhysicalDeviceProperties', dispatch='VkPhysicalDevice'), |
| 107 | Command(name='vkGetPhysicalDeviceQueueFamilyProperties', dispatch='VkPhysicalDevice'), |
| 108 | Command(name='vkGetPhysicalDeviceMemoryProperties', dispatch='VkPhysicalDevice'), |
| 109 | Command(name='vkGetInstanceProcAddr', dispatch='VkInstance'), |
| 110 | Command(name='vkGetDeviceProcAddr', dispatch='VkDevice'), |
| 111 | Command(name='vkCreateDevice', dispatch='VkPhysicalDevice'), |
| 112 | Command(name='vkDestroyDevice', dispatch='VkDevice'), |
| 113 | Command(name='vkEnumerateInstanceExtensionProperties', dispatch=None), |
| 114 | Command(name='vkEnumerateDeviceExtensionProperties', dispatch='VkPhysicalDevice'), |
| 115 | Command(name='vkEnumerateInstanceLayerProperties', dispatch=None), |
| 116 | Command(name='vkEnumerateDeviceLayerProperties', dispatch='VkPhysicalDevice'), |
| 117 | Command(name='vkGetDeviceQueue', dispatch='VkDevice'), |
| 118 | Command(name='vkQueueSubmit', dispatch='VkQueue'), |
| 119 | Command(name='vkQueueWaitIdle', dispatch='VkQueue'), |
| 120 | Command(name='vkDeviceWaitIdle', dispatch='VkDevice'), |
| 121 | Command(name='vkAllocateMemory', dispatch='VkDevice'), |
| 122 | Command(name='vkFreeMemory', dispatch='VkDevice'), |
| 123 | Command(name='vkMapMemory', dispatch='VkDevice'), |
| 124 | Command(name='vkUnmapMemory', dispatch='VkDevice'), |
| 125 | Command(name='vkFlushMappedMemoryRanges', dispatch='VkDevice'), |
| 126 | Command(name='vkInvalidateMappedMemoryRanges', dispatch='VkDevice'), |
| 127 | Command(name='vkGetDeviceMemoryCommitment', dispatch='VkDevice'), |
| 128 | Command(name='vkBindBufferMemory', dispatch='VkDevice'), |
| 129 | Command(name='vkBindImageMemory', dispatch='VkDevice'), |
| 130 | Command(name='vkGetBufferMemoryRequirements', dispatch='VkDevice'), |
| 131 | Command(name='vkGetImageMemoryRequirements', dispatch='VkDevice'), |
| 132 | Command(name='vkGetImageSparseMemoryRequirements', dispatch='VkDevice'), |
| 133 | Command(name='vkGetPhysicalDeviceSparseImageFormatProperties', dispatch='VkPhysicalDevice'), |
| 134 | Command(name='vkQueueBindSparse', dispatch='VkQueue'), |
| 135 | Command(name='vkCreateFence', dispatch='VkDevice'), |
| 136 | Command(name='vkDestroyFence', dispatch='VkDevice'), |
| 137 | Command(name='vkResetFences', dispatch='VkDevice'), |
| 138 | Command(name='vkGetFenceStatus', dispatch='VkDevice'), |
| 139 | Command(name='vkWaitForFences', dispatch='VkDevice'), |
| 140 | Command(name='vkCreateSemaphore', dispatch='VkDevice'), |
| 141 | Command(name='vkDestroySemaphore', dispatch='VkDevice'), |
| 142 | Command(name='vkCreateEvent', dispatch='VkDevice'), |
| 143 | Command(name='vkDestroyEvent', dispatch='VkDevice'), |
| 144 | Command(name='vkGetEventStatus', dispatch='VkDevice'), |
| 145 | Command(name='vkSetEvent', dispatch='VkDevice'), |
| 146 | Command(name='vkResetEvent', dispatch='VkDevice'), |
| 147 | Command(name='vkCreateQueryPool', dispatch='VkDevice'), |
| 148 | Command(name='vkDestroyQueryPool', dispatch='VkDevice'), |
| 149 | Command(name='vkGetQueryPoolResults', dispatch='VkDevice'), |
| 150 | Command(name='vkCreateBuffer', dispatch='VkDevice'), |
| 151 | Command(name='vkDestroyBuffer', dispatch='VkDevice'), |
| 152 | Command(name='vkCreateBufferView', dispatch='VkDevice'), |
| 153 | Command(name='vkDestroyBufferView', dispatch='VkDevice'), |
| 154 | Command(name='vkCreateImage', dispatch='VkDevice'), |
| 155 | Command(name='vkDestroyImage', dispatch='VkDevice'), |
| 156 | Command(name='vkGetImageSubresourceLayout', dispatch='VkDevice'), |
| 157 | Command(name='vkCreateImageView', dispatch='VkDevice'), |
| 158 | Command(name='vkDestroyImageView', dispatch='VkDevice'), |
| 159 | Command(name='vkCreateShaderModule', dispatch='VkDevice'), |
| 160 | Command(name='vkDestroyShaderModule', dispatch='VkDevice'), |
| 161 | Command(name='vkCreatePipelineCache', dispatch='VkDevice'), |
| 162 | Command(name='vkDestroyPipelineCache', dispatch='VkDevice'), |
| 163 | Command(name='vkGetPipelineCacheData', dispatch='VkDevice'), |
| 164 | Command(name='vkMergePipelineCaches', dispatch='VkDevice'), |
| 165 | Command(name='vkCreateGraphicsPipelines', dispatch='VkDevice'), |
| 166 | Command(name='vkCreateComputePipelines', dispatch='VkDevice'), |
| 167 | Command(name='vkDestroyPipeline', dispatch='VkDevice'), |
| 168 | Command(name='vkCreatePipelineLayout', dispatch='VkDevice'), |
| 169 | Command(name='vkDestroyPipelineLayout', dispatch='VkDevice'), |
| 170 | Command(name='vkCreateSampler', dispatch='VkDevice'), |
| 171 | Command(name='vkDestroySampler', dispatch='VkDevice'), |
| 172 | Command(name='vkCreateDescriptorSetLayout', dispatch='VkDevice'), |
| 173 | Command(name='vkDestroyDescriptorSetLayout', dispatch='VkDevice'), |
| 174 | Command(name='vkCreateDescriptorPool', dispatch='VkDevice'), |
| 175 | Command(name='vkDestroyDescriptorPool', dispatch='VkDevice'), |
| 176 | Command(name='vkResetDescriptorPool', dispatch='VkDevice'), |
| 177 | Command(name='vkAllocateDescriptorSets', dispatch='VkDevice'), |
| 178 | Command(name='vkFreeDescriptorSets', dispatch='VkDevice'), |
| 179 | Command(name='vkUpdateDescriptorSets', dispatch='VkDevice'), |
| 180 | Command(name='vkCreateFramebuffer', dispatch='VkDevice'), |
| 181 | Command(name='vkDestroyFramebuffer', dispatch='VkDevice'), |
| 182 | Command(name='vkCreateRenderPass', dispatch='VkDevice'), |
| 183 | Command(name='vkDestroyRenderPass', dispatch='VkDevice'), |
| 184 | Command(name='vkGetRenderAreaGranularity', dispatch='VkDevice'), |
| 185 | Command(name='vkCreateCommandPool', dispatch='VkDevice'), |
| 186 | Command(name='vkDestroyCommandPool', dispatch='VkDevice'), |
| 187 | Command(name='vkResetCommandPool', dispatch='VkDevice'), |
| 188 | Command(name='vkAllocateCommandBuffers', dispatch='VkDevice'), |
| 189 | Command(name='vkFreeCommandBuffers', dispatch='VkDevice'), |
| 190 | Command(name='vkBeginCommandBuffer', dispatch='VkCommandBuffer'), |
| 191 | Command(name='vkEndCommandBuffer', dispatch='VkCommandBuffer'), |
| 192 | Command(name='vkResetCommandBuffer', dispatch='VkCommandBuffer'), |
| 193 | Command(name='vkCmdBindPipeline', dispatch='VkCommandBuffer'), |
| 194 | Command(name='vkCmdSetViewport', dispatch='VkCommandBuffer'), |
| 195 | Command(name='vkCmdSetScissor', dispatch='VkCommandBuffer'), |
| 196 | Command(name='vkCmdSetLineWidth', dispatch='VkCommandBuffer'), |
| 197 | Command(name='vkCmdSetDepthBias', dispatch='VkCommandBuffer'), |
| 198 | Command(name='vkCmdSetBlendConstants', dispatch='VkCommandBuffer'), |
| 199 | Command(name='vkCmdSetDepthBounds', dispatch='VkCommandBuffer'), |
| 200 | Command(name='vkCmdSetStencilCompareMask', dispatch='VkCommandBuffer'), |
| 201 | Command(name='vkCmdSetStencilWriteMask', dispatch='VkCommandBuffer'), |
| 202 | Command(name='vkCmdSetStencilReference', dispatch='VkCommandBuffer'), |
| 203 | Command(name='vkCmdBindDescriptorSets', dispatch='VkCommandBuffer'), |
| 204 | Command(name='vkCmdBindIndexBuffer', dispatch='VkCommandBuffer'), |
| 205 | Command(name='vkCmdBindVertexBuffers', dispatch='VkCommandBuffer'), |
| 206 | Command(name='vkCmdDraw', dispatch='VkCommandBuffer'), |
| 207 | Command(name='vkCmdDrawIndexed', dispatch='VkCommandBuffer'), |
| 208 | Command(name='vkCmdDrawIndirect', dispatch='VkCommandBuffer'), |
| 209 | Command(name='vkCmdDrawIndexedIndirect', dispatch='VkCommandBuffer'), |
| 210 | Command(name='vkCmdDispatch', dispatch='VkCommandBuffer'), |
| 211 | Command(name='vkCmdDispatchIndirect', dispatch='VkCommandBuffer'), |
| 212 | Command(name='vkCmdCopyBuffer', dispatch='VkCommandBuffer'), |
| 213 | Command(name='vkCmdCopyImage', dispatch='VkCommandBuffer'), |
| 214 | Command(name='vkCmdBlitImage', dispatch='VkCommandBuffer'), |
| 215 | Command(name='vkCmdCopyBufferToImage', dispatch='VkCommandBuffer'), |
| 216 | Command(name='vkCmdCopyImageToBuffer', dispatch='VkCommandBuffer'), |
| 217 | Command(name='vkCmdUpdateBuffer', dispatch='VkCommandBuffer'), |
| 218 | Command(name='vkCmdFillBuffer', dispatch='VkCommandBuffer'), |
| 219 | Command(name='vkCmdClearColorImage', dispatch='VkCommandBuffer'), |
| 220 | Command(name='vkCmdClearDepthStencilImage', dispatch='VkCommandBuffer'), |
| 221 | Command(name='vkCmdClearAttachments', dispatch='VkCommandBuffer'), |
| 222 | Command(name='vkCmdResolveImage', dispatch='VkCommandBuffer'), |
| 223 | Command(name='vkCmdSetEvent', dispatch='VkCommandBuffer'), |
| 224 | Command(name='vkCmdResetEvent', dispatch='VkCommandBuffer'), |
| 225 | Command(name='vkCmdWaitEvents', dispatch='VkCommandBuffer'), |
| 226 | Command(name='vkCmdPipelineBarrier', dispatch='VkCommandBuffer'), |
| 227 | Command(name='vkCmdBeginQuery', dispatch='VkCommandBuffer'), |
| 228 | Command(name='vkCmdEndQuery', dispatch='VkCommandBuffer'), |
| 229 | Command(name='vkCmdResetQueryPool', dispatch='VkCommandBuffer'), |
| 230 | Command(name='vkCmdWriteTimestamp', dispatch='VkCommandBuffer'), |
| 231 | Command(name='vkCmdCopyQueryPoolResults', dispatch='VkCommandBuffer'), |
| 232 | Command(name='vkCmdPushConstants', dispatch='VkCommandBuffer'), |
| 233 | Command(name='vkCmdBeginRenderPass', dispatch='VkCommandBuffer'), |
| 234 | Command(name='vkCmdNextSubpass', dispatch='VkCommandBuffer'), |
| 235 | Command(name='vkCmdEndRenderPass', dispatch='VkCommandBuffer'), |
| 236 | Command(name='vkCmdExecuteCommands', dispatch='VkCommandBuffer'), |
| 237 | ]) |
| 238 | |
| 239 | VK_core_1 = Extension(name='VK_core_1', version=1, guard=None, commands=[ |
| 240 | Command(name='vkEnumerateInstanceVersion', dispatch=None), |
| 241 | Command(name='vkBindBufferMemory2', dispatch='VkDevice'), |
| 242 | Command(name='vkBindImageMemory2', dispatch='VkDevice'), |
| 243 | Command(name='vkGetDeviceGroupPeerMemoryFeatures', dispatch='VkDevice'), |
| 244 | Command(name='vkCmdSetDeviceMask', dispatch='VkCommandBuffer'), |
| 245 | Command(name='vkCmdDispatchBase', dispatch='VkCommandBuffer'), |
| 246 | Command(name='vkEnumeratePhysicalDeviceGroups', dispatch='VkInstance'), |
| 247 | Command(name='vkGetImageMemoryRequirements2', dispatch='VkDevice'), |
| 248 | Command(name='vkGetBufferMemoryRequirements2', dispatch='VkDevice'), |
| 249 | Command(name='vkGetImageSparseMemoryRequirements2', dispatch='VkDevice'), |
| 250 | Command(name='vkGetPhysicalDeviceFeatures2', dispatch='VkPhysicalDevice'), |
| 251 | Command(name='vkGetPhysicalDeviceProperties2', dispatch='VkPhysicalDevice'), |
| 252 | Command(name='vkGetPhysicalDeviceFormatProperties2', dispatch='VkPhysicalDevice'), |
| 253 | Command(name='vkGetPhysicalDeviceImageFormatProperties2', dispatch='VkPhysicalDevice'), |
| 254 | Command(name='vkGetPhysicalDeviceQueueFamilyProperties2', dispatch='VkPhysicalDevice'), |
| 255 | Command(name='vkGetPhysicalDeviceMemoryProperties2', dispatch='VkPhysicalDevice'), |
| 256 | Command(name='vkGetPhysicalDeviceSparseImageFormatProperties2', dispatch='VkPhysicalDevice'), |
| 257 | Command(name='vkTrimCommandPool', dispatch='VkDevice'), |
| 258 | Command(name='vkGetDeviceQueue2', dispatch='VkDevice'), |
| 259 | Command(name='vkCreateSamplerYcbcrConversion', dispatch='VkDevice'), |
| 260 | Command(name='vkDestroySamplerYcbcrConversion', dispatch='VkDevice'), |
| 261 | Command(name='vkCreateDescriptorUpdateTemplate', dispatch='VkDevice'), |
| 262 | Command(name='vkDestroyDescriptorUpdateTemplate', dispatch='VkDevice'), |
| 263 | Command(name='vkUpdateDescriptorSetWithTemplate', dispatch='VkDevice'), |
| 264 | Command(name='vkGetPhysicalDeviceExternalBufferProperties', dispatch='VkPhysicalDevice'), |
| 265 | Command(name='vkGetPhysicalDeviceExternalFenceProperties', dispatch='VkPhysicalDevice'), |
| 266 | Command(name='vkGetPhysicalDeviceExternalSemaphoreProperties', dispatch='VkPhysicalDevice'), |
| 267 | Command(name='vkGetDescriptorSetLayoutSupport', dispatch='VkDevice'), |
| 268 | ]) |
| 269 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 270 | VK_core_2 = Extension(name='VK_core_2', version=2, guard=None, commands=[ |
| 271 | Command(name='vkCmdDrawIndirectCount', dispatch='VkCommandBuffer'), |
| 272 | Command(name='vkCmdDrawIndexedIndirectCount', dispatch='VkCommandBuffer'), |
| 273 | Command(name='vkCreateRenderPass2', dispatch='VkDevice'), |
| 274 | Command(name='vkCmdBeginRenderPass2', dispatch='VkCommandBuffer'), |
| 275 | Command(name='vkCmdNextSubpass2', dispatch='VkCommandBuffer'), |
| 276 | Command(name='vkCmdEndRenderPass2', dispatch='VkCommandBuffer'), |
| 277 | Command(name='vkResetQueryPool', dispatch='VkDevice'), |
| 278 | Command(name='vkGetSemaphoreCounterValue', dispatch='VkDevice'), |
| 279 | Command(name='vkWaitSemaphores', dispatch='VkDevice'), |
| 280 | Command(name='vkSignalSemaphore', dispatch='VkDevice'), |
| 281 | Command(name='vkGetBufferDeviceAddress', dispatch='VkDevice'), |
| 282 | Command(name='vkGetBufferOpaqueCaptureAddress', dispatch='VkDevice'), |
| 283 | Command(name='vkGetDeviceMemoryOpaqueCaptureAddress', dispatch='VkDevice'), |
| 284 | ]) |
| 285 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 286 | VK_KHR_surface = Extension(name='VK_KHR_surface', version=25, guard=None, commands=[ |
| 287 | Command(name='vkDestroySurfaceKHR', dispatch='VkInstance'), |
| 288 | Command(name='vkGetPhysicalDeviceSurfaceSupportKHR', dispatch='VkPhysicalDevice'), |
| 289 | Command(name='vkGetPhysicalDeviceSurfaceCapabilitiesKHR', dispatch='VkPhysicalDevice'), |
| 290 | Command(name='vkGetPhysicalDeviceSurfaceFormatsKHR', dispatch='VkPhysicalDevice'), |
| 291 | Command(name='vkGetPhysicalDeviceSurfacePresentModesKHR', dispatch='VkPhysicalDevice'), |
| 292 | ]) |
| 293 | |
| 294 | VK_KHR_swapchain = Extension(name='VK_KHR_swapchain', version=70, guard=None, commands=[ |
| 295 | Command(name='vkCreateSwapchainKHR', dispatch='VkDevice'), |
| 296 | Command(name='vkDestroySwapchainKHR', dispatch='VkDevice'), |
| 297 | Command(name='vkGetSwapchainImagesKHR', dispatch='VkDevice'), |
| 298 | Command(name='vkAcquireNextImageKHR', dispatch='VkDevice'), |
| 299 | Command(name='vkQueuePresentKHR', dispatch='VkQueue'), |
| 300 | Command(name='vkGetDeviceGroupPresentCapabilitiesKHR', dispatch='VkDevice'), |
| 301 | Command(name='vkGetDeviceGroupSurfacePresentModesKHR', dispatch='VkDevice'), |
| 302 | Command(name='vkGetPhysicalDevicePresentRectanglesKHR', dispatch='VkPhysicalDevice'), |
| 303 | Command(name='vkAcquireNextImage2KHR', dispatch='VkDevice'), |
| 304 | ]) |
| 305 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 306 | VK_KHR_display = Extension(name='VK_KHR_display', version=23, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 307 | Command(name='vkGetPhysicalDeviceDisplayPropertiesKHR', dispatch='VkPhysicalDevice'), |
| 308 | Command(name='vkGetPhysicalDeviceDisplayPlanePropertiesKHR', dispatch='VkPhysicalDevice'), |
| 309 | Command(name='vkGetDisplayPlaneSupportedDisplaysKHR', dispatch='VkPhysicalDevice'), |
| 310 | Command(name='vkGetDisplayModePropertiesKHR', dispatch='VkPhysicalDevice'), |
| 311 | Command(name='vkCreateDisplayModeKHR', dispatch='VkPhysicalDevice'), |
| 312 | Command(name='vkGetDisplayPlaneCapabilitiesKHR', dispatch='VkPhysicalDevice'), |
| 313 | Command(name='vkCreateDisplayPlaneSurfaceKHR', dispatch='VkInstance'), |
| 314 | ]) |
| 315 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 316 | VK_KHR_display_swapchain = Extension(name='VK_KHR_display_swapchain', version=10, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 317 | Command(name='vkCreateSharedSwapchainsKHR', dispatch='VkDevice'), |
| 318 | ]) |
| 319 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 320 | VK_KHR_sampler_mirror_clamp_to_edge = Extension(name='VK_KHR_sampler_mirror_clamp_to_edge', version=3, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 321 | ]) |
| 322 | |
| 323 | VK_KHR_multiview = Extension(name='VK_KHR_multiview', version=1, guard=None, commands=[ |
| 324 | ]) |
| 325 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 326 | VK_KHR_get_physical_device_properties2 = Extension(name='VK_KHR_get_physical_device_properties2', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 327 | Command(name='vkGetPhysicalDeviceFeatures2KHR', dispatch='VkPhysicalDevice'), |
| 328 | Command(name='vkGetPhysicalDeviceProperties2KHR', dispatch='VkPhysicalDevice'), |
| 329 | Command(name='vkGetPhysicalDeviceFormatProperties2KHR', dispatch='VkPhysicalDevice'), |
| 330 | Command(name='vkGetPhysicalDeviceImageFormatProperties2KHR', dispatch='VkPhysicalDevice'), |
| 331 | Command(name='vkGetPhysicalDeviceQueueFamilyProperties2KHR', dispatch='VkPhysicalDevice'), |
| 332 | Command(name='vkGetPhysicalDeviceMemoryProperties2KHR', dispatch='VkPhysicalDevice'), |
| 333 | Command(name='vkGetPhysicalDeviceSparseImageFormatProperties2KHR', dispatch='VkPhysicalDevice'), |
| 334 | ]) |
| 335 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 336 | VK_KHR_device_group = Extension(name='VK_KHR_device_group', version=4, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 337 | Command(name='vkGetDeviceGroupPeerMemoryFeaturesKHR', dispatch='VkDevice'), |
| 338 | Command(name='vkCmdSetDeviceMaskKHR', dispatch='VkCommandBuffer'), |
| 339 | Command(name='vkCmdDispatchBaseKHR', dispatch='VkCommandBuffer'), |
| 340 | ]) |
| 341 | |
| 342 | VK_KHR_shader_draw_parameters = Extension(name='VK_KHR_shader_draw_parameters', version=1, guard=None, commands=[ |
| 343 | ]) |
| 344 | |
| 345 | VK_KHR_maintenance1 = Extension(name='VK_KHR_maintenance1', version=2, guard=None, commands=[ |
| 346 | Command(name='vkTrimCommandPoolKHR', dispatch='VkDevice'), |
| 347 | ]) |
| 348 | |
| 349 | VK_KHR_device_group_creation = Extension(name='VK_KHR_device_group_creation', version=1, guard=None, commands=[ |
| 350 | Command(name='vkEnumeratePhysicalDeviceGroupsKHR', dispatch='VkInstance'), |
| 351 | ]) |
| 352 | |
| 353 | VK_KHR_external_memory_capabilities = Extension(name='VK_KHR_external_memory_capabilities', version=1, guard=None, commands=[ |
| 354 | Command(name='vkGetPhysicalDeviceExternalBufferPropertiesKHR', dispatch='VkPhysicalDevice'), |
| 355 | ]) |
| 356 | |
| 357 | VK_KHR_external_memory = Extension(name='VK_KHR_external_memory', version=1, guard=None, commands=[ |
| 358 | ]) |
| 359 | |
| 360 | VK_KHR_external_memory_fd = Extension(name='VK_KHR_external_memory_fd', version=1, guard=None, commands=[ |
| 361 | Command(name='vkGetMemoryFdKHR', dispatch='VkDevice'), |
| 362 | Command(name='vkGetMemoryFdPropertiesKHR', dispatch='VkDevice'), |
| 363 | ]) |
| 364 | |
| 365 | VK_KHR_external_semaphore_capabilities = Extension(name='VK_KHR_external_semaphore_capabilities', version=1, guard=None, commands=[ |
| 366 | Command(name='vkGetPhysicalDeviceExternalSemaphorePropertiesKHR', dispatch='VkPhysicalDevice'), |
| 367 | ]) |
| 368 | |
| 369 | VK_KHR_external_semaphore = Extension(name='VK_KHR_external_semaphore', version=1, guard=None, commands=[ |
| 370 | ]) |
| 371 | |
| 372 | VK_KHR_external_semaphore_fd = Extension(name='VK_KHR_external_semaphore_fd', version=1, guard=None, commands=[ |
| 373 | Command(name='vkImportSemaphoreFdKHR', dispatch='VkDevice'), |
| 374 | Command(name='vkGetSemaphoreFdKHR', dispatch='VkDevice'), |
| 375 | ]) |
| 376 | |
| 377 | VK_KHR_push_descriptor = Extension(name='VK_KHR_push_descriptor', version=2, guard=None, commands=[ |
| 378 | Command(name='vkCmdPushDescriptorSetKHR', dispatch='VkCommandBuffer'), |
| 379 | Command(name='vkCmdPushDescriptorSetWithTemplateKHR', dispatch='VkCommandBuffer'), |
| 380 | ]) |
| 381 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 382 | VK_KHR_shader_float16_int8 = Extension(name='VK_KHR_shader_float16_int8', version=1, guard=None, commands=[ |
| 383 | ]) |
| 384 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 385 | VK_KHR_16bit_storage = Extension(name='VK_KHR_16bit_storage', version=1, guard=None, commands=[ |
| 386 | ]) |
| 387 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 388 | VK_KHR_incremental_present = Extension(name='VK_KHR_incremental_present', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 389 | ]) |
| 390 | |
| 391 | VK_KHR_descriptor_update_template = Extension(name='VK_KHR_descriptor_update_template', version=1, guard=None, commands=[ |
| 392 | Command(name='vkCreateDescriptorUpdateTemplateKHR', dispatch='VkDevice'), |
| 393 | Command(name='vkDestroyDescriptorUpdateTemplateKHR', dispatch='VkDevice'), |
| 394 | Command(name='vkUpdateDescriptorSetWithTemplateKHR', dispatch='VkDevice'), |
| 395 | ]) |
| 396 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 397 | VK_KHR_imageless_framebuffer = Extension(name='VK_KHR_imageless_framebuffer', version=1, guard=None, commands=[ |
| 398 | ]) |
| 399 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 400 | VK_KHR_create_renderpass2 = Extension(name='VK_KHR_create_renderpass2', version=1, guard=None, commands=[ |
| 401 | Command(name='vkCreateRenderPass2KHR', dispatch='VkDevice'), |
| 402 | Command(name='vkCmdBeginRenderPass2KHR', dispatch='VkCommandBuffer'), |
| 403 | Command(name='vkCmdNextSubpass2KHR', dispatch='VkCommandBuffer'), |
| 404 | Command(name='vkCmdEndRenderPass2KHR', dispatch='VkCommandBuffer'), |
| 405 | ]) |
| 406 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 407 | VK_KHR_shared_presentable_image = Extension(name='VK_KHR_shared_presentable_image', version=1, guard=None, commands=[ |
| 408 | Command(name='vkGetSwapchainStatusKHR', dispatch='VkDevice'), |
| 409 | ]) |
| 410 | |
| 411 | VK_KHR_external_fence_capabilities = Extension(name='VK_KHR_external_fence_capabilities', version=1, guard=None, commands=[ |
| 412 | Command(name='vkGetPhysicalDeviceExternalFencePropertiesKHR', dispatch='VkPhysicalDevice'), |
| 413 | ]) |
| 414 | |
| 415 | VK_KHR_external_fence = Extension(name='VK_KHR_external_fence', version=1, guard=None, commands=[ |
| 416 | ]) |
| 417 | |
| 418 | VK_KHR_external_fence_fd = Extension(name='VK_KHR_external_fence_fd', version=1, guard=None, commands=[ |
| 419 | Command(name='vkImportFenceFdKHR', dispatch='VkDevice'), |
| 420 | Command(name='vkGetFenceFdKHR', dispatch='VkDevice'), |
| 421 | ]) |
| 422 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 423 | VK_KHR_performance_query = Extension(name='VK_KHR_performance_query', version=1, guard=None, commands=[ |
| 424 | Command(name='vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR', dispatch='VkPhysicalDevice'), |
| 425 | Command(name='vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR', dispatch='VkPhysicalDevice'), |
| 426 | Command(name='vkAcquireProfilingLockKHR', dispatch='VkDevice'), |
| 427 | Command(name='vkReleaseProfilingLockKHR', dispatch='VkDevice'), |
| 428 | ]) |
| 429 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 430 | VK_KHR_maintenance2 = Extension(name='VK_KHR_maintenance2', version=1, guard=None, commands=[ |
| 431 | ]) |
| 432 | |
| 433 | VK_KHR_get_surface_capabilities2 = Extension(name='VK_KHR_get_surface_capabilities2', version=1, guard=None, commands=[ |
| 434 | Command(name='vkGetPhysicalDeviceSurfaceCapabilities2KHR', dispatch='VkPhysicalDevice'), |
| 435 | Command(name='vkGetPhysicalDeviceSurfaceFormats2KHR', dispatch='VkPhysicalDevice'), |
| 436 | ]) |
| 437 | |
| 438 | VK_KHR_variable_pointers = Extension(name='VK_KHR_variable_pointers', version=1, guard=None, commands=[ |
| 439 | ]) |
| 440 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 441 | VK_KHR_get_display_properties2 = Extension(name='VK_KHR_get_display_properties2', version=1, guard=None, commands=[ |
| 442 | Command(name='vkGetPhysicalDeviceDisplayProperties2KHR', dispatch='VkPhysicalDevice'), |
| 443 | Command(name='vkGetPhysicalDeviceDisplayPlaneProperties2KHR', dispatch='VkPhysicalDevice'), |
| 444 | Command(name='vkGetDisplayModeProperties2KHR', dispatch='VkPhysicalDevice'), |
| 445 | Command(name='vkGetDisplayPlaneCapabilities2KHR', dispatch='VkPhysicalDevice'), |
| 446 | ]) |
| 447 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 448 | VK_KHR_dedicated_allocation = Extension(name='VK_KHR_dedicated_allocation', version=3, guard=None, commands=[ |
| 449 | ]) |
| 450 | |
| 451 | VK_KHR_storage_buffer_storage_class = Extension(name='VK_KHR_storage_buffer_storage_class', version=1, guard=None, commands=[ |
| 452 | ]) |
| 453 | |
| 454 | VK_KHR_relaxed_block_layout = Extension(name='VK_KHR_relaxed_block_layout', version=1, guard=None, commands=[ |
| 455 | ]) |
| 456 | |
| 457 | VK_KHR_get_memory_requirements2 = Extension(name='VK_KHR_get_memory_requirements2', version=1, guard=None, commands=[ |
| 458 | Command(name='vkGetImageMemoryRequirements2KHR', dispatch='VkDevice'), |
| 459 | Command(name='vkGetBufferMemoryRequirements2KHR', dispatch='VkDevice'), |
| 460 | Command(name='vkGetImageSparseMemoryRequirements2KHR', dispatch='VkDevice'), |
| 461 | ]) |
| 462 | |
| 463 | VK_KHR_image_format_list = Extension(name='VK_KHR_image_format_list', version=1, guard=None, commands=[ |
| 464 | ]) |
| 465 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 466 | VK_KHR_sampler_ycbcr_conversion = Extension(name='VK_KHR_sampler_ycbcr_conversion', version=14, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 467 | Command(name='vkCreateSamplerYcbcrConversionKHR', dispatch='VkDevice'), |
| 468 | Command(name='vkDestroySamplerYcbcrConversionKHR', dispatch='VkDevice'), |
| 469 | ]) |
| 470 | |
| 471 | VK_KHR_bind_memory2 = Extension(name='VK_KHR_bind_memory2', version=1, guard=None, commands=[ |
| 472 | Command(name='vkBindBufferMemory2KHR', dispatch='VkDevice'), |
| 473 | Command(name='vkBindImageMemory2KHR', dispatch='VkDevice'), |
| 474 | ]) |
| 475 | |
| 476 | VK_KHR_maintenance3 = Extension(name='VK_KHR_maintenance3', version=1, guard=None, commands=[ |
| 477 | Command(name='vkGetDescriptorSetLayoutSupportKHR', dispatch='VkDevice'), |
| 478 | ]) |
| 479 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 480 | VK_KHR_draw_indirect_count = Extension(name='VK_KHR_draw_indirect_count', version=1, guard=None, commands=[ |
| 481 | Command(name='vkCmdDrawIndirectCountKHR', dispatch='VkCommandBuffer'), |
| 482 | Command(name='vkCmdDrawIndexedIndirectCountKHR', dispatch='VkCommandBuffer'), |
| 483 | ]) |
| 484 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 485 | VK_KHR_shader_subgroup_extended_types = Extension(name='VK_KHR_shader_subgroup_extended_types', version=1, guard=None, commands=[ |
| 486 | ]) |
| 487 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 488 | VK_KHR_8bit_storage = Extension(name='VK_KHR_8bit_storage', version=1, guard=None, commands=[ |
| 489 | ]) |
| 490 | |
| 491 | VK_KHR_shader_atomic_int64 = Extension(name='VK_KHR_shader_atomic_int64', version=1, guard=None, commands=[ |
| 492 | ]) |
| 493 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 494 | VK_KHR_shader_clock = Extension(name='VK_KHR_shader_clock', version=1, guard=None, commands=[ |
| 495 | ]) |
| 496 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 497 | VK_KHR_driver_properties = Extension(name='VK_KHR_driver_properties', version=1, guard=None, commands=[ |
| 498 | ]) |
| 499 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 500 | VK_KHR_shader_float_controls = Extension(name='VK_KHR_shader_float_controls', version=4, guard=None, commands=[ |
| 501 | ]) |
| 502 | |
| 503 | VK_KHR_depth_stencil_resolve = Extension(name='VK_KHR_depth_stencil_resolve', version=1, guard=None, commands=[ |
| 504 | ]) |
| 505 | |
| 506 | VK_KHR_swapchain_mutable_format = Extension(name='VK_KHR_swapchain_mutable_format', version=1, guard=None, commands=[ |
| 507 | ]) |
| 508 | |
| 509 | VK_KHR_timeline_semaphore = Extension(name='VK_KHR_timeline_semaphore', version=2, guard=None, commands=[ |
| 510 | Command(name='vkGetSemaphoreCounterValueKHR', dispatch='VkDevice'), |
| 511 | Command(name='vkWaitSemaphoresKHR', dispatch='VkDevice'), |
| 512 | Command(name='vkSignalSemaphoreKHR', dispatch='VkDevice'), |
| 513 | ]) |
| 514 | |
| 515 | VK_KHR_vulkan_memory_model = Extension(name='VK_KHR_vulkan_memory_model', version=3, guard=None, commands=[ |
| 516 | ]) |
| 517 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 518 | VK_KHR_shader_terminate_invocation = Extension(name='VK_KHR_shader_terminate_invocation', version=1, guard=None, commands=[ |
| 519 | ]) |
| 520 | |
| 521 | VK_KHR_fragment_shading_rate = Extension(name='VK_KHR_fragment_shading_rate', version=1, guard=None, commands=[ |
| 522 | Command(name='vkGetPhysicalDeviceFragmentShadingRatesKHR', dispatch='VkPhysicalDevice'), |
| 523 | Command(name='vkCmdSetFragmentShadingRateKHR', dispatch='VkCommandBuffer'), |
| 524 | ]) |
| 525 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 526 | VK_KHR_spirv_1_4 = Extension(name='VK_KHR_spirv_1_4', version=1, guard=None, commands=[ |
| 527 | ]) |
| 528 | |
| 529 | VK_KHR_surface_protected_capabilities = Extension(name='VK_KHR_surface_protected_capabilities', version=1, guard=None, commands=[ |
| 530 | ]) |
| 531 | |
| 532 | VK_KHR_separate_depth_stencil_layouts = Extension(name='VK_KHR_separate_depth_stencil_layouts', version=1, guard=None, commands=[ |
| 533 | ]) |
| 534 | |
| 535 | VK_KHR_uniform_buffer_standard_layout = Extension(name='VK_KHR_uniform_buffer_standard_layout', version=1, guard=None, commands=[ |
| 536 | ]) |
| 537 | |
| 538 | VK_KHR_buffer_device_address = Extension(name='VK_KHR_buffer_device_address', version=1, guard=None, commands=[ |
| 539 | Command(name='vkGetBufferDeviceAddressKHR', dispatch='VkDevice'), |
| 540 | Command(name='vkGetBufferOpaqueCaptureAddressKHR', dispatch='VkDevice'), |
| 541 | Command(name='vkGetDeviceMemoryOpaqueCaptureAddressKHR', dispatch='VkDevice'), |
| 542 | ]) |
| 543 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 544 | VK_KHR_deferred_host_operations = Extension(name='VK_KHR_deferred_host_operations', version=4, guard=None, commands=[ |
| 545 | Command(name='vkCreateDeferredOperationKHR', dispatch='VkDevice'), |
| 546 | Command(name='vkDestroyDeferredOperationKHR', dispatch='VkDevice'), |
| 547 | Command(name='vkGetDeferredOperationMaxConcurrencyKHR', dispatch='VkDevice'), |
| 548 | Command(name='vkGetDeferredOperationResultKHR', dispatch='VkDevice'), |
| 549 | Command(name='vkDeferredOperationJoinKHR', dispatch='VkDevice'), |
| 550 | ]) |
| 551 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 552 | VK_KHR_pipeline_executable_properties = Extension(name='VK_KHR_pipeline_executable_properties', version=1, guard=None, commands=[ |
| 553 | Command(name='vkGetPipelineExecutablePropertiesKHR', dispatch='VkDevice'), |
| 554 | Command(name='vkGetPipelineExecutableStatisticsKHR', dispatch='VkDevice'), |
| 555 | Command(name='vkGetPipelineExecutableInternalRepresentationsKHR', dispatch='VkDevice'), |
| 556 | ]) |
| 557 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 558 | VK_KHR_pipeline_library = Extension(name='VK_KHR_pipeline_library', version=1, guard=None, commands=[ |
| 559 | ]) |
| 560 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 561 | VK_KHR_shader_non_semantic_info = Extension(name='VK_KHR_shader_non_semantic_info', version=1, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 562 | ]) |
| 563 | |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 564 | VK_KHR_synchronization2 = Extension(name='VK_KHR_synchronization2', version=1, guard=None, commands=[ |
| 565 | Command(name='vkCmdSetEvent2KHR', dispatch='VkCommandBuffer'), |
| 566 | Command(name='vkCmdResetEvent2KHR', dispatch='VkCommandBuffer'), |
| 567 | Command(name='vkCmdWaitEvents2KHR', dispatch='VkCommandBuffer'), |
| 568 | Command(name='vkCmdPipelineBarrier2KHR', dispatch='VkCommandBuffer'), |
| 569 | Command(name='vkCmdWriteTimestamp2KHR', dispatch='VkCommandBuffer'), |
| 570 | Command(name='vkQueueSubmit2KHR', dispatch='VkQueue'), |
| 571 | Command(name='vkCmdWriteBufferMarker2AMD', dispatch='VkCommandBuffer'), |
| 572 | Command(name='vkGetQueueCheckpointData2NV', dispatch='VkQueue'), |
| 573 | ]) |
| 574 | |
| 575 | VK_KHR_zero_initialize_workgroup_memory = Extension(name='VK_KHR_zero_initialize_workgroup_memory', version=1, guard=None, commands=[ |
| 576 | ]) |
| 577 | |
| 578 | VK_KHR_workgroup_memory_explicit_layout = Extension(name='VK_KHR_workgroup_memory_explicit_layout', version=1, guard=None, commands=[ |
| 579 | ]) |
| 580 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 581 | VK_KHR_copy_commands2 = Extension(name='VK_KHR_copy_commands2', version=1, guard=None, commands=[ |
| 582 | Command(name='vkCmdCopyBuffer2KHR', dispatch='VkCommandBuffer'), |
| 583 | Command(name='vkCmdCopyImage2KHR', dispatch='VkCommandBuffer'), |
| 584 | Command(name='vkCmdCopyBufferToImage2KHR', dispatch='VkCommandBuffer'), |
| 585 | Command(name='vkCmdCopyImageToBuffer2KHR', dispatch='VkCommandBuffer'), |
| 586 | Command(name='vkCmdBlitImage2KHR', dispatch='VkCommandBuffer'), |
| 587 | Command(name='vkCmdResolveImage2KHR', dispatch='VkCommandBuffer'), |
| 588 | ]) |
| 589 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 590 | VK_EXT_debug_report = Extension(name='VK_EXT_debug_report', version=10, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 591 | Command(name='vkCreateDebugReportCallbackEXT', dispatch='VkInstance'), |
| 592 | Command(name='vkDestroyDebugReportCallbackEXT', dispatch='VkInstance'), |
| 593 | Command(name='vkDebugReportMessageEXT', dispatch='VkInstance'), |
| 594 | ]) |
| 595 | |
| 596 | VK_NV_glsl_shader = Extension(name='VK_NV_glsl_shader', version=1, guard=None, commands=[ |
| 597 | ]) |
| 598 | |
| 599 | VK_EXT_depth_range_unrestricted = Extension(name='VK_EXT_depth_range_unrestricted', version=1, guard=None, commands=[ |
| 600 | ]) |
| 601 | |
| 602 | VK_IMG_filter_cubic = Extension(name='VK_IMG_filter_cubic', version=1, guard=None, commands=[ |
| 603 | ]) |
| 604 | |
| 605 | VK_AMD_rasterization_order = Extension(name='VK_AMD_rasterization_order', version=1, guard=None, commands=[ |
| 606 | ]) |
| 607 | |
| 608 | VK_AMD_shader_trinary_minmax = Extension(name='VK_AMD_shader_trinary_minmax', version=1, guard=None, commands=[ |
| 609 | ]) |
| 610 | |
| 611 | VK_AMD_shader_explicit_vertex_parameter = Extension(name='VK_AMD_shader_explicit_vertex_parameter', version=1, guard=None, commands=[ |
| 612 | ]) |
| 613 | |
| 614 | VK_EXT_debug_marker = Extension(name='VK_EXT_debug_marker', version=4, guard=None, commands=[ |
| 615 | Command(name='vkDebugMarkerSetObjectTagEXT', dispatch='VkDevice'), |
| 616 | Command(name='vkDebugMarkerSetObjectNameEXT', dispatch='VkDevice'), |
| 617 | Command(name='vkCmdDebugMarkerBeginEXT', dispatch='VkCommandBuffer'), |
| 618 | Command(name='vkCmdDebugMarkerEndEXT', dispatch='VkCommandBuffer'), |
| 619 | Command(name='vkCmdDebugMarkerInsertEXT', dispatch='VkCommandBuffer'), |
| 620 | ]) |
| 621 | |
| 622 | VK_AMD_gcn_shader = Extension(name='VK_AMD_gcn_shader', version=1, guard=None, commands=[ |
| 623 | ]) |
| 624 | |
| 625 | VK_NV_dedicated_allocation = Extension(name='VK_NV_dedicated_allocation', version=1, guard=None, commands=[ |
| 626 | ]) |
| 627 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 628 | VK_EXT_transform_feedback = Extension(name='VK_EXT_transform_feedback', version=1, guard=None, commands=[ |
| 629 | Command(name='vkCmdBindTransformFeedbackBuffersEXT', dispatch='VkCommandBuffer'), |
| 630 | Command(name='vkCmdBeginTransformFeedbackEXT', dispatch='VkCommandBuffer'), |
| 631 | Command(name='vkCmdEndTransformFeedbackEXT', dispatch='VkCommandBuffer'), |
| 632 | Command(name='vkCmdBeginQueryIndexedEXT', dispatch='VkCommandBuffer'), |
| 633 | Command(name='vkCmdEndQueryIndexedEXT', dispatch='VkCommandBuffer'), |
| 634 | Command(name='vkCmdDrawIndirectByteCountEXT', dispatch='VkCommandBuffer'), |
| 635 | ]) |
| 636 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 637 | VK_NVX_image_view_handle = Extension(name='VK_NVX_image_view_handle', version=2, guard=None, commands=[ |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 638 | Command(name='vkGetImageViewHandleNVX', dispatch='VkDevice'), |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 639 | Command(name='vkGetImageViewAddressNVX', dispatch='VkDevice'), |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 640 | ]) |
| 641 | |
| 642 | VK_AMD_draw_indirect_count = Extension(name='VK_AMD_draw_indirect_count', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 643 | Command(name='vkCmdDrawIndirectCountAMD', dispatch='VkCommandBuffer'), |
| 644 | Command(name='vkCmdDrawIndexedIndirectCountAMD', dispatch='VkCommandBuffer'), |
| 645 | ]) |
| 646 | |
| 647 | VK_AMD_negative_viewport_height = Extension(name='VK_AMD_negative_viewport_height', version=1, guard=None, commands=[ |
| 648 | ]) |
| 649 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 650 | VK_AMD_gpu_shader_half_float = Extension(name='VK_AMD_gpu_shader_half_float', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 651 | ]) |
| 652 | |
| 653 | VK_AMD_shader_ballot = Extension(name='VK_AMD_shader_ballot', version=1, guard=None, commands=[ |
| 654 | ]) |
| 655 | |
| 656 | VK_AMD_texture_gather_bias_lod = Extension(name='VK_AMD_texture_gather_bias_lod', version=1, guard=None, commands=[ |
| 657 | ]) |
| 658 | |
| 659 | VK_AMD_shader_info = Extension(name='VK_AMD_shader_info', version=1, guard=None, commands=[ |
| 660 | Command(name='vkGetShaderInfoAMD', dispatch='VkDevice'), |
| 661 | ]) |
| 662 | |
| 663 | VK_AMD_shader_image_load_store_lod = Extension(name='VK_AMD_shader_image_load_store_lod', version=1, guard=None, commands=[ |
| 664 | ]) |
| 665 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 666 | VK_NV_corner_sampled_image = Extension(name='VK_NV_corner_sampled_image', version=2, guard=None, commands=[ |
| 667 | ]) |
| 668 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 669 | VK_IMG_format_pvrtc = Extension(name='VK_IMG_format_pvrtc', version=1, guard=None, commands=[ |
| 670 | ]) |
| 671 | |
| 672 | VK_NV_external_memory_capabilities = Extension(name='VK_NV_external_memory_capabilities', version=1, guard=None, commands=[ |
| 673 | Command(name='vkGetPhysicalDeviceExternalImageFormatPropertiesNV', dispatch='VkPhysicalDevice'), |
| 674 | ]) |
| 675 | |
| 676 | VK_NV_external_memory = Extension(name='VK_NV_external_memory', version=1, guard=None, commands=[ |
| 677 | ]) |
| 678 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 679 | VK_EXT_validation_flags = Extension(name='VK_EXT_validation_flags', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 680 | ]) |
| 681 | |
| 682 | VK_EXT_shader_subgroup_ballot = Extension(name='VK_EXT_shader_subgroup_ballot', version=1, guard=None, commands=[ |
| 683 | ]) |
| 684 | |
| 685 | VK_EXT_shader_subgroup_vote = Extension(name='VK_EXT_shader_subgroup_vote', version=1, guard=None, commands=[ |
| 686 | ]) |
| 687 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 688 | VK_EXT_texture_compression_astc_hdr = Extension(name='VK_EXT_texture_compression_astc_hdr', version=1, guard=None, commands=[ |
| 689 | ]) |
| 690 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 691 | VK_EXT_astc_decode_mode = Extension(name='VK_EXT_astc_decode_mode', version=1, guard=None, commands=[ |
| 692 | ]) |
| 693 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 694 | VK_EXT_conditional_rendering = Extension(name='VK_EXT_conditional_rendering', version=2, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 695 | Command(name='vkCmdBeginConditionalRenderingEXT', dispatch='VkCommandBuffer'), |
| 696 | Command(name='vkCmdEndConditionalRenderingEXT', dispatch='VkCommandBuffer'), |
| 697 | ]) |
| 698 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 699 | VK_NV_clip_space_w_scaling = Extension(name='VK_NV_clip_space_w_scaling', version=1, guard=None, commands=[ |
| 700 | Command(name='vkCmdSetViewportWScalingNV', dispatch='VkCommandBuffer'), |
| 701 | ]) |
| 702 | |
| 703 | VK_EXT_direct_mode_display = Extension(name='VK_EXT_direct_mode_display', version=1, guard=None, commands=[ |
| 704 | Command(name='vkReleaseDisplayEXT', dispatch='VkPhysicalDevice'), |
| 705 | ]) |
| 706 | |
| 707 | VK_EXT_display_surface_counter = Extension(name='VK_EXT_display_surface_counter', version=1, guard=None, commands=[ |
| 708 | Command(name='vkGetPhysicalDeviceSurfaceCapabilities2EXT', dispatch='VkPhysicalDevice'), |
| 709 | ]) |
| 710 | |
| 711 | VK_EXT_display_control = Extension(name='VK_EXT_display_control', version=1, guard=None, commands=[ |
| 712 | Command(name='vkDisplayPowerControlEXT', dispatch='VkDevice'), |
| 713 | Command(name='vkRegisterDeviceEventEXT', dispatch='VkDevice'), |
| 714 | Command(name='vkRegisterDisplayEventEXT', dispatch='VkDevice'), |
| 715 | Command(name='vkGetSwapchainCounterEXT', dispatch='VkDevice'), |
| 716 | ]) |
| 717 | |
| 718 | VK_GOOGLE_display_timing = Extension(name='VK_GOOGLE_display_timing', version=1, guard=None, commands=[ |
| 719 | Command(name='vkGetRefreshCycleDurationGOOGLE', dispatch='VkDevice'), |
| 720 | Command(name='vkGetPastPresentationTimingGOOGLE', dispatch='VkDevice'), |
| 721 | ]) |
| 722 | |
| 723 | VK_NV_sample_mask_override_coverage = Extension(name='VK_NV_sample_mask_override_coverage', version=1, guard=None, commands=[ |
| 724 | ]) |
| 725 | |
| 726 | VK_NV_geometry_shader_passthrough = Extension(name='VK_NV_geometry_shader_passthrough', version=1, guard=None, commands=[ |
| 727 | ]) |
| 728 | |
| 729 | VK_NV_viewport_array2 = Extension(name='VK_NV_viewport_array2', version=1, guard=None, commands=[ |
| 730 | ]) |
| 731 | |
| 732 | VK_NVX_multiview_per_view_attributes = Extension(name='VK_NVX_multiview_per_view_attributes', version=1, guard=None, commands=[ |
| 733 | ]) |
| 734 | |
| 735 | VK_NV_viewport_swizzle = Extension(name='VK_NV_viewport_swizzle', version=1, guard=None, commands=[ |
| 736 | ]) |
| 737 | |
| 738 | VK_EXT_discard_rectangles = Extension(name='VK_EXT_discard_rectangles', version=1, guard=None, commands=[ |
| 739 | Command(name='vkCmdSetDiscardRectangleEXT', dispatch='VkCommandBuffer'), |
| 740 | ]) |
| 741 | |
| 742 | VK_EXT_conservative_rasterization = Extension(name='VK_EXT_conservative_rasterization', version=1, guard=None, commands=[ |
| 743 | ]) |
| 744 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 745 | VK_EXT_depth_clip_enable = Extension(name='VK_EXT_depth_clip_enable', version=1, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 746 | ]) |
| 747 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 748 | VK_EXT_swapchain_colorspace = Extension(name='VK_EXT_swapchain_colorspace', version=4, guard=None, commands=[ |
| 749 | ]) |
| 750 | |
| 751 | VK_EXT_hdr_metadata = Extension(name='VK_EXT_hdr_metadata', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 752 | Command(name='vkSetHdrMetadataEXT', dispatch='VkDevice'), |
| 753 | ]) |
| 754 | |
| 755 | VK_EXT_external_memory_dma_buf = Extension(name='VK_EXT_external_memory_dma_buf', version=1, guard=None, commands=[ |
| 756 | ]) |
| 757 | |
| 758 | VK_EXT_queue_family_foreign = Extension(name='VK_EXT_queue_family_foreign', version=1, guard=None, commands=[ |
| 759 | ]) |
| 760 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 761 | VK_EXT_debug_utils = Extension(name='VK_EXT_debug_utils', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 762 | Command(name='vkSetDebugUtilsObjectNameEXT', dispatch='VkDevice'), |
| 763 | Command(name='vkSetDebugUtilsObjectTagEXT', dispatch='VkDevice'), |
| 764 | Command(name='vkQueueBeginDebugUtilsLabelEXT', dispatch='VkQueue'), |
| 765 | Command(name='vkQueueEndDebugUtilsLabelEXT', dispatch='VkQueue'), |
| 766 | Command(name='vkQueueInsertDebugUtilsLabelEXT', dispatch='VkQueue'), |
| 767 | Command(name='vkCmdBeginDebugUtilsLabelEXT', dispatch='VkCommandBuffer'), |
| 768 | Command(name='vkCmdEndDebugUtilsLabelEXT', dispatch='VkCommandBuffer'), |
| 769 | Command(name='vkCmdInsertDebugUtilsLabelEXT', dispatch='VkCommandBuffer'), |
| 770 | Command(name='vkCreateDebugUtilsMessengerEXT', dispatch='VkInstance'), |
| 771 | Command(name='vkDestroyDebugUtilsMessengerEXT', dispatch='VkInstance'), |
| 772 | Command(name='vkSubmitDebugUtilsMessageEXT', dispatch='VkInstance'), |
| 773 | ]) |
| 774 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 775 | VK_EXT_sampler_filter_minmax = Extension(name='VK_EXT_sampler_filter_minmax', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 776 | ]) |
| 777 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 778 | VK_AMD_gpu_shader_int16 = Extension(name='VK_AMD_gpu_shader_int16', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 779 | ]) |
| 780 | |
| 781 | VK_AMD_mixed_attachment_samples = Extension(name='VK_AMD_mixed_attachment_samples', version=1, guard=None, commands=[ |
| 782 | ]) |
| 783 | |
| 784 | VK_AMD_shader_fragment_mask = Extension(name='VK_AMD_shader_fragment_mask', version=1, guard=None, commands=[ |
| 785 | ]) |
| 786 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 787 | VK_EXT_inline_uniform_block = Extension(name='VK_EXT_inline_uniform_block', version=1, guard=None, commands=[ |
| 788 | ]) |
| 789 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 790 | VK_EXT_shader_stencil_export = Extension(name='VK_EXT_shader_stencil_export', version=1, guard=None, commands=[ |
| 791 | ]) |
| 792 | |
| 793 | VK_EXT_sample_locations = Extension(name='VK_EXT_sample_locations', version=1, guard=None, commands=[ |
| 794 | Command(name='vkCmdSetSampleLocationsEXT', dispatch='VkCommandBuffer'), |
| 795 | Command(name='vkGetPhysicalDeviceMultisamplePropertiesEXT', dispatch='VkPhysicalDevice'), |
| 796 | ]) |
| 797 | |
| 798 | VK_EXT_blend_operation_advanced = Extension(name='VK_EXT_blend_operation_advanced', version=2, guard=None, commands=[ |
| 799 | ]) |
| 800 | |
| 801 | VK_NV_fragment_coverage_to_color = Extension(name='VK_NV_fragment_coverage_to_color', version=1, guard=None, commands=[ |
| 802 | ]) |
| 803 | |
| 804 | VK_NV_framebuffer_mixed_samples = Extension(name='VK_NV_framebuffer_mixed_samples', version=1, guard=None, commands=[ |
| 805 | ]) |
| 806 | |
| 807 | VK_NV_fill_rectangle = Extension(name='VK_NV_fill_rectangle', version=1, guard=None, commands=[ |
| 808 | ]) |
| 809 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 810 | VK_NV_shader_sm_builtins = Extension(name='VK_NV_shader_sm_builtins', version=1, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 811 | ]) |
| 812 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 813 | VK_EXT_post_depth_coverage = Extension(name='VK_EXT_post_depth_coverage', version=1, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 814 | ]) |
| 815 | |
| 816 | VK_EXT_image_drm_format_modifier = Extension(name='VK_EXT_image_drm_format_modifier', version=1, guard=None, commands=[ |
| 817 | Command(name='vkGetImageDrmFormatModifierPropertiesEXT', dispatch='VkDevice'), |
| 818 | ]) |
| 819 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 820 | VK_EXT_validation_cache = Extension(name='VK_EXT_validation_cache', version=1, guard=None, commands=[ |
| 821 | Command(name='vkCreateValidationCacheEXT', dispatch='VkDevice'), |
| 822 | Command(name='vkDestroyValidationCacheEXT', dispatch='VkDevice'), |
| 823 | Command(name='vkMergeValidationCachesEXT', dispatch='VkDevice'), |
| 824 | Command(name='vkGetValidationCacheDataEXT', dispatch='VkDevice'), |
| 825 | ]) |
| 826 | |
| 827 | VK_EXT_descriptor_indexing = Extension(name='VK_EXT_descriptor_indexing', version=2, guard=None, commands=[ |
| 828 | ]) |
| 829 | |
| 830 | VK_EXT_shader_viewport_index_layer = Extension(name='VK_EXT_shader_viewport_index_layer', version=1, guard=None, commands=[ |
| 831 | ]) |
| 832 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 833 | VK_NV_shading_rate_image = Extension(name='VK_NV_shading_rate_image', version=3, guard=None, commands=[ |
| 834 | Command(name='vkCmdBindShadingRateImageNV', dispatch='VkCommandBuffer'), |
| 835 | Command(name='vkCmdSetViewportShadingRatePaletteNV', dispatch='VkCommandBuffer'), |
| 836 | Command(name='vkCmdSetCoarseSampleOrderNV', dispatch='VkCommandBuffer'), |
| 837 | ]) |
| 838 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 839 | VK_NV_ray_tracing = Extension(name='VK_NV_ray_tracing', version=3, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 840 | Command(name='vkCreateAccelerationStructureNV', dispatch='VkDevice'), |
| 841 | Command(name='vkDestroyAccelerationStructureNV', dispatch='VkDevice'), |
| 842 | Command(name='vkGetAccelerationStructureMemoryRequirementsNV', dispatch='VkDevice'), |
| 843 | Command(name='vkBindAccelerationStructureMemoryNV', dispatch='VkDevice'), |
| 844 | Command(name='vkCmdBuildAccelerationStructureNV', dispatch='VkCommandBuffer'), |
| 845 | Command(name='vkCmdCopyAccelerationStructureNV', dispatch='VkCommandBuffer'), |
| 846 | Command(name='vkCmdTraceRaysNV', dispatch='VkCommandBuffer'), |
| 847 | Command(name='vkCreateRayTracingPipelinesNV', dispatch='VkDevice'), |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 848 | Command(name='vkGetRayTracingShaderGroupHandlesKHR', dispatch='VkDevice'), |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 849 | Command(name='vkGetRayTracingShaderGroupHandlesNV', dispatch='VkDevice'), |
| 850 | Command(name='vkGetAccelerationStructureHandleNV', dispatch='VkDevice'), |
| 851 | Command(name='vkCmdWriteAccelerationStructuresPropertiesNV', dispatch='VkCommandBuffer'), |
| 852 | Command(name='vkCompileDeferredNV', dispatch='VkDevice'), |
| 853 | ]) |
| 854 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 855 | VK_NV_representative_fragment_test = Extension(name='VK_NV_representative_fragment_test', version=2, guard=None, commands=[ |
| 856 | ]) |
| 857 | |
| 858 | VK_EXT_filter_cubic = Extension(name='VK_EXT_filter_cubic', version=3, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 859 | ]) |
| 860 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 861 | VK_QCOM_render_pass_shader_resolve = Extension(name='VK_QCOM_render_pass_shader_resolve', version=4, guard=None, commands=[ |
| 862 | ]) |
| 863 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 864 | VK_EXT_global_priority = Extension(name='VK_EXT_global_priority', version=2, guard=None, commands=[ |
| 865 | ]) |
| 866 | |
| 867 | VK_EXT_external_memory_host = Extension(name='VK_EXT_external_memory_host', version=1, guard=None, commands=[ |
| 868 | Command(name='vkGetMemoryHostPointerPropertiesEXT', dispatch='VkDevice'), |
| 869 | ]) |
| 870 | |
| 871 | VK_AMD_buffer_marker = Extension(name='VK_AMD_buffer_marker', version=1, guard=None, commands=[ |
| 872 | Command(name='vkCmdWriteBufferMarkerAMD', dispatch='VkCommandBuffer'), |
| 873 | ]) |
| 874 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 875 | VK_AMD_pipeline_compiler_control = Extension(name='VK_AMD_pipeline_compiler_control', version=1, guard=None, commands=[ |
| 876 | ]) |
| 877 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 878 | VK_EXT_calibrated_timestamps = Extension(name='VK_EXT_calibrated_timestamps', version=2, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 879 | Command(name='vkGetPhysicalDeviceCalibrateableTimeDomainsEXT', dispatch='VkPhysicalDevice'), |
| 880 | Command(name='vkGetCalibratedTimestampsEXT', dispatch='VkDevice'), |
| 881 | ]) |
| 882 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 883 | VK_AMD_shader_core_properties = Extension(name='VK_AMD_shader_core_properties', version=2, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 884 | ]) |
| 885 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 886 | VK_AMD_memory_overallocation_behavior = Extension(name='VK_AMD_memory_overallocation_behavior', version=1, guard=None, commands=[ |
| 887 | ]) |
| 888 | |
| 889 | VK_EXT_vertex_attribute_divisor = Extension(name='VK_EXT_vertex_attribute_divisor', version=3, guard=None, commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 890 | ]) |
| 891 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 892 | VK_EXT_pipeline_creation_feedback = Extension(name='VK_EXT_pipeline_creation_feedback', version=1, guard=None, commands=[ |
| 893 | ]) |
| 894 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 895 | VK_NV_shader_subgroup_partitioned = Extension(name='VK_NV_shader_subgroup_partitioned', version=1, guard=None, commands=[ |
| 896 | ]) |
| 897 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 898 | VK_NV_compute_shader_derivatives = Extension(name='VK_NV_compute_shader_derivatives', version=1, guard=None, commands=[ |
| 899 | ]) |
| 900 | |
| 901 | VK_NV_mesh_shader = Extension(name='VK_NV_mesh_shader', version=1, guard=None, commands=[ |
| 902 | Command(name='vkCmdDrawMeshTasksNV', dispatch='VkCommandBuffer'), |
| 903 | Command(name='vkCmdDrawMeshTasksIndirectNV', dispatch='VkCommandBuffer'), |
| 904 | Command(name='vkCmdDrawMeshTasksIndirectCountNV', dispatch='VkCommandBuffer'), |
| 905 | ]) |
| 906 | |
| 907 | VK_NV_fragment_shader_barycentric = Extension(name='VK_NV_fragment_shader_barycentric', version=1, guard=None, commands=[ |
| 908 | ]) |
| 909 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 910 | VK_NV_shader_image_footprint = Extension(name='VK_NV_shader_image_footprint', version=2, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 911 | ]) |
| 912 | |
| 913 | VK_NV_scissor_exclusive = Extension(name='VK_NV_scissor_exclusive', version=1, guard=None, commands=[ |
| 914 | Command(name='vkCmdSetExclusiveScissorNV', dispatch='VkCommandBuffer'), |
| 915 | ]) |
| 916 | |
| 917 | VK_NV_device_diagnostic_checkpoints = Extension(name='VK_NV_device_diagnostic_checkpoints', version=2, guard=None, commands=[ |
| 918 | Command(name='vkCmdSetCheckpointNV', dispatch='VkCommandBuffer'), |
| 919 | Command(name='vkGetQueueCheckpointDataNV', dispatch='VkQueue'), |
| 920 | ]) |
| 921 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 922 | VK_INTEL_shader_integer_functions2 = Extension(name='VK_INTEL_shader_integer_functions2', version=1, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 923 | ]) |
| 924 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 925 | VK_INTEL_performance_query = Extension(name='VK_INTEL_performance_query', version=2, guard=None, commands=[ |
| 926 | Command(name='vkInitializePerformanceApiINTEL', dispatch='VkDevice'), |
| 927 | Command(name='vkUninitializePerformanceApiINTEL', dispatch='VkDevice'), |
| 928 | Command(name='vkCmdSetPerformanceMarkerINTEL', dispatch='VkCommandBuffer'), |
| 929 | Command(name='vkCmdSetPerformanceStreamMarkerINTEL', dispatch='VkCommandBuffer'), |
| 930 | Command(name='vkCmdSetPerformanceOverrideINTEL', dispatch='VkCommandBuffer'), |
| 931 | Command(name='vkAcquirePerformanceConfigurationINTEL', dispatch='VkDevice'), |
| 932 | Command(name='vkReleasePerformanceConfigurationINTEL', dispatch='VkDevice'), |
| 933 | Command(name='vkQueueSetPerformanceConfigurationINTEL', dispatch='VkQueue'), |
| 934 | Command(name='vkGetPerformanceParameterINTEL', dispatch='VkDevice'), |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 935 | ]) |
| 936 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 937 | VK_EXT_pci_bus_info = Extension(name='VK_EXT_pci_bus_info', version=2, guard=None, commands=[ |
| 938 | ]) |
| 939 | |
| 940 | VK_AMD_display_native_hdr = Extension(name='VK_AMD_display_native_hdr', version=1, guard=None, commands=[ |
| 941 | Command(name='vkSetLocalDimmingAMD', dispatch='VkDevice'), |
| 942 | ]) |
| 943 | |
| 944 | VK_EXT_fragment_density_map = Extension(name='VK_EXT_fragment_density_map', version=1, guard=None, commands=[ |
| 945 | ]) |
| 946 | |
| 947 | VK_EXT_scalar_block_layout = Extension(name='VK_EXT_scalar_block_layout', version=1, guard=None, commands=[ |
| 948 | ]) |
| 949 | |
| 950 | VK_GOOGLE_hlsl_functionality1 = Extension(name='VK_GOOGLE_hlsl_functionality1', version=1, guard=None, commands=[ |
| 951 | ]) |
| 952 | |
| 953 | VK_GOOGLE_decorate_string = Extension(name='VK_GOOGLE_decorate_string', version=1, guard=None, commands=[ |
| 954 | ]) |
| 955 | |
| 956 | VK_EXT_subgroup_size_control = Extension(name='VK_EXT_subgroup_size_control', version=2, guard=None, commands=[ |
| 957 | ]) |
| 958 | |
| 959 | VK_AMD_shader_core_properties2 = Extension(name='VK_AMD_shader_core_properties2', version=1, guard=None, commands=[ |
| 960 | ]) |
| 961 | |
| 962 | VK_AMD_device_coherent_memory = Extension(name='VK_AMD_device_coherent_memory', version=1, guard=None, commands=[ |
| 963 | ]) |
| 964 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 965 | VK_EXT_shader_image_atomic_int64 = Extension(name='VK_EXT_shader_image_atomic_int64', version=1, guard=None, commands=[ |
| 966 | ]) |
| 967 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 968 | VK_EXT_memory_budget = Extension(name='VK_EXT_memory_budget', version=1, guard=None, commands=[ |
| 969 | ]) |
| 970 | |
| 971 | VK_EXT_memory_priority = Extension(name='VK_EXT_memory_priority', version=1, guard=None, commands=[ |
| 972 | ]) |
| 973 | |
| 974 | VK_NV_dedicated_allocation_image_aliasing = Extension(name='VK_NV_dedicated_allocation_image_aliasing', version=1, guard=None, commands=[ |
| 975 | ]) |
| 976 | |
| 977 | VK_EXT_buffer_device_address = Extension(name='VK_EXT_buffer_device_address', version=2, guard=None, commands=[ |
| 978 | Command(name='vkGetBufferDeviceAddressEXT', dispatch='VkDevice'), |
| 979 | ]) |
| 980 | |
| 981 | VK_EXT_tooling_info = Extension(name='VK_EXT_tooling_info', version=1, guard=None, commands=[ |
| 982 | Command(name='vkGetPhysicalDeviceToolPropertiesEXT', dispatch='VkPhysicalDevice'), |
| 983 | ]) |
| 984 | |
| 985 | VK_EXT_separate_stencil_usage = Extension(name='VK_EXT_separate_stencil_usage', version=1, guard=None, commands=[ |
| 986 | ]) |
| 987 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 988 | VK_EXT_validation_features = Extension(name='VK_EXT_validation_features', version=4, guard=None, commands=[ |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 989 | ]) |
| 990 | |
| 991 | VK_NV_cooperative_matrix = Extension(name='VK_NV_cooperative_matrix', version=1, guard=None, commands=[ |
| 992 | Command(name='vkGetPhysicalDeviceCooperativeMatrixPropertiesNV', dispatch='VkPhysicalDevice'), |
| 993 | ]) |
| 994 | |
| 995 | VK_NV_coverage_reduction_mode = Extension(name='VK_NV_coverage_reduction_mode', version=1, guard=None, commands=[ |
| 996 | Command(name='vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV', dispatch='VkPhysicalDevice'), |
| 997 | ]) |
| 998 | |
| 999 | VK_EXT_fragment_shader_interlock = Extension(name='VK_EXT_fragment_shader_interlock', version=1, guard=None, commands=[ |
| 1000 | ]) |
| 1001 | |
| 1002 | VK_EXT_ycbcr_image_arrays = Extension(name='VK_EXT_ycbcr_image_arrays', version=1, guard=None, commands=[ |
| 1003 | ]) |
| 1004 | |
| 1005 | VK_EXT_headless_surface = Extension(name='VK_EXT_headless_surface', version=1, guard=None, commands=[ |
| 1006 | Command(name='vkCreateHeadlessSurfaceEXT', dispatch='VkInstance'), |
| 1007 | ]) |
| 1008 | |
| 1009 | VK_EXT_line_rasterization = Extension(name='VK_EXT_line_rasterization', version=1, guard=None, commands=[ |
| 1010 | Command(name='vkCmdSetLineStippleEXT', dispatch='VkCommandBuffer'), |
| 1011 | ]) |
| 1012 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1013 | VK_EXT_shader_atomic_float = Extension(name='VK_EXT_shader_atomic_float', version=1, guard=None, commands=[ |
| 1014 | ]) |
| 1015 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1016 | VK_EXT_host_query_reset = Extension(name='VK_EXT_host_query_reset', version=1, guard=None, commands=[ |
| 1017 | Command(name='vkResetQueryPoolEXT', dispatch='VkDevice'), |
| 1018 | ]) |
| 1019 | |
| 1020 | VK_EXT_index_type_uint8 = Extension(name='VK_EXT_index_type_uint8', version=1, guard=None, commands=[ |
| 1021 | ]) |
| 1022 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1023 | VK_EXT_extended_dynamic_state = Extension(name='VK_EXT_extended_dynamic_state', version=1, guard=None, commands=[ |
| 1024 | Command(name='vkCmdSetCullModeEXT', dispatch='VkCommandBuffer'), |
| 1025 | Command(name='vkCmdSetFrontFaceEXT', dispatch='VkCommandBuffer'), |
| 1026 | Command(name='vkCmdSetPrimitiveTopologyEXT', dispatch='VkCommandBuffer'), |
| 1027 | Command(name='vkCmdSetViewportWithCountEXT', dispatch='VkCommandBuffer'), |
| 1028 | Command(name='vkCmdSetScissorWithCountEXT', dispatch='VkCommandBuffer'), |
| 1029 | Command(name='vkCmdBindVertexBuffers2EXT', dispatch='VkCommandBuffer'), |
| 1030 | Command(name='vkCmdSetDepthTestEnableEXT', dispatch='VkCommandBuffer'), |
| 1031 | Command(name='vkCmdSetDepthWriteEnableEXT', dispatch='VkCommandBuffer'), |
| 1032 | Command(name='vkCmdSetDepthCompareOpEXT', dispatch='VkCommandBuffer'), |
| 1033 | Command(name='vkCmdSetDepthBoundsTestEnableEXT', dispatch='VkCommandBuffer'), |
| 1034 | Command(name='vkCmdSetStencilTestEnableEXT', dispatch='VkCommandBuffer'), |
| 1035 | Command(name='vkCmdSetStencilOpEXT', dispatch='VkCommandBuffer'), |
| 1036 | ]) |
| 1037 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1038 | VK_EXT_shader_demote_to_helper_invocation = Extension(name='VK_EXT_shader_demote_to_helper_invocation', version=1, guard=None, commands=[ |
| 1039 | ]) |
| 1040 | |
| 1041 | VK_NV_device_generated_commands = Extension(name='VK_NV_device_generated_commands', version=3, guard=None, commands=[ |
| 1042 | Command(name='vkGetGeneratedCommandsMemoryRequirementsNV', dispatch='VkDevice'), |
| 1043 | Command(name='vkCmdPreprocessGeneratedCommandsNV', dispatch='VkCommandBuffer'), |
| 1044 | Command(name='vkCmdExecuteGeneratedCommandsNV', dispatch='VkCommandBuffer'), |
| 1045 | Command(name='vkCmdBindPipelineShaderGroupNV', dispatch='VkCommandBuffer'), |
| 1046 | Command(name='vkCreateIndirectCommandsLayoutNV', dispatch='VkDevice'), |
| 1047 | Command(name='vkDestroyIndirectCommandsLayoutNV', dispatch='VkDevice'), |
| 1048 | ]) |
| 1049 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1050 | VK_NV_inherited_viewport_scissor = Extension(name='VK_NV_inherited_viewport_scissor', version=1, guard=None, commands=[ |
| 1051 | ]) |
| 1052 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1053 | VK_EXT_texel_buffer_alignment = Extension(name='VK_EXT_texel_buffer_alignment', version=1, guard=None, commands=[ |
| 1054 | ]) |
| 1055 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1056 | VK_QCOM_render_pass_transform = Extension(name='VK_QCOM_render_pass_transform', version=2, guard=None, commands=[ |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1057 | ]) |
| 1058 | |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1059 | VK_EXT_device_memory_report = Extension(name='VK_EXT_device_memory_report', version=2, guard=None, commands=[ |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1060 | ]) |
| 1061 | |
| 1062 | VK_EXT_robustness2 = Extension(name='VK_EXT_robustness2', version=1, guard=None, commands=[ |
| 1063 | ]) |
| 1064 | |
| 1065 | VK_EXT_custom_border_color = Extension(name='VK_EXT_custom_border_color', version=12, guard=None, commands=[ |
| 1066 | ]) |
| 1067 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1068 | VK_GOOGLE_user_type = Extension(name='VK_GOOGLE_user_type', version=1, guard=None, commands=[ |
| 1069 | ]) |
| 1070 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1071 | VK_EXT_private_data = Extension(name='VK_EXT_private_data', version=1, guard=None, commands=[ |
| 1072 | Command(name='vkCreatePrivateDataSlotEXT', dispatch='VkDevice'), |
| 1073 | Command(name='vkDestroyPrivateDataSlotEXT', dispatch='VkDevice'), |
| 1074 | Command(name='vkSetPrivateDataEXT', dispatch='VkDevice'), |
| 1075 | Command(name='vkGetPrivateDataEXT', dispatch='VkDevice'), |
| 1076 | ]) |
| 1077 | |
| 1078 | VK_EXT_pipeline_creation_cache_control = Extension(name='VK_EXT_pipeline_creation_cache_control', version=3, guard=None, commands=[ |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1079 | ]) |
| 1080 | |
| 1081 | VK_NV_device_diagnostics_config = Extension(name='VK_NV_device_diagnostics_config', version=1, guard=None, commands=[ |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1082 | ]) |
| 1083 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1084 | VK_QCOM_render_pass_store_ops = Extension(name='VK_QCOM_render_pass_store_ops', version=2, guard=None, commands=[ |
| 1085 | ]) |
| 1086 | |
| 1087 | VK_NV_fragment_shading_rate_enums = Extension(name='VK_NV_fragment_shading_rate_enums', version=1, guard=None, commands=[ |
| 1088 | Command(name='vkCmdSetFragmentShadingRateEnumNV', dispatch='VkCommandBuffer'), |
| 1089 | ]) |
| 1090 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1091 | VK_EXT_ycbcr_2plane_444_formats = Extension(name='VK_EXT_ycbcr_2plane_444_formats', version=1, guard=None, commands=[ |
| 1092 | ]) |
| 1093 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1094 | VK_EXT_fragment_density_map2 = Extension(name='VK_EXT_fragment_density_map2', version=1, guard=None, commands=[ |
| 1095 | ]) |
| 1096 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1097 | VK_QCOM_rotated_copy_commands = Extension(name='VK_QCOM_rotated_copy_commands', version=1, guard=None, commands=[ |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1098 | ]) |
| 1099 | |
| 1100 | VK_EXT_image_robustness = Extension(name='VK_EXT_image_robustness', version=1, guard=None, commands=[ |
| 1101 | ]) |
| 1102 | |
| 1103 | VK_EXT_4444_formats = Extension(name='VK_EXT_4444_formats', version=1, guard=None, commands=[ |
| 1104 | ]) |
| 1105 | |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1106 | VK_NV_acquire_winrt_display = Extension(name='VK_NV_acquire_winrt_display', version=1, guard=None, commands=[ |
| 1107 | Command(name='vkAcquireWinrtDisplayNV', dispatch='VkPhysicalDevice'), |
| 1108 | Command(name='vkGetWinrtDisplayNV', dispatch='VkPhysicalDevice'), |
| 1109 | ]) |
| 1110 | |
| 1111 | VK_VALVE_mutable_descriptor_type = Extension(name='VK_VALVE_mutable_descriptor_type', version=1, guard=None, commands=[ |
| 1112 | ]) |
| 1113 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1114 | VK_EXT_vertex_input_dynamic_state = Extension(name='VK_EXT_vertex_input_dynamic_state', version=2, guard=None, commands=[ |
| 1115 | Command(name='vkCmdSetVertexInputEXT', dispatch='VkCommandBuffer'), |
| 1116 | ]) |
| 1117 | |
| 1118 | VK_EXT_extended_dynamic_state2 = Extension(name='VK_EXT_extended_dynamic_state2', version=1, guard=None, commands=[ |
| 1119 | Command(name='vkCmdSetPatchControlPointsEXT', dispatch='VkCommandBuffer'), |
| 1120 | Command(name='vkCmdSetRasterizerDiscardEnableEXT', dispatch='VkCommandBuffer'), |
| 1121 | Command(name='vkCmdSetDepthBiasEnableEXT', dispatch='VkCommandBuffer'), |
| 1122 | Command(name='vkCmdSetLogicOpEXT', dispatch='VkCommandBuffer'), |
| 1123 | Command(name='vkCmdSetPrimitiveRestartEnableEXT', dispatch='VkCommandBuffer'), |
| 1124 | ]) |
| 1125 | |
| 1126 | VK_EXT_color_write_enable = Extension(name='VK_EXT_color_write_enable', version=1, guard=None, commands=[ |
| 1127 | Command(name='vkCmdSetColorWriteEnableEXT', dispatch='VkCommandBuffer'), |
| 1128 | ]) |
| 1129 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1130 | VK_KHR_acceleration_structure = Extension(name='VK_KHR_acceleration_structure', version=11, guard=None, commands=[ |
| 1131 | Command(name='vkCreateAccelerationStructureKHR', dispatch='VkDevice'), |
| 1132 | Command(name='vkDestroyAccelerationStructureKHR', dispatch='VkDevice'), |
| 1133 | Command(name='vkCmdBuildAccelerationStructuresKHR', dispatch='VkCommandBuffer'), |
| 1134 | Command(name='vkCmdBuildAccelerationStructuresIndirectKHR', dispatch='VkCommandBuffer'), |
| 1135 | Command(name='vkBuildAccelerationStructuresKHR', dispatch='VkDevice'), |
| 1136 | Command(name='vkCopyAccelerationStructureKHR', dispatch='VkDevice'), |
| 1137 | Command(name='vkCopyAccelerationStructureToMemoryKHR', dispatch='VkDevice'), |
| 1138 | Command(name='vkCopyMemoryToAccelerationStructureKHR', dispatch='VkDevice'), |
| 1139 | Command(name='vkWriteAccelerationStructuresPropertiesKHR', dispatch='VkDevice'), |
| 1140 | Command(name='vkCmdCopyAccelerationStructureKHR', dispatch='VkCommandBuffer'), |
| 1141 | Command(name='vkCmdCopyAccelerationStructureToMemoryKHR', dispatch='VkCommandBuffer'), |
| 1142 | Command(name='vkCmdCopyMemoryToAccelerationStructureKHR', dispatch='VkCommandBuffer'), |
| 1143 | Command(name='vkGetAccelerationStructureDeviceAddressKHR', dispatch='VkDevice'), |
| 1144 | Command(name='vkCmdWriteAccelerationStructuresPropertiesKHR', dispatch='VkCommandBuffer'), |
| 1145 | Command(name='vkGetDeviceAccelerationStructureCompatibilityKHR', dispatch='VkDevice'), |
| 1146 | Command(name='vkGetAccelerationStructureBuildSizesKHR', dispatch='VkDevice'), |
| 1147 | ]) |
| 1148 | |
| 1149 | VK_KHR_ray_tracing_pipeline = Extension(name='VK_KHR_ray_tracing_pipeline', version=1, guard=None, commands=[ |
| 1150 | Command(name='vkCmdTraceRaysKHR', dispatch='VkCommandBuffer'), |
| 1151 | Command(name='vkCreateRayTracingPipelinesKHR', dispatch='VkDevice'), |
| 1152 | Command(name='vkGetRayTracingCaptureReplayShaderGroupHandlesKHR', dispatch='VkDevice'), |
| 1153 | Command(name='vkCmdTraceRaysIndirectKHR', dispatch='VkCommandBuffer'), |
| 1154 | Command(name='vkGetRayTracingShaderGroupStackSizeKHR', dispatch='VkDevice'), |
| 1155 | Command(name='vkCmdSetRayTracingPipelineStackSizeKHR', dispatch='VkCommandBuffer'), |
| 1156 | ]) |
| 1157 | |
| 1158 | VK_KHR_ray_query = Extension(name='VK_KHR_ray_query', version=1, guard=None, commands=[ |
| 1159 | ]) |
| 1160 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1161 | VK_KHR_android_surface = Extension(name='VK_KHR_android_surface', version=6, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[ |
| 1162 | Command(name='vkCreateAndroidSurfaceKHR', dispatch='VkInstance'), |
| 1163 | ]) |
| 1164 | |
| 1165 | VK_ANDROID_external_memory_android_hardware_buffer = Extension(name='VK_ANDROID_external_memory_android_hardware_buffer', version=3, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[ |
| 1166 | Command(name='vkGetAndroidHardwareBufferPropertiesANDROID', dispatch='VkDevice'), |
| 1167 | Command(name='vkGetMemoryAndroidHardwareBufferANDROID', dispatch='VkDevice'), |
| 1168 | ]) |
| 1169 | |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1170 | VK_FUCHSIA_imagepipe_surface = Extension(name='VK_FUCHSIA_imagepipe_surface', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[ |
| 1171 | Command(name='vkCreateImagePipeSurfaceFUCHSIA', dispatch='VkInstance'), |
| 1172 | ]) |
| 1173 | |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1174 | VK_FUCHSIA_external_memory = Extension(name='VK_FUCHSIA_external_memory', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[ |
| 1175 | Command(name='vkGetMemoryZirconHandleFUCHSIA', dispatch='VkDevice'), |
| 1176 | Command(name='vkGetMemoryZirconHandlePropertiesFUCHSIA', dispatch='VkDevice'), |
| 1177 | ]) |
| 1178 | |
| 1179 | VK_FUCHSIA_external_semaphore = Extension(name='VK_FUCHSIA_external_semaphore', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[ |
| 1180 | Command(name='vkImportSemaphoreZirconHandleFUCHSIA', dispatch='VkDevice'), |
| 1181 | Command(name='vkGetSemaphoreZirconHandleFUCHSIA', dispatch='VkDevice'), |
| 1182 | ]) |
| 1183 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1184 | VK_MVK_ios_surface = Extension(name='VK_MVK_ios_surface', version=3, guard='VK_USE_PLATFORM_IOS_MVK', commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1185 | Command(name='vkCreateIOSSurfaceMVK', dispatch='VkInstance'), |
| 1186 | ]) |
| 1187 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1188 | VK_MVK_macos_surface = Extension(name='VK_MVK_macos_surface', version=3, guard='VK_USE_PLATFORM_MACOS_MVK', commands=[ |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1189 | Command(name='vkCreateMacOSSurfaceMVK', dispatch='VkInstance'), |
| 1190 | ]) |
| 1191 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1192 | VK_EXT_metal_surface = Extension(name='VK_EXT_metal_surface', version=1, guard='VK_USE_PLATFORM_METAL_EXT', commands=[ |
| 1193 | Command(name='vkCreateMetalSurfaceEXT', dispatch='VkInstance'), |
| 1194 | ]) |
| 1195 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1196 | VK_NN_vi_surface = Extension(name='VK_NN_vi_surface', version=1, guard='VK_USE_PLATFORM_VI_NN', commands=[ |
| 1197 | Command(name='vkCreateViSurfaceNN', dispatch='VkInstance'), |
| 1198 | ]) |
| 1199 | |
| 1200 | VK_KHR_wayland_surface = Extension(name='VK_KHR_wayland_surface', version=6, guard='VK_USE_PLATFORM_WAYLAND_KHR', commands=[ |
| 1201 | Command(name='vkCreateWaylandSurfaceKHR', dispatch='VkInstance'), |
| 1202 | Command(name='vkGetPhysicalDeviceWaylandPresentationSupportKHR', dispatch='VkPhysicalDevice'), |
| 1203 | ]) |
| 1204 | |
| 1205 | VK_KHR_win32_surface = Extension(name='VK_KHR_win32_surface', version=6, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1206 | Command(name='vkCreateWin32SurfaceKHR', dispatch='VkInstance'), |
| 1207 | Command(name='vkGetPhysicalDeviceWin32PresentationSupportKHR', dispatch='VkPhysicalDevice'), |
| 1208 | ]) |
| 1209 | |
| 1210 | VK_KHR_external_memory_win32 = Extension(name='VK_KHR_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1211 | Command(name='vkGetMemoryWin32HandleKHR', dispatch='VkDevice'), |
| 1212 | Command(name='vkGetMemoryWin32HandlePropertiesKHR', dispatch='VkDevice'), |
| 1213 | ]) |
| 1214 | |
| 1215 | VK_KHR_win32_keyed_mutex = Extension(name='VK_KHR_win32_keyed_mutex', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1216 | ]) |
| 1217 | |
| 1218 | VK_KHR_external_semaphore_win32 = Extension(name='VK_KHR_external_semaphore_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1219 | Command(name='vkImportSemaphoreWin32HandleKHR', dispatch='VkDevice'), |
| 1220 | Command(name='vkGetSemaphoreWin32HandleKHR', dispatch='VkDevice'), |
| 1221 | ]) |
| 1222 | |
| 1223 | VK_KHR_external_fence_win32 = Extension(name='VK_KHR_external_fence_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1224 | Command(name='vkImportFenceWin32HandleKHR', dispatch='VkDevice'), |
| 1225 | Command(name='vkGetFenceWin32HandleKHR', dispatch='VkDevice'), |
| 1226 | ]) |
| 1227 | |
| 1228 | VK_NV_external_memory_win32 = Extension(name='VK_NV_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1229 | Command(name='vkGetMemoryWin32HandleNV', dispatch='VkDevice'), |
| 1230 | ]) |
| 1231 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1232 | VK_NV_win32_keyed_mutex = Extension(name='VK_NV_win32_keyed_mutex', version=2, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1233 | ]) |
| 1234 | |
| 1235 | VK_EXT_full_screen_exclusive = Extension(name='VK_EXT_full_screen_exclusive', version=4, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[ |
| 1236 | Command(name='vkGetPhysicalDeviceSurfacePresentModes2EXT', dispatch='VkPhysicalDevice'), |
| 1237 | Command(name='vkAcquireFullScreenExclusiveModeEXT', dispatch='VkDevice'), |
| 1238 | Command(name='vkReleaseFullScreenExclusiveModeEXT', dispatch='VkDevice'), |
| 1239 | Command(name='vkGetDeviceGroupSurfacePresentModes2EXT', dispatch='VkDevice'), |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1240 | ]) |
| 1241 | |
| 1242 | VK_KHR_xcb_surface = Extension(name='VK_KHR_xcb_surface', version=6, guard='VK_USE_PLATFORM_XCB_KHR', commands=[ |
| 1243 | Command(name='vkCreateXcbSurfaceKHR', dispatch='VkInstance'), |
| 1244 | Command(name='vkGetPhysicalDeviceXcbPresentationSupportKHR', dispatch='VkPhysicalDevice'), |
| 1245 | ]) |
| 1246 | |
| 1247 | VK_KHR_xlib_surface = Extension(name='VK_KHR_xlib_surface', version=6, guard='VK_USE_PLATFORM_XLIB_KHR', commands=[ |
| 1248 | Command(name='vkCreateXlibSurfaceKHR', dispatch='VkInstance'), |
| 1249 | Command(name='vkGetPhysicalDeviceXlibPresentationSupportKHR', dispatch='VkPhysicalDevice'), |
| 1250 | ]) |
| 1251 | |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1252 | VK_EXT_directfb_surface = Extension(name='VK_EXT_directfb_surface', version=1, guard='VK_USE_PLATFORM_DIRECTFB_EXT', commands=[ |
| 1253 | Command(name='vkCreateDirectFBSurfaceEXT', dispatch='VkInstance'), |
| 1254 | Command(name='vkGetPhysicalDeviceDirectFBPresentationSupportEXT', dispatch='VkPhysicalDevice'), |
| 1255 | ]) |
| 1256 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1257 | VK_EXT_acquire_xlib_display = Extension(name='VK_EXT_acquire_xlib_display', version=1, guard='VK_USE_PLATFORM_XLIB_XRANDR_EXT', commands=[ |
| 1258 | Command(name='vkAcquireXlibDisplayEXT', dispatch='VkPhysicalDevice'), |
| 1259 | Command(name='vkGetRandROutputDisplayEXT', dispatch='VkPhysicalDevice'), |
| 1260 | ]) |
| 1261 | |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1262 | VK_GGP_stream_descriptor_surface = Extension(name='VK_GGP_stream_descriptor_surface', version=1, guard='VK_USE_PLATFORM_GGP', commands=[ |
| 1263 | Command(name='vkCreateStreamDescriptorSurfaceGGP', dispatch='VkInstance'), |
| 1264 | ]) |
| 1265 | |
| 1266 | VK_GGP_frame_token = Extension(name='VK_GGP_frame_token', version=1, guard='VK_USE_PLATFORM_GGP', commands=[ |
| 1267 | ]) |
| 1268 | |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1269 | VK_QNX_screen_surface = Extension(name='VK_QNX_screen_surface', version=1, guard='VK_USE_PLATFORM_SCREEN_QNX', commands=[ |
| 1270 | Command(name='vkCreateScreenSurfaceQNX', dispatch='VkInstance'), |
| 1271 | Command(name='vkGetPhysicalDeviceScreenPresentationSupportQNX', dispatch='VkPhysicalDevice'), |
| 1272 | ]) |
| 1273 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1274 | VK_KHR_video_queue = Extension(name='VK_KHR_video_queue', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1275 | Command(name='vkGetPhysicalDeviceVideoCapabilitiesKHR', dispatch='VkPhysicalDevice'), |
| 1276 | Command(name='vkGetPhysicalDeviceVideoFormatPropertiesKHR', dispatch='VkPhysicalDevice'), |
| 1277 | Command(name='vkCreateVideoSessionKHR', dispatch='VkDevice'), |
| 1278 | Command(name='vkDestroyVideoSessionKHR', dispatch='VkDevice'), |
| 1279 | Command(name='vkGetVideoSessionMemoryRequirementsKHR', dispatch='VkDevice'), |
| 1280 | Command(name='vkBindVideoSessionMemoryKHR', dispatch='VkDevice'), |
| 1281 | Command(name='vkCreateVideoSessionParametersKHR', dispatch='VkDevice'), |
| 1282 | Command(name='vkUpdateVideoSessionParametersKHR', dispatch='VkDevice'), |
| 1283 | Command(name='vkDestroyVideoSessionParametersKHR', dispatch='VkDevice'), |
| 1284 | Command(name='vkCmdBeginVideoCodingKHR', dispatch='VkCommandBuffer'), |
| 1285 | Command(name='vkCmdEndVideoCodingKHR', dispatch='VkCommandBuffer'), |
| 1286 | Command(name='vkCmdControlVideoCodingKHR', dispatch='VkCommandBuffer'), |
| 1287 | ]) |
| 1288 | |
| 1289 | VK_KHR_video_decode_queue = Extension(name='VK_KHR_video_decode_queue', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1290 | Command(name='vkCmdDecodeVideoKHR', dispatch='VkCommandBuffer'), |
| 1291 | ]) |
| 1292 | |
| 1293 | VK_KHR_portability_subset = Extension(name='VK_KHR_portability_subset', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1294 | ]) |
| 1295 | |
| 1296 | VK_KHR_video_encode_queue = Extension(name='VK_KHR_video_encode_queue', version=2, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1297 | Command(name='vkCmdEncodeVideoKHR', dispatch='VkCommandBuffer'), |
| 1298 | ]) |
| 1299 | |
| 1300 | VK_EXT_video_encode_h264 = Extension(name='VK_EXT_video_encode_h264', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1301 | ]) |
| 1302 | |
| 1303 | VK_EXT_video_decode_h264 = Extension(name='VK_EXT_video_decode_h264', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
| 1304 | ]) |
| 1305 | |
| 1306 | VK_EXT_video_decode_h265 = Extension(name='VK_EXT_video_decode_h265', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[ |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1307 | ]) |
| 1308 | |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1309 | extensions = [ |
| 1310 | VK_core_0, |
| 1311 | VK_core_1, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1312 | VK_core_2, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1313 | VK_KHR_surface, |
| 1314 | VK_KHR_swapchain, |
| 1315 | VK_KHR_display, |
| 1316 | VK_KHR_display_swapchain, |
| 1317 | VK_KHR_sampler_mirror_clamp_to_edge, |
| 1318 | VK_KHR_multiview, |
| 1319 | VK_KHR_get_physical_device_properties2, |
| 1320 | VK_KHR_device_group, |
| 1321 | VK_KHR_shader_draw_parameters, |
| 1322 | VK_KHR_maintenance1, |
| 1323 | VK_KHR_device_group_creation, |
| 1324 | VK_KHR_external_memory_capabilities, |
| 1325 | VK_KHR_external_memory, |
| 1326 | VK_KHR_external_memory_fd, |
| 1327 | VK_KHR_external_semaphore_capabilities, |
| 1328 | VK_KHR_external_semaphore, |
| 1329 | VK_KHR_external_semaphore_fd, |
| 1330 | VK_KHR_push_descriptor, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1331 | VK_KHR_shader_float16_int8, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1332 | VK_KHR_16bit_storage, |
| 1333 | VK_KHR_incremental_present, |
| 1334 | VK_KHR_descriptor_update_template, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1335 | VK_KHR_imageless_framebuffer, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1336 | VK_KHR_create_renderpass2, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1337 | VK_KHR_shared_presentable_image, |
| 1338 | VK_KHR_external_fence_capabilities, |
| 1339 | VK_KHR_external_fence, |
| 1340 | VK_KHR_external_fence_fd, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1341 | VK_KHR_performance_query, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1342 | VK_KHR_maintenance2, |
| 1343 | VK_KHR_get_surface_capabilities2, |
| 1344 | VK_KHR_variable_pointers, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1345 | VK_KHR_get_display_properties2, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1346 | VK_KHR_dedicated_allocation, |
| 1347 | VK_KHR_storage_buffer_storage_class, |
| 1348 | VK_KHR_relaxed_block_layout, |
| 1349 | VK_KHR_get_memory_requirements2, |
| 1350 | VK_KHR_image_format_list, |
| 1351 | VK_KHR_sampler_ycbcr_conversion, |
| 1352 | VK_KHR_bind_memory2, |
| 1353 | VK_KHR_maintenance3, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1354 | VK_KHR_draw_indirect_count, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1355 | VK_KHR_shader_subgroup_extended_types, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1356 | VK_KHR_8bit_storage, |
| 1357 | VK_KHR_shader_atomic_int64, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1358 | VK_KHR_shader_clock, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1359 | VK_KHR_driver_properties, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1360 | VK_KHR_shader_float_controls, |
| 1361 | VK_KHR_depth_stencil_resolve, |
| 1362 | VK_KHR_swapchain_mutable_format, |
| 1363 | VK_KHR_timeline_semaphore, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1364 | VK_KHR_vulkan_memory_model, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1365 | VK_KHR_shader_terminate_invocation, |
| 1366 | VK_KHR_fragment_shading_rate, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1367 | VK_KHR_spirv_1_4, |
| 1368 | VK_KHR_surface_protected_capabilities, |
| 1369 | VK_KHR_separate_depth_stencil_layouts, |
| 1370 | VK_KHR_uniform_buffer_standard_layout, |
| 1371 | VK_KHR_buffer_device_address, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1372 | VK_KHR_deferred_host_operations, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1373 | VK_KHR_pipeline_executable_properties, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1374 | VK_KHR_pipeline_library, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1375 | VK_KHR_shader_non_semantic_info, |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1376 | VK_KHR_synchronization2, |
| 1377 | VK_KHR_zero_initialize_workgroup_memory, |
| 1378 | VK_KHR_workgroup_memory_explicit_layout, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1379 | VK_KHR_copy_commands2, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1380 | VK_EXT_debug_report, |
| 1381 | VK_NV_glsl_shader, |
| 1382 | VK_EXT_depth_range_unrestricted, |
| 1383 | VK_IMG_filter_cubic, |
| 1384 | VK_AMD_rasterization_order, |
| 1385 | VK_AMD_shader_trinary_minmax, |
| 1386 | VK_AMD_shader_explicit_vertex_parameter, |
| 1387 | VK_EXT_debug_marker, |
| 1388 | VK_AMD_gcn_shader, |
| 1389 | VK_NV_dedicated_allocation, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1390 | VK_EXT_transform_feedback, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1391 | VK_NVX_image_view_handle, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1392 | VK_AMD_draw_indirect_count, |
| 1393 | VK_AMD_negative_viewport_height, |
| 1394 | VK_AMD_gpu_shader_half_float, |
| 1395 | VK_AMD_shader_ballot, |
| 1396 | VK_AMD_texture_gather_bias_lod, |
| 1397 | VK_AMD_shader_info, |
| 1398 | VK_AMD_shader_image_load_store_lod, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1399 | VK_NV_corner_sampled_image, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1400 | VK_IMG_format_pvrtc, |
| 1401 | VK_NV_external_memory_capabilities, |
| 1402 | VK_NV_external_memory, |
| 1403 | VK_EXT_validation_flags, |
| 1404 | VK_EXT_shader_subgroup_ballot, |
| 1405 | VK_EXT_shader_subgroup_vote, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1406 | VK_EXT_texture_compression_astc_hdr, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1407 | VK_EXT_astc_decode_mode, |
| 1408 | VK_EXT_conditional_rendering, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1409 | VK_NV_clip_space_w_scaling, |
| 1410 | VK_EXT_direct_mode_display, |
| 1411 | VK_EXT_display_surface_counter, |
| 1412 | VK_EXT_display_control, |
| 1413 | VK_GOOGLE_display_timing, |
| 1414 | VK_NV_sample_mask_override_coverage, |
| 1415 | VK_NV_geometry_shader_passthrough, |
| 1416 | VK_NV_viewport_array2, |
| 1417 | VK_NVX_multiview_per_view_attributes, |
| 1418 | VK_NV_viewport_swizzle, |
| 1419 | VK_EXT_discard_rectangles, |
| 1420 | VK_EXT_conservative_rasterization, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1421 | VK_EXT_depth_clip_enable, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1422 | VK_EXT_swapchain_colorspace, |
| 1423 | VK_EXT_hdr_metadata, |
| 1424 | VK_EXT_external_memory_dma_buf, |
| 1425 | VK_EXT_queue_family_foreign, |
| 1426 | VK_EXT_debug_utils, |
| 1427 | VK_EXT_sampler_filter_minmax, |
| 1428 | VK_AMD_gpu_shader_int16, |
| 1429 | VK_AMD_mixed_attachment_samples, |
| 1430 | VK_AMD_shader_fragment_mask, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1431 | VK_EXT_inline_uniform_block, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1432 | VK_EXT_shader_stencil_export, |
| 1433 | VK_EXT_sample_locations, |
| 1434 | VK_EXT_blend_operation_advanced, |
| 1435 | VK_NV_fragment_coverage_to_color, |
| 1436 | VK_NV_framebuffer_mixed_samples, |
| 1437 | VK_NV_fill_rectangle, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1438 | VK_NV_shader_sm_builtins, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1439 | VK_EXT_post_depth_coverage, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1440 | VK_EXT_image_drm_format_modifier, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1441 | VK_EXT_validation_cache, |
| 1442 | VK_EXT_descriptor_indexing, |
| 1443 | VK_EXT_shader_viewport_index_layer, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1444 | VK_NV_shading_rate_image, |
| 1445 | VK_NV_ray_tracing, |
| 1446 | VK_NV_representative_fragment_test, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1447 | VK_EXT_filter_cubic, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1448 | VK_QCOM_render_pass_shader_resolve, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1449 | VK_EXT_global_priority, |
| 1450 | VK_EXT_external_memory_host, |
| 1451 | VK_AMD_buffer_marker, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1452 | VK_AMD_pipeline_compiler_control, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1453 | VK_EXT_calibrated_timestamps, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1454 | VK_AMD_shader_core_properties, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1455 | VK_AMD_memory_overallocation_behavior, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1456 | VK_EXT_vertex_attribute_divisor, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1457 | VK_EXT_pipeline_creation_feedback, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1458 | VK_NV_shader_subgroup_partitioned, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1459 | VK_NV_compute_shader_derivatives, |
| 1460 | VK_NV_mesh_shader, |
| 1461 | VK_NV_fragment_shader_barycentric, |
| 1462 | VK_NV_shader_image_footprint, |
| 1463 | VK_NV_scissor_exclusive, |
| 1464 | VK_NV_device_diagnostic_checkpoints, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1465 | VK_INTEL_shader_integer_functions2, |
| 1466 | VK_INTEL_performance_query, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1467 | VK_EXT_pci_bus_info, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1468 | VK_AMD_display_native_hdr, |
| 1469 | VK_EXT_fragment_density_map, |
| 1470 | VK_EXT_scalar_block_layout, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1471 | VK_GOOGLE_hlsl_functionality1, |
| 1472 | VK_GOOGLE_decorate_string, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1473 | VK_EXT_subgroup_size_control, |
| 1474 | VK_AMD_shader_core_properties2, |
| 1475 | VK_AMD_device_coherent_memory, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1476 | VK_EXT_shader_image_atomic_int64, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1477 | VK_EXT_memory_budget, |
| 1478 | VK_EXT_memory_priority, |
| 1479 | VK_NV_dedicated_allocation_image_aliasing, |
| 1480 | VK_EXT_buffer_device_address, |
| 1481 | VK_EXT_tooling_info, |
| 1482 | VK_EXT_separate_stencil_usage, |
| 1483 | VK_EXT_validation_features, |
| 1484 | VK_NV_cooperative_matrix, |
| 1485 | VK_NV_coverage_reduction_mode, |
| 1486 | VK_EXT_fragment_shader_interlock, |
| 1487 | VK_EXT_ycbcr_image_arrays, |
| 1488 | VK_EXT_headless_surface, |
| 1489 | VK_EXT_line_rasterization, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1490 | VK_EXT_shader_atomic_float, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1491 | VK_EXT_host_query_reset, |
| 1492 | VK_EXT_index_type_uint8, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1493 | VK_EXT_extended_dynamic_state, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1494 | VK_EXT_shader_demote_to_helper_invocation, |
| 1495 | VK_NV_device_generated_commands, |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1496 | VK_NV_inherited_viewport_scissor, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1497 | VK_EXT_texel_buffer_alignment, |
| 1498 | VK_QCOM_render_pass_transform, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1499 | VK_EXT_device_memory_report, |
| 1500 | VK_EXT_robustness2, |
| 1501 | VK_EXT_custom_border_color, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1502 | VK_GOOGLE_user_type, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1503 | VK_EXT_private_data, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1504 | VK_EXT_pipeline_creation_cache_control, |
| 1505 | VK_NV_device_diagnostics_config, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1506 | VK_QCOM_render_pass_store_ops, |
| 1507 | VK_NV_fragment_shading_rate_enums, |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1508 | VK_EXT_ycbcr_2plane_444_formats, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1509 | VK_EXT_fragment_density_map2, |
| 1510 | VK_QCOM_rotated_copy_commands, |
| 1511 | VK_EXT_image_robustness, |
| 1512 | VK_EXT_4444_formats, |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1513 | VK_NV_acquire_winrt_display, |
| 1514 | VK_VALVE_mutable_descriptor_type, |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1515 | VK_EXT_vertex_input_dynamic_state, |
| 1516 | VK_EXT_extended_dynamic_state2, |
| 1517 | VK_EXT_color_write_enable, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1518 | VK_KHR_acceleration_structure, |
| 1519 | VK_KHR_ray_tracing_pipeline, |
| 1520 | VK_KHR_ray_query, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1521 | VK_KHR_android_surface, |
| 1522 | VK_ANDROID_external_memory_android_hardware_buffer, |
Tony-LunarG | 22a10df | 2018-11-08 11:03:12 -0700 | [diff] [blame] | 1523 | VK_FUCHSIA_imagepipe_surface, |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1524 | VK_FUCHSIA_external_memory, |
| 1525 | VK_FUCHSIA_external_semaphore, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1526 | VK_MVK_ios_surface, |
| 1527 | VK_MVK_macos_surface, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1528 | VK_EXT_metal_surface, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1529 | VK_NN_vi_surface, |
| 1530 | VK_KHR_wayland_surface, |
| 1531 | VK_KHR_win32_surface, |
| 1532 | VK_KHR_external_memory_win32, |
| 1533 | VK_KHR_win32_keyed_mutex, |
| 1534 | VK_KHR_external_semaphore_win32, |
| 1535 | VK_KHR_external_fence_win32, |
| 1536 | VK_NV_external_memory_win32, |
| 1537 | VK_NV_win32_keyed_mutex, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1538 | VK_EXT_full_screen_exclusive, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1539 | VK_KHR_xcb_surface, |
| 1540 | VK_KHR_xlib_surface, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1541 | VK_EXT_directfb_surface, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1542 | VK_EXT_acquire_xlib_display, |
Shannon McPherson | f881e61 | 2020-03-19 13:49:18 -0600 | [diff] [blame] | 1543 | VK_GGP_stream_descriptor_surface, |
| 1544 | VK_GGP_frame_token, |
Mike Schuchardt | 1d3ce71 | 2021-03-23 16:46:37 -0700 | [diff] [blame] | 1545 | VK_QNX_screen_surface, |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1546 | VK_KHR_video_queue, |
| 1547 | VK_KHR_video_decode_queue, |
Shannon McPherson | 0387f63 | 2020-11-23 08:48:45 -0700 | [diff] [blame] | 1548 | VK_KHR_portability_subset, |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1549 | VK_KHR_video_encode_queue, |
| 1550 | VK_EXT_video_encode_h264, |
| 1551 | VK_EXT_video_decode_h264, |
| 1552 | VK_EXT_video_decode_h265, |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1553 | ] |
| 1554 | # end of generated code |
| 1555 | |
| 1556 | def generate_wrapper_header(guard): |
| 1557 | copyright = [] |
| 1558 | copyright.append("/* ") |
| 1559 | copyright.append(" * Copyright 2018 The Android Open Source Project ") |
| 1560 | copyright.append(" * ") |
| 1561 | copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ") |
| 1562 | copyright.append(" * you may not use this file except in compliance with the License. ") |
| 1563 | copyright.append(" * You may obtain a copy of the License at ") |
| 1564 | copyright.append(" * ") |
| 1565 | copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ") |
| 1566 | copyright.append(" * ") |
| 1567 | copyright.append(" * Unless required by applicable law or agreed to in writing, software ") |
| 1568 | copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ") |
| 1569 | copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.") |
| 1570 | copyright.append(" * See the License for the specific language governing permissions and ") |
| 1571 | copyright.append(" * limitations under the License. ") |
| 1572 | copyright.append(" */ ") |
| 1573 | lines = [line.rstrip() for line in copyright] |
| 1574 | |
| 1575 | lines.append("// This file is generated.") |
| 1576 | lines.append("#ifndef %s" % guard) |
| 1577 | lines.append("#define %s" % guard) |
| 1578 | lines.append("") |
| 1579 | lines.append("#ifdef __cplusplus") |
| 1580 | lines.append("extern \"C\" {") |
| 1581 | lines.append("#endif") |
| 1582 | lines.append("") |
| 1583 | lines.append("#define VK_NO_PROTOTYPES 1") |
| 1584 | lines.append("#include <vulkan/vulkan.h>") |
| 1585 | lines.append("") |
| 1586 | lines.append("/* Initialize the Vulkan function pointer variables declared in this header.") |
| 1587 | lines.append(" * Returns 0 if vulkan is not available, non-zero if it is available.") |
| 1588 | lines.append(" */") |
| 1589 | lines.append("int InitVulkan(void);") |
| 1590 | lines.append("") |
| 1591 | |
| 1592 | for ext in extensions: |
| 1593 | # Only wrap core and WSI functions |
| 1594 | wrapped_exts = {'VK_core', 'VK_KHR'} |
| 1595 | if not any(ext.name.startswith(s) for s in wrapped_exts): |
| 1596 | continue |
| 1597 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1598 | if ext.commands: |
| 1599 | if ext.guard: |
| 1600 | lines.append("#ifdef %s" % ext.guard) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1601 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1602 | lines.append("// %s" % ext.name) |
| 1603 | for cmd in ext.commands: |
| 1604 | lines.append("extern PFN_%s %s;" % (cmd.name, cmd.name)) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1605 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1606 | if ext.guard: |
| 1607 | lines.append("#endif") |
| 1608 | lines.append("") |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1609 | |
| 1610 | lines.append("") |
| 1611 | lines.append("") |
| 1612 | lines.append("#ifdef __cplusplus") |
| 1613 | lines.append("}") |
| 1614 | lines.append("#endif") |
| 1615 | lines.append("") |
| 1616 | lines.append("#endif // %s" % guard) |
| 1617 | |
| 1618 | return "\n".join(lines) |
| 1619 | |
| 1620 | def generate_wrapper_source(header): |
| 1621 | copyright = [] |
| 1622 | copyright.append("/* ") |
| 1623 | copyright.append(" * Copyright 2018 The Android Open Source Project ") |
| 1624 | copyright.append(" * ") |
| 1625 | copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ") |
| 1626 | copyright.append(" * you may not use this file except in compliance with the License. ") |
| 1627 | copyright.append(" * You may obtain a copy of the License at ") |
| 1628 | copyright.append(" * ") |
| 1629 | copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ") |
| 1630 | copyright.append(" * ") |
| 1631 | copyright.append(" * Unless required by applicable law or agreed to in writing, software ") |
| 1632 | copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ") |
| 1633 | copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.") |
| 1634 | copyright.append(" * See the License for the specific language governing permissions and ") |
| 1635 | copyright.append(" * limitations under the License. ") |
| 1636 | copyright.append(" */ ") |
| 1637 | lines = [line.rstrip() for line in copyright] |
| 1638 | |
| 1639 | lines.append("// This file is generated.") |
| 1640 | lines.append("#ifdef __cplusplus") |
| 1641 | lines.append("extern \"C\" {") |
| 1642 | lines.append("#endif") |
| 1643 | lines.append("") |
| 1644 | lines.append("#include \"%s\"" % header) |
| 1645 | lines.append("#include <dlfcn.h>") |
| 1646 | lines.append("") |
| 1647 | |
| 1648 | lines.append("int InitVulkan(void) {") |
| 1649 | lines.append(" void* libvulkan = dlopen(\"libvulkan.so\", RTLD_NOW | RTLD_LOCAL);") |
| 1650 | lines.append(" if (!libvulkan)") |
| 1651 | lines.append(" return 0;") |
| 1652 | lines.append("") |
| 1653 | lines.append(" // Vulkan supported, set function addresses") |
| 1654 | for ext in extensions: |
| 1655 | # Only wrap core and WSI functions |
| 1656 | wrapped_exts = {'VK_core', 'VK_KHR'} |
| 1657 | if not any(ext.name.startswith(s) for s in wrapped_exts): |
| 1658 | continue |
| 1659 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1660 | if ext.commands: |
| 1661 | if ext.guard: |
| 1662 | lines.append("") |
| 1663 | lines.append("#ifdef %s" % ext.guard) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1664 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1665 | for cmd in ext.commands: |
| 1666 | lines.append(" %s = reinterpret_cast<PFN_%s>(dlsym(libvulkan, \"%s\"));" % (cmd.name, cmd.name, cmd.name)) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1667 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1668 | if ext.guard: |
| 1669 | lines.append("#endif") |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1670 | |
| 1671 | lines.append(" return 1;") |
| 1672 | lines.append("}") |
| 1673 | lines.append("") |
| 1674 | |
| 1675 | lines.append("// No Vulkan support, do not set function addresses") |
| 1676 | for ext in extensions: |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1677 | if ext.commands: |
| 1678 | if ext.guard: |
| 1679 | lines.append("") |
| 1680 | lines.append("#ifdef %s" % ext.guard) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1681 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1682 | for cmd in ext.commands: |
| 1683 | lines.append("PFN_%s %s;" % (cmd.name, cmd.name)) |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1684 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1685 | if ext.guard: |
| 1686 | lines.append("#endif") |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1687 | |
| 1688 | lines.append("") |
| 1689 | lines.append("#ifdef __cplusplus") |
| 1690 | lines.append("}") |
| 1691 | lines.append("#endif") |
| 1692 | |
| 1693 | return "\n".join(lines) |
| 1694 | |
| 1695 | def parse_subheader(filename, ext_guard): |
| 1696 | sub_extensions = [] |
| 1697 | |
| 1698 | with open(filename, "r") as f: |
| 1699 | current_ext = None |
| 1700 | spec_version = None |
| 1701 | |
| 1702 | for line in f: |
| 1703 | line = line.strip(); |
| 1704 | |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1705 | if line.startswith("#define VK_API_VERSION") and "VK_MAKE_API_VERSION" in line: |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1706 | minor_end = line.rfind(",") |
| 1707 | minor_begin = line.rfind(",", 0, minor_end) + 1 |
| 1708 | spec_version = int(line[minor_begin:minor_end]) |
| 1709 | # add core |
| 1710 | current_ext = Extension("VK_core_%s" % spec_version, spec_version) |
| 1711 | sub_extensions.append(current_ext) |
| 1712 | elif Command.valid_c_typedef(line): |
| 1713 | current_ext.add_command(Command.from_c_typedef(line)) |
| 1714 | elif line.startswith("#define") and "SPEC_VERSION " in line: |
| 1715 | version_begin = line.rfind(" ") + 1 |
| 1716 | spec_version = int(line[version_begin:]) |
| 1717 | elif line.startswith("#define") and "EXTENSION_NAME " in line: |
| 1718 | name_end = line.rfind("\"") |
| 1719 | name_begin = line.rfind("\"", 0, name_end) + 1 |
| 1720 | name = line[name_begin:name_end] |
| 1721 | # add extension |
| 1722 | current_ext = Extension(name, spec_version, ext_guard) |
| 1723 | sub_extensions.append(current_ext) |
| 1724 | |
| 1725 | return sub_extensions; |
| 1726 | |
| 1727 | def parse_vulkan_h(filename): |
| 1728 | extensions = [] |
| 1729 | |
| 1730 | with open(filename, "r") as f: |
| 1731 | ext_guard = None |
| 1732 | |
| 1733 | for line in f: |
| 1734 | line = line.strip(); |
| 1735 | |
| 1736 | if line.startswith("#include \"vulkan_"): |
| 1737 | # Extract the filename and parse it. Must be local to script file (no path). |
| 1738 | extensions.extend(parse_subheader(line[10:].replace('"', ''), ext_guard)) |
Mike Schuchardt | eb3d67b | 2021-04-19 08:30:33 -0700 | [diff] [blame] | 1739 | elif line.startswith("#ifdef VK_USE_PLATFORM") or line.startswith('#ifdef VK_ENABLE_BETA_EXTENSIONS'): |
Cody Northrop | 52def6d | 2018-05-16 13:54:37 -0600 | [diff] [blame] | 1740 | guard_begin = line.find(" ") + 1 |
| 1741 | ext_guard = line[guard_begin:] |
| 1742 | elif ext_guard and line.startswith("#endif") and ext_guard in line: |
| 1743 | ext_guard = None |
| 1744 | |
| 1745 | for ext in extensions: |
| 1746 | print("%s = %s" % (ext.name, repr(ext))) |
| 1747 | print("") |
| 1748 | |
| 1749 | print("extensions = [") |
| 1750 | for ext in extensions: |
| 1751 | print(" %s," % ext.name) |
| 1752 | print("]") |
| 1753 | |
| 1754 | if __name__ == "__main__": |
| 1755 | if sys.argv[1] == "parse": |
| 1756 | parse_vulkan_h(sys.argv[2]) |
| 1757 | else: |
| 1758 | filename = sys.argv[1] |
| 1759 | base = os.path.basename(filename) |
| 1760 | contents = [] |
| 1761 | |
| 1762 | if base.endswith(".h"): |
| 1763 | contents = generate_wrapper_header(base.replace(".", "_").upper()) |
| 1764 | elif base.endswith(".cpp"): |
| 1765 | contents = generate_wrapper_source(base.replace(".cpp", ".h")) |
| 1766 | |
| 1767 | with open(filename, "w") as f: |
| 1768 | print(contents, file=f) |