3 # Copyright (C) 2018 Google, Inc.
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:
12 # The above copyright notice and this permission notice shall be included
13 # in all copies or substantial portions of the Software.
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.
23 """Generate Vulkan wrapper to support Android without libvulkan
29 class Command(object):
35 def __init__(self, name, dispatch):
37 self.dispatch = dispatch
38 self.ty = self._get_type()
41 def valid_c_typedef(c):
42 return (c.startswith("typedef") and
44 "*PFN_vkVoidFunction" not in c)
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]
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"):
58 return cls(name, dispatch)
62 if self.dispatch in ["VkDevice", "VkQueue", "VkCommandBuffer"]:
67 if self.name in ["GetInstanceProcAddr"]:
73 return "Command(name=%s, dispatch=%s)" % \
74 (repr(self.name), repr(self.dispatch))
76 class Extension(object):
77 def __init__(self, name, version, guard=None, commands=[]):
79 self.version = version
81 self.commands = commands[:]
83 def add_command(self, cmd):
84 self.commands.append(cmd)
88 lines.append("Extension(name=%s, version=%s, guard=%s, commands=[" %
89 (repr(self.name), repr(self.version), repr(self.guard)))
91 for cmd in self.commands:
92 lines.append(" %s," % repr(cmd))
96 return "\n".join(lines)
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'),
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'),
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'),
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'),
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'),
306 VK_KHR_display = Extension(name='VK_KHR_display', version=23, guard=None, commands=[
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'),
316 VK_KHR_display_swapchain = Extension(name='VK_KHR_display_swapchain', version=10, guard=None, commands=[
317 Command(name='vkCreateSharedSwapchainsKHR', dispatch='VkDevice'),
320 VK_KHR_sampler_mirror_clamp_to_edge = Extension(name='VK_KHR_sampler_mirror_clamp_to_edge', version=3, guard=None, commands=[
323 VK_KHR_multiview = Extension(name='VK_KHR_multiview', version=1, guard=None, commands=[
326 VK_KHR_get_physical_device_properties2 = Extension(name='VK_KHR_get_physical_device_properties2', version=2, guard=None, commands=[
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'),
336 VK_KHR_device_group = Extension(name='VK_KHR_device_group', version=4, guard=None, commands=[
337 Command(name='vkGetDeviceGroupPeerMemoryFeaturesKHR', dispatch='VkDevice'),
338 Command(name='vkCmdSetDeviceMaskKHR', dispatch='VkCommandBuffer'),
339 Command(name='vkCmdDispatchBaseKHR', dispatch='VkCommandBuffer'),
342 VK_KHR_shader_draw_parameters = Extension(name='VK_KHR_shader_draw_parameters', version=1, guard=None, commands=[
345 VK_KHR_maintenance1 = Extension(name='VK_KHR_maintenance1', version=2, guard=None, commands=[
346 Command(name='vkTrimCommandPoolKHR', dispatch='VkDevice'),
349 VK_KHR_device_group_creation = Extension(name='VK_KHR_device_group_creation', version=1, guard=None, commands=[
350 Command(name='vkEnumeratePhysicalDeviceGroupsKHR', dispatch='VkInstance'),
353 VK_KHR_external_memory_capabilities = Extension(name='VK_KHR_external_memory_capabilities', version=1, guard=None, commands=[
354 Command(name='vkGetPhysicalDeviceExternalBufferPropertiesKHR', dispatch='VkPhysicalDevice'),
357 VK_KHR_external_memory = Extension(name='VK_KHR_external_memory', version=1, guard=None, commands=[
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'),
365 VK_KHR_external_semaphore_capabilities = Extension(name='VK_KHR_external_semaphore_capabilities', version=1, guard=None, commands=[
366 Command(name='vkGetPhysicalDeviceExternalSemaphorePropertiesKHR', dispatch='VkPhysicalDevice'),
369 VK_KHR_external_semaphore = Extension(name='VK_KHR_external_semaphore', version=1, guard=None, commands=[
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'),
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'),
382 VK_KHR_shader_float16_int8 = Extension(name='VK_KHR_shader_float16_int8', version=1, guard=None, commands=[
385 VK_KHR_16bit_storage = Extension(name='VK_KHR_16bit_storage', version=1, guard=None, commands=[
388 VK_KHR_incremental_present = Extension(name='VK_KHR_incremental_present', version=1, guard=None, commands=[
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'),
397 VK_KHR_imageless_framebuffer = Extension(name='VK_KHR_imageless_framebuffer', version=1, guard=None, commands=[
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'),
407 VK_KHR_shared_presentable_image = Extension(name='VK_KHR_shared_presentable_image', version=1, guard=None, commands=[
408 Command(name='vkGetSwapchainStatusKHR', dispatch='VkDevice'),
411 VK_KHR_external_fence_capabilities = Extension(name='VK_KHR_external_fence_capabilities', version=1, guard=None, commands=[
412 Command(name='vkGetPhysicalDeviceExternalFencePropertiesKHR', dispatch='VkPhysicalDevice'),
415 VK_KHR_external_fence = Extension(name='VK_KHR_external_fence', version=1, guard=None, commands=[
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'),
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'),
430 VK_KHR_maintenance2 = Extension(name='VK_KHR_maintenance2', version=1, guard=None, commands=[
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'),
438 VK_KHR_variable_pointers = Extension(name='VK_KHR_variable_pointers', version=1, guard=None, commands=[
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'),
448 VK_KHR_dedicated_allocation = Extension(name='VK_KHR_dedicated_allocation', version=3, guard=None, commands=[
451 VK_KHR_storage_buffer_storage_class = Extension(name='VK_KHR_storage_buffer_storage_class', version=1, guard=None, commands=[
454 VK_KHR_relaxed_block_layout = Extension(name='VK_KHR_relaxed_block_layout', version=1, guard=None, commands=[
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'),
463 VK_KHR_image_format_list = Extension(name='VK_KHR_image_format_list', version=1, guard=None, commands=[
466 VK_KHR_sampler_ycbcr_conversion = Extension(name='VK_KHR_sampler_ycbcr_conversion', version=14, guard=None, commands=[
467 Command(name='vkCreateSamplerYcbcrConversionKHR', dispatch='VkDevice'),
468 Command(name='vkDestroySamplerYcbcrConversionKHR', dispatch='VkDevice'),
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'),
476 VK_KHR_maintenance3 = Extension(name='VK_KHR_maintenance3', version=1, guard=None, commands=[
477 Command(name='vkGetDescriptorSetLayoutSupportKHR', dispatch='VkDevice'),
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'),
485 VK_KHR_shader_subgroup_extended_types = Extension(name='VK_KHR_shader_subgroup_extended_types', version=1, guard=None, commands=[
488 VK_KHR_8bit_storage = Extension(name='VK_KHR_8bit_storage', version=1, guard=None, commands=[
491 VK_KHR_shader_atomic_int64 = Extension(name='VK_KHR_shader_atomic_int64', version=1, guard=None, commands=[
494 VK_KHR_shader_clock = Extension(name='VK_KHR_shader_clock', version=1, guard=None, commands=[
497 VK_KHR_driver_properties = Extension(name='VK_KHR_driver_properties', version=1, guard=None, commands=[
500 VK_KHR_shader_float_controls = Extension(name='VK_KHR_shader_float_controls', version=4, guard=None, commands=[
503 VK_KHR_depth_stencil_resolve = Extension(name='VK_KHR_depth_stencil_resolve', version=1, guard=None, commands=[
506 VK_KHR_swapchain_mutable_format = Extension(name='VK_KHR_swapchain_mutable_format', version=1, guard=None, commands=[
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'),
515 VK_KHR_vulkan_memory_model = Extension(name='VK_KHR_vulkan_memory_model', version=3, guard=None, commands=[
518 VK_KHR_spirv_1_4 = Extension(name='VK_KHR_spirv_1_4', version=1, guard=None, commands=[
521 VK_KHR_surface_protected_capabilities = Extension(name='VK_KHR_surface_protected_capabilities', version=1, guard=None, commands=[
524 VK_KHR_separate_depth_stencil_layouts = Extension(name='VK_KHR_separate_depth_stencil_layouts', version=1, guard=None, commands=[
527 VK_KHR_uniform_buffer_standard_layout = Extension(name='VK_KHR_uniform_buffer_standard_layout', version=1, guard=None, commands=[
530 VK_KHR_buffer_device_address = Extension(name='VK_KHR_buffer_device_address', version=1, guard=None, commands=[
531 Command(name='vkGetBufferDeviceAddressKHR', dispatch='VkDevice'),
532 Command(name='vkGetBufferOpaqueCaptureAddressKHR', dispatch='VkDevice'),
533 Command(name='vkGetDeviceMemoryOpaqueCaptureAddressKHR', dispatch='VkDevice'),
536 VK_KHR_pipeline_executable_properties = Extension(name='VK_KHR_pipeline_executable_properties', version=1, guard=None, commands=[
537 Command(name='vkGetPipelineExecutablePropertiesKHR', dispatch='VkDevice'),
538 Command(name='vkGetPipelineExecutableStatisticsKHR', dispatch='VkDevice'),
539 Command(name='vkGetPipelineExecutableInternalRepresentationsKHR', dispatch='VkDevice'),
542 VK_KHR_shader_non_semantic_info = Extension(name='VK_KHR_shader_non_semantic_info', version=1, guard=None, commands=[
545 VK_EXT_debug_report = Extension(name='VK_EXT_debug_report', version=9, guard=None, commands=[
546 Command(name='vkCreateDebugReportCallbackEXT', dispatch='VkInstance'),
547 Command(name='vkDestroyDebugReportCallbackEXT', dispatch='VkInstance'),
548 Command(name='vkDebugReportMessageEXT', dispatch='VkInstance'),
551 VK_NV_glsl_shader = Extension(name='VK_NV_glsl_shader', version=1, guard=None, commands=[
554 VK_EXT_depth_range_unrestricted = Extension(name='VK_EXT_depth_range_unrestricted', version=1, guard=None, commands=[
557 VK_IMG_filter_cubic = Extension(name='VK_IMG_filter_cubic', version=1, guard=None, commands=[
560 VK_AMD_rasterization_order = Extension(name='VK_AMD_rasterization_order', version=1, guard=None, commands=[
563 VK_AMD_shader_trinary_minmax = Extension(name='VK_AMD_shader_trinary_minmax', version=1, guard=None, commands=[
566 VK_AMD_shader_explicit_vertex_parameter = Extension(name='VK_AMD_shader_explicit_vertex_parameter', version=1, guard=None, commands=[
569 VK_EXT_debug_marker = Extension(name='VK_EXT_debug_marker', version=4, guard=None, commands=[
570 Command(name='vkDebugMarkerSetObjectTagEXT', dispatch='VkDevice'),
571 Command(name='vkDebugMarkerSetObjectNameEXT', dispatch='VkDevice'),
572 Command(name='vkCmdDebugMarkerBeginEXT', dispatch='VkCommandBuffer'),
573 Command(name='vkCmdDebugMarkerEndEXT', dispatch='VkCommandBuffer'),
574 Command(name='vkCmdDebugMarkerInsertEXT', dispatch='VkCommandBuffer'),
577 VK_AMD_gcn_shader = Extension(name='VK_AMD_gcn_shader', version=1, guard=None, commands=[
580 VK_NV_dedicated_allocation = Extension(name='VK_NV_dedicated_allocation', version=1, guard=None, commands=[
583 VK_EXT_transform_feedback = Extension(name='VK_EXT_transform_feedback', version=1, guard=None, commands=[
584 Command(name='vkCmdBindTransformFeedbackBuffersEXT', dispatch='VkCommandBuffer'),
585 Command(name='vkCmdBeginTransformFeedbackEXT', dispatch='VkCommandBuffer'),
586 Command(name='vkCmdEndTransformFeedbackEXT', dispatch='VkCommandBuffer'),
587 Command(name='vkCmdBeginQueryIndexedEXT', dispatch='VkCommandBuffer'),
588 Command(name='vkCmdEndQueryIndexedEXT', dispatch='VkCommandBuffer'),
589 Command(name='vkCmdDrawIndirectByteCountEXT', dispatch='VkCommandBuffer'),
592 VK_NVX_image_view_handle = Extension(name='VK_NVX_image_view_handle', version=1, guard=None, commands=[
593 Command(name='vkGetImageViewHandleNVX', dispatch='VkDevice'),
596 VK_AMD_draw_indirect_count = Extension(name='VK_AMD_draw_indirect_count', version=2, guard=None, commands=[
597 Command(name='vkCmdDrawIndirectCountAMD', dispatch='VkCommandBuffer'),
598 Command(name='vkCmdDrawIndexedIndirectCountAMD', dispatch='VkCommandBuffer'),
601 VK_AMD_negative_viewport_height = Extension(name='VK_AMD_negative_viewport_height', version=1, guard=None, commands=[
604 VK_AMD_gpu_shader_half_float = Extension(name='VK_AMD_gpu_shader_half_float', version=2, guard=None, commands=[
607 VK_AMD_shader_ballot = Extension(name='VK_AMD_shader_ballot', version=1, guard=None, commands=[
610 VK_AMD_texture_gather_bias_lod = Extension(name='VK_AMD_texture_gather_bias_lod', version=1, guard=None, commands=[
613 VK_AMD_shader_info = Extension(name='VK_AMD_shader_info', version=1, guard=None, commands=[
614 Command(name='vkGetShaderInfoAMD', dispatch='VkDevice'),
617 VK_AMD_shader_image_load_store_lod = Extension(name='VK_AMD_shader_image_load_store_lod', version=1, guard=None, commands=[
620 VK_NV_corner_sampled_image = Extension(name='VK_NV_corner_sampled_image', version=2, guard=None, commands=[
623 VK_IMG_format_pvrtc = Extension(name='VK_IMG_format_pvrtc', version=1, guard=None, commands=[
626 VK_NV_external_memory_capabilities = Extension(name='VK_NV_external_memory_capabilities', version=1, guard=None, commands=[
627 Command(name='vkGetPhysicalDeviceExternalImageFormatPropertiesNV', dispatch='VkPhysicalDevice'),
630 VK_NV_external_memory = Extension(name='VK_NV_external_memory', version=1, guard=None, commands=[
633 VK_EXT_validation_flags = Extension(name='VK_EXT_validation_flags', version=2, guard=None, commands=[
636 VK_EXT_shader_subgroup_ballot = Extension(name='VK_EXT_shader_subgroup_ballot', version=1, guard=None, commands=[
639 VK_EXT_shader_subgroup_vote = Extension(name='VK_EXT_shader_subgroup_vote', version=1, guard=None, commands=[
642 VK_EXT_texture_compression_astc_hdr = Extension(name='VK_EXT_texture_compression_astc_hdr', version=1, guard=None, commands=[
645 VK_EXT_astc_decode_mode = Extension(name='VK_EXT_astc_decode_mode', version=1, guard=None, commands=[
648 VK_EXT_conditional_rendering = Extension(name='VK_EXT_conditional_rendering', version=2, guard=None, commands=[
649 Command(name='vkCmdBeginConditionalRenderingEXT', dispatch='VkCommandBuffer'),
650 Command(name='vkCmdEndConditionalRenderingEXT', dispatch='VkCommandBuffer'),
653 VK_NV_clip_space_w_scaling = Extension(name='VK_NV_clip_space_w_scaling', version=1, guard=None, commands=[
654 Command(name='vkCmdSetViewportWScalingNV', dispatch='VkCommandBuffer'),
657 VK_EXT_direct_mode_display = Extension(name='VK_EXT_direct_mode_display', version=1, guard=None, commands=[
658 Command(name='vkReleaseDisplayEXT', dispatch='VkPhysicalDevice'),
661 VK_EXT_display_surface_counter = Extension(name='VK_EXT_display_surface_counter', version=1, guard=None, commands=[
662 Command(name='vkGetPhysicalDeviceSurfaceCapabilities2EXT', dispatch='VkPhysicalDevice'),
665 VK_EXT_display_control = Extension(name='VK_EXT_display_control', version=1, guard=None, commands=[
666 Command(name='vkDisplayPowerControlEXT', dispatch='VkDevice'),
667 Command(name='vkRegisterDeviceEventEXT', dispatch='VkDevice'),
668 Command(name='vkRegisterDisplayEventEXT', dispatch='VkDevice'),
669 Command(name='vkGetSwapchainCounterEXT', dispatch='VkDevice'),
672 VK_GOOGLE_display_timing = Extension(name='VK_GOOGLE_display_timing', version=1, guard=None, commands=[
673 Command(name='vkGetRefreshCycleDurationGOOGLE', dispatch='VkDevice'),
674 Command(name='vkGetPastPresentationTimingGOOGLE', dispatch='VkDevice'),
677 VK_NV_sample_mask_override_coverage = Extension(name='VK_NV_sample_mask_override_coverage', version=1, guard=None, commands=[
680 VK_NV_geometry_shader_passthrough = Extension(name='VK_NV_geometry_shader_passthrough', version=1, guard=None, commands=[
683 VK_NV_viewport_array2 = Extension(name='VK_NV_viewport_array2', version=1, guard=None, commands=[
686 VK_NVX_multiview_per_view_attributes = Extension(name='VK_NVX_multiview_per_view_attributes', version=1, guard=None, commands=[
689 VK_NV_viewport_swizzle = Extension(name='VK_NV_viewport_swizzle', version=1, guard=None, commands=[
692 VK_EXT_discard_rectangles = Extension(name='VK_EXT_discard_rectangles', version=1, guard=None, commands=[
693 Command(name='vkCmdSetDiscardRectangleEXT', dispatch='VkCommandBuffer'),
696 VK_EXT_conservative_rasterization = Extension(name='VK_EXT_conservative_rasterization', version=1, guard=None, commands=[
699 VK_EXT_depth_clip_enable = Extension(name='VK_EXT_depth_clip_enable', version=1, guard=None, commands=[
702 VK_EXT_swapchain_colorspace = Extension(name='VK_EXT_swapchain_colorspace', version=4, guard=None, commands=[
705 VK_EXT_hdr_metadata = Extension(name='VK_EXT_hdr_metadata', version=2, guard=None, commands=[
706 Command(name='vkSetHdrMetadataEXT', dispatch='VkDevice'),
709 VK_EXT_external_memory_dma_buf = Extension(name='VK_EXT_external_memory_dma_buf', version=1, guard=None, commands=[
712 VK_EXT_queue_family_foreign = Extension(name='VK_EXT_queue_family_foreign', version=1, guard=None, commands=[
715 VK_EXT_debug_utils = Extension(name='VK_EXT_debug_utils', version=1, guard=None, commands=[
716 Command(name='vkSetDebugUtilsObjectNameEXT', dispatch='VkDevice'),
717 Command(name='vkSetDebugUtilsObjectTagEXT', dispatch='VkDevice'),
718 Command(name='vkQueueBeginDebugUtilsLabelEXT', dispatch='VkQueue'),
719 Command(name='vkQueueEndDebugUtilsLabelEXT', dispatch='VkQueue'),
720 Command(name='vkQueueInsertDebugUtilsLabelEXT', dispatch='VkQueue'),
721 Command(name='vkCmdBeginDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
722 Command(name='vkCmdEndDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
723 Command(name='vkCmdInsertDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
724 Command(name='vkCreateDebugUtilsMessengerEXT', dispatch='VkInstance'),
725 Command(name='vkDestroyDebugUtilsMessengerEXT', dispatch='VkInstance'),
726 Command(name='vkSubmitDebugUtilsMessageEXT', dispatch='VkInstance'),
729 VK_EXT_sampler_filter_minmax = Extension(name='VK_EXT_sampler_filter_minmax', version=2, guard=None, commands=[
732 VK_AMD_gpu_shader_int16 = Extension(name='VK_AMD_gpu_shader_int16', version=2, guard=None, commands=[
735 VK_AMD_mixed_attachment_samples = Extension(name='VK_AMD_mixed_attachment_samples', version=1, guard=None, commands=[
738 VK_AMD_shader_fragment_mask = Extension(name='VK_AMD_shader_fragment_mask', version=1, guard=None, commands=[
741 VK_EXT_inline_uniform_block = Extension(name='VK_EXT_inline_uniform_block', version=1, guard=None, commands=[
744 VK_EXT_shader_stencil_export = Extension(name='VK_EXT_shader_stencil_export', version=1, guard=None, commands=[
747 VK_EXT_sample_locations = Extension(name='VK_EXT_sample_locations', version=1, guard=None, commands=[
748 Command(name='vkCmdSetSampleLocationsEXT', dispatch='VkCommandBuffer'),
749 Command(name='vkGetPhysicalDeviceMultisamplePropertiesEXT', dispatch='VkPhysicalDevice'),
752 VK_EXT_blend_operation_advanced = Extension(name='VK_EXT_blend_operation_advanced', version=2, guard=None, commands=[
755 VK_NV_fragment_coverage_to_color = Extension(name='VK_NV_fragment_coverage_to_color', version=1, guard=None, commands=[
758 VK_NV_framebuffer_mixed_samples = Extension(name='VK_NV_framebuffer_mixed_samples', version=1, guard=None, commands=[
761 VK_NV_fill_rectangle = Extension(name='VK_NV_fill_rectangle', version=1, guard=None, commands=[
764 VK_NV_shader_sm_builtins = Extension(name='VK_NV_shader_sm_builtins', version=1, guard=None, commands=[
767 VK_EXT_post_depth_coverage = Extension(name='VK_EXT_post_depth_coverage', version=1, guard=None, commands=[
770 VK_EXT_image_drm_format_modifier = Extension(name='VK_EXT_image_drm_format_modifier', version=1, guard=None, commands=[
771 Command(name='vkGetImageDrmFormatModifierPropertiesEXT', dispatch='VkDevice'),
774 VK_EXT_validation_cache = Extension(name='VK_EXT_validation_cache', version=1, guard=None, commands=[
775 Command(name='vkCreateValidationCacheEXT', dispatch='VkDevice'),
776 Command(name='vkDestroyValidationCacheEXT', dispatch='VkDevice'),
777 Command(name='vkMergeValidationCachesEXT', dispatch='VkDevice'),
778 Command(name='vkGetValidationCacheDataEXT', dispatch='VkDevice'),
781 VK_EXT_descriptor_indexing = Extension(name='VK_EXT_descriptor_indexing', version=2, guard=None, commands=[
784 VK_EXT_shader_viewport_index_layer = Extension(name='VK_EXT_shader_viewport_index_layer', version=1, guard=None, commands=[
787 VK_NV_shading_rate_image = Extension(name='VK_NV_shading_rate_image', version=3, guard=None, commands=[
788 Command(name='vkCmdBindShadingRateImageNV', dispatch='VkCommandBuffer'),
789 Command(name='vkCmdSetViewportShadingRatePaletteNV', dispatch='VkCommandBuffer'),
790 Command(name='vkCmdSetCoarseSampleOrderNV', dispatch='VkCommandBuffer'),
793 VK_NV_ray_tracing = Extension(name='VK_NV_ray_tracing', version=3, guard=None, commands=[
794 Command(name='vkCreateAccelerationStructureNV', dispatch='VkDevice'),
795 Command(name='vkDestroyAccelerationStructureKHR', dispatch='VkDevice'),
796 Command(name='vkDestroyAccelerationStructureNV', dispatch='VkDevice'),
797 Command(name='vkGetAccelerationStructureMemoryRequirementsNV', dispatch='VkDevice'),
798 Command(name='vkBindAccelerationStructureMemoryKHR', dispatch='VkDevice'),
799 Command(name='vkBindAccelerationStructureMemoryNV', dispatch='VkDevice'),
800 Command(name='vkCmdBuildAccelerationStructureNV', dispatch='VkCommandBuffer'),
801 Command(name='vkCmdCopyAccelerationStructureNV', dispatch='VkCommandBuffer'),
802 Command(name='vkCmdTraceRaysNV', dispatch='VkCommandBuffer'),
803 Command(name='vkCreateRayTracingPipelinesNV', dispatch='VkDevice'),
804 Command(name='vkGetRayTracingShaderGroupHandlesKHR', dispatch='VkDevice'),
805 Command(name='vkGetRayTracingShaderGroupHandlesNV', dispatch='VkDevice'),
806 Command(name='vkGetAccelerationStructureHandleNV', dispatch='VkDevice'),
807 Command(name='vkCmdWriteAccelerationStructuresPropertiesKHR', dispatch='VkCommandBuffer'),
808 Command(name='vkCmdWriteAccelerationStructuresPropertiesNV', dispatch='VkCommandBuffer'),
809 Command(name='vkCompileDeferredNV', dispatch='VkDevice'),
812 VK_NV_representative_fragment_test = Extension(name='VK_NV_representative_fragment_test', version=2, guard=None, commands=[
815 VK_EXT_filter_cubic = Extension(name='VK_EXT_filter_cubic', version=3, guard=None, commands=[
818 VK_EXT_global_priority = Extension(name='VK_EXT_global_priority', version=2, guard=None, commands=[
821 VK_EXT_external_memory_host = Extension(name='VK_EXT_external_memory_host', version=1, guard=None, commands=[
822 Command(name='vkGetMemoryHostPointerPropertiesEXT', dispatch='VkDevice'),
825 VK_AMD_buffer_marker = Extension(name='VK_AMD_buffer_marker', version=1, guard=None, commands=[
826 Command(name='vkCmdWriteBufferMarkerAMD', dispatch='VkCommandBuffer'),
829 VK_AMD_pipeline_compiler_control = Extension(name='VK_AMD_pipeline_compiler_control', version=1, guard=None, commands=[
832 VK_EXT_calibrated_timestamps = Extension(name='VK_EXT_calibrated_timestamps', version=1, guard=None, commands=[
833 Command(name='vkGetPhysicalDeviceCalibrateableTimeDomainsEXT', dispatch='VkPhysicalDevice'),
834 Command(name='vkGetCalibratedTimestampsEXT', dispatch='VkDevice'),
837 VK_AMD_shader_core_properties = Extension(name='VK_AMD_shader_core_properties', version=2, guard=None, commands=[
840 VK_AMD_memory_overallocation_behavior = Extension(name='VK_AMD_memory_overallocation_behavior', version=1, guard=None, commands=[
843 VK_EXT_vertex_attribute_divisor = Extension(name='VK_EXT_vertex_attribute_divisor', version=3, guard=None, commands=[
846 VK_EXT_pipeline_creation_feedback = Extension(name='VK_EXT_pipeline_creation_feedback', version=1, guard=None, commands=[
849 VK_NV_shader_subgroup_partitioned = Extension(name='VK_NV_shader_subgroup_partitioned', version=1, guard=None, commands=[
852 VK_NV_compute_shader_derivatives = Extension(name='VK_NV_compute_shader_derivatives', version=1, guard=None, commands=[
855 VK_NV_mesh_shader = Extension(name='VK_NV_mesh_shader', version=1, guard=None, commands=[
856 Command(name='vkCmdDrawMeshTasksNV', dispatch='VkCommandBuffer'),
857 Command(name='vkCmdDrawMeshTasksIndirectNV', dispatch='VkCommandBuffer'),
858 Command(name='vkCmdDrawMeshTasksIndirectCountNV', dispatch='VkCommandBuffer'),
861 VK_NV_fragment_shader_barycentric = Extension(name='VK_NV_fragment_shader_barycentric', version=1, guard=None, commands=[
864 VK_NV_shader_image_footprint = Extension(name='VK_NV_shader_image_footprint', version=2, guard=None, commands=[
867 VK_NV_scissor_exclusive = Extension(name='VK_NV_scissor_exclusive', version=1, guard=None, commands=[
868 Command(name='vkCmdSetExclusiveScissorNV', dispatch='VkCommandBuffer'),
871 VK_NV_device_diagnostic_checkpoints = Extension(name='VK_NV_device_diagnostic_checkpoints', version=2, guard=None, commands=[
872 Command(name='vkCmdSetCheckpointNV', dispatch='VkCommandBuffer'),
873 Command(name='vkGetQueueCheckpointDataNV', dispatch='VkQueue'),
876 VK_INTEL_shader_integer_functions2 = Extension(name='VK_INTEL_shader_integer_functions2', version=1, guard=None, commands=[
879 VK_INTEL_performance_query = Extension(name='VK_INTEL_performance_query', version=2, guard=None, commands=[
880 Command(name='vkInitializePerformanceApiINTEL', dispatch='VkDevice'),
881 Command(name='vkUninitializePerformanceApiINTEL', dispatch='VkDevice'),
882 Command(name='vkCmdSetPerformanceMarkerINTEL', dispatch='VkCommandBuffer'),
883 Command(name='vkCmdSetPerformanceStreamMarkerINTEL', dispatch='VkCommandBuffer'),
884 Command(name='vkCmdSetPerformanceOverrideINTEL', dispatch='VkCommandBuffer'),
885 Command(name='vkAcquirePerformanceConfigurationINTEL', dispatch='VkDevice'),
886 Command(name='vkReleasePerformanceConfigurationINTEL', dispatch='VkDevice'),
887 Command(name='vkQueueSetPerformanceConfigurationINTEL', dispatch='VkQueue'),
888 Command(name='vkGetPerformanceParameterINTEL', dispatch='VkDevice'),
891 VK_EXT_pci_bus_info = Extension(name='VK_EXT_pci_bus_info', version=2, guard=None, commands=[
894 VK_AMD_display_native_hdr = Extension(name='VK_AMD_display_native_hdr', version=1, guard=None, commands=[
895 Command(name='vkSetLocalDimmingAMD', dispatch='VkDevice'),
898 VK_EXT_fragment_density_map = Extension(name='VK_EXT_fragment_density_map', version=1, guard=None, commands=[
901 VK_EXT_scalar_block_layout = Extension(name='VK_EXT_scalar_block_layout', version=1, guard=None, commands=[
904 VK_GOOGLE_hlsl_functionality1 = Extension(name='VK_GOOGLE_hlsl_functionality1', version=1, guard=None, commands=[
907 VK_GOOGLE_decorate_string = Extension(name='VK_GOOGLE_decorate_string', version=1, guard=None, commands=[
910 VK_EXT_subgroup_size_control = Extension(name='VK_EXT_subgroup_size_control', version=2, guard=None, commands=[
913 VK_AMD_shader_core_properties2 = Extension(name='VK_AMD_shader_core_properties2', version=1, guard=None, commands=[
916 VK_AMD_device_coherent_memory = Extension(name='VK_AMD_device_coherent_memory', version=1, guard=None, commands=[
919 VK_EXT_memory_budget = Extension(name='VK_EXT_memory_budget', version=1, guard=None, commands=[
922 VK_EXT_memory_priority = Extension(name='VK_EXT_memory_priority', version=1, guard=None, commands=[
925 VK_NV_dedicated_allocation_image_aliasing = Extension(name='VK_NV_dedicated_allocation_image_aliasing', version=1, guard=None, commands=[
928 VK_EXT_buffer_device_address = Extension(name='VK_EXT_buffer_device_address', version=2, guard=None, commands=[
929 Command(name='vkGetBufferDeviceAddressEXT', dispatch='VkDevice'),
932 VK_EXT_tooling_info = Extension(name='VK_EXT_tooling_info', version=1, guard=None, commands=[
933 Command(name='vkGetPhysicalDeviceToolPropertiesEXT', dispatch='VkPhysicalDevice'),
936 VK_EXT_separate_stencil_usage = Extension(name='VK_EXT_separate_stencil_usage', version=1, guard=None, commands=[
939 VK_EXT_validation_features = Extension(name='VK_EXT_validation_features', version=3, guard=None, commands=[
942 VK_NV_cooperative_matrix = Extension(name='VK_NV_cooperative_matrix', version=1, guard=None, commands=[
943 Command(name='vkGetPhysicalDeviceCooperativeMatrixPropertiesNV', dispatch='VkPhysicalDevice'),
946 VK_NV_coverage_reduction_mode = Extension(name='VK_NV_coverage_reduction_mode', version=1, guard=None, commands=[
947 Command(name='vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV', dispatch='VkPhysicalDevice'),
950 VK_EXT_fragment_shader_interlock = Extension(name='VK_EXT_fragment_shader_interlock', version=1, guard=None, commands=[
953 VK_EXT_ycbcr_image_arrays = Extension(name='VK_EXT_ycbcr_image_arrays', version=1, guard=None, commands=[
956 VK_EXT_headless_surface = Extension(name='VK_EXT_headless_surface', version=1, guard=None, commands=[
957 Command(name='vkCreateHeadlessSurfaceEXT', dispatch='VkInstance'),
960 VK_EXT_line_rasterization = Extension(name='VK_EXT_line_rasterization', version=1, guard=None, commands=[
961 Command(name='vkCmdSetLineStippleEXT', dispatch='VkCommandBuffer'),
964 VK_EXT_host_query_reset = Extension(name='VK_EXT_host_query_reset', version=1, guard=None, commands=[
965 Command(name='vkResetQueryPoolEXT', dispatch='VkDevice'),
968 VK_EXT_index_type_uint8 = Extension(name='VK_EXT_index_type_uint8', version=1, guard=None, commands=[
971 VK_EXT_shader_demote_to_helper_invocation = Extension(name='VK_EXT_shader_demote_to_helper_invocation', version=1, guard=None, commands=[
974 VK_NV_device_generated_commands = Extension(name='VK_NV_device_generated_commands', version=3, guard=None, commands=[
975 Command(name='vkGetGeneratedCommandsMemoryRequirementsNV', dispatch='VkDevice'),
976 Command(name='vkCmdPreprocessGeneratedCommandsNV', dispatch='VkCommandBuffer'),
977 Command(name='vkCmdExecuteGeneratedCommandsNV', dispatch='VkCommandBuffer'),
978 Command(name='vkCmdBindPipelineShaderGroupNV', dispatch='VkCommandBuffer'),
979 Command(name='vkCreateIndirectCommandsLayoutNV', dispatch='VkDevice'),
980 Command(name='vkDestroyIndirectCommandsLayoutNV', dispatch='VkDevice'),
983 VK_EXT_texel_buffer_alignment = Extension(name='VK_EXT_texel_buffer_alignment', version=1, guard=None, commands=[
986 VK_QCOM_render_pass_transform = Extension(name='VK_QCOM_render_pass_transform', version=1, guard=None, commands=[
989 VK_GOOGLE_user_type = Extension(name='VK_GOOGLE_user_type', version=1, guard=None, commands=[
992 VK_EXT_pipeline_creation_cache_control = Extension(name='VK_EXT_pipeline_creation_cache_control', version=2, guard=None, commands=[
995 VK_NV_device_diagnostics_config = Extension(name='VK_NV_device_diagnostics_config', version=1, guard=None, commands=[
998 VK_KHR_android_surface = Extension(name='VK_KHR_android_surface', version=6, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[
999 Command(name='vkCreateAndroidSurfaceKHR', dispatch='VkInstance'),
1002 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=[
1003 Command(name='vkGetAndroidHardwareBufferPropertiesANDROID', dispatch='VkDevice'),
1004 Command(name='vkGetMemoryAndroidHardwareBufferANDROID', dispatch='VkDevice'),
1007 VK_FUCHSIA_imagepipe_surface = Extension(name='VK_FUCHSIA_imagepipe_surface', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[
1008 Command(name='vkCreateImagePipeSurfaceFUCHSIA', dispatch='VkInstance'),
1011 VK_MVK_ios_surface = Extension(name='VK_MVK_ios_surface', version=2, guard='VK_USE_PLATFORM_IOS_MVK', commands=[
1012 Command(name='vkCreateIOSSurfaceMVK', dispatch='VkInstance'),
1015 VK_MVK_macos_surface = Extension(name='VK_MVK_macos_surface', version=2, guard='VK_USE_PLATFORM_MACOS_MVK', commands=[
1016 Command(name='vkCreateMacOSSurfaceMVK', dispatch='VkInstance'),
1019 VK_EXT_metal_surface = Extension(name='VK_EXT_metal_surface', version=1, guard='VK_USE_PLATFORM_METAL_EXT', commands=[
1020 Command(name='vkCreateMetalSurfaceEXT', dispatch='VkInstance'),
1023 VK_NN_vi_surface = Extension(name='VK_NN_vi_surface', version=1, guard='VK_USE_PLATFORM_VI_NN', commands=[
1024 Command(name='vkCreateViSurfaceNN', dispatch='VkInstance'),
1027 VK_KHR_wayland_surface = Extension(name='VK_KHR_wayland_surface', version=6, guard='VK_USE_PLATFORM_WAYLAND_KHR', commands=[
1028 Command(name='vkCreateWaylandSurfaceKHR', dispatch='VkInstance'),
1029 Command(name='vkGetPhysicalDeviceWaylandPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1032 VK_KHR_win32_surface = Extension(name='VK_KHR_win32_surface', version=6, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1033 Command(name='vkCreateWin32SurfaceKHR', dispatch='VkInstance'),
1034 Command(name='vkGetPhysicalDeviceWin32PresentationSupportKHR', dispatch='VkPhysicalDevice'),
1037 VK_KHR_external_memory_win32 = Extension(name='VK_KHR_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1038 Command(name='vkGetMemoryWin32HandleKHR', dispatch='VkDevice'),
1039 Command(name='vkGetMemoryWin32HandlePropertiesKHR', dispatch='VkDevice'),
1042 VK_KHR_win32_keyed_mutex = Extension(name='VK_KHR_win32_keyed_mutex', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1045 VK_KHR_external_semaphore_win32 = Extension(name='VK_KHR_external_semaphore_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1046 Command(name='vkImportSemaphoreWin32HandleKHR', dispatch='VkDevice'),
1047 Command(name='vkGetSemaphoreWin32HandleKHR', dispatch='VkDevice'),
1050 VK_KHR_external_fence_win32 = Extension(name='VK_KHR_external_fence_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1051 Command(name='vkImportFenceWin32HandleKHR', dispatch='VkDevice'),
1052 Command(name='vkGetFenceWin32HandleKHR', dispatch='VkDevice'),
1055 VK_NV_external_memory_win32 = Extension(name='VK_NV_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1056 Command(name='vkGetMemoryWin32HandleNV', dispatch='VkDevice'),
1059 VK_NV_win32_keyed_mutex = Extension(name='VK_NV_win32_keyed_mutex', version=2, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1062 VK_EXT_full_screen_exclusive = Extension(name='VK_EXT_full_screen_exclusive', version=4, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1063 Command(name='vkGetPhysicalDeviceSurfacePresentModes2EXT', dispatch='VkPhysicalDevice'),
1064 Command(name='vkAcquireFullScreenExclusiveModeEXT', dispatch='VkDevice'),
1065 Command(name='vkReleaseFullScreenExclusiveModeEXT', dispatch='VkDevice'),
1066 Command(name='vkGetDeviceGroupSurfacePresentModes2EXT', dispatch='VkDevice'),
1069 VK_KHR_xcb_surface = Extension(name='VK_KHR_xcb_surface', version=6, guard='VK_USE_PLATFORM_XCB_KHR', commands=[
1070 Command(name='vkCreateXcbSurfaceKHR', dispatch='VkInstance'),
1071 Command(name='vkGetPhysicalDeviceXcbPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1074 VK_KHR_xlib_surface = Extension(name='VK_KHR_xlib_surface', version=6, guard='VK_USE_PLATFORM_XLIB_KHR', commands=[
1075 Command(name='vkCreateXlibSurfaceKHR', dispatch='VkInstance'),
1076 Command(name='vkGetPhysicalDeviceXlibPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1079 VK_EXT_acquire_xlib_display = Extension(name='VK_EXT_acquire_xlib_display', version=1, guard='VK_USE_PLATFORM_XLIB_XRANDR_EXT', commands=[
1080 Command(name='vkAcquireXlibDisplayEXT', dispatch='VkPhysicalDevice'),
1081 Command(name='vkGetRandROutputDisplayEXT', dispatch='VkPhysicalDevice'),
1084 VK_GGP_stream_descriptor_surface = Extension(name='VK_GGP_stream_descriptor_surface', version=1, guard='VK_USE_PLATFORM_GGP', commands=[
1085 Command(name='vkCreateStreamDescriptorSurfaceGGP', dispatch='VkInstance'),
1088 VK_GGP_frame_token = Extension(name='VK_GGP_frame_token', version=1, guard='VK_USE_PLATFORM_GGP', commands=[
1091 VK_KHR_deferred_host_operations = Extension(name='VK_KHR_deferred_host_operations', version=2, guard='VK_USE_PLATFORM_GGP', commands=[
1092 Command(name='vkCreateDeferredOperationKHR', dispatch='VkDevice'),
1093 Command(name='vkDestroyDeferredOperationKHR', dispatch='VkDevice'),
1094 Command(name='vkGetDeferredOperationMaxConcurrencyKHR', dispatch='VkDevice'),
1095 Command(name='vkGetDeferredOperationResultKHR', dispatch='VkDevice'),
1096 Command(name='vkDeferredOperationJoinKHR', dispatch='VkDevice'),
1099 VK_KHR_pipeline_library = Extension(name='VK_KHR_pipeline_library', version=1, guard='VK_USE_PLATFORM_GGP', commands=[
1102 VK_KHR_ray_tracing = Extension(name='VK_KHR_ray_tracing', version=8, guard='VK_USE_PLATFORM_GGP', commands=[
1103 Command(name='vkCreateAccelerationStructureKHR', dispatch='VkDevice'),
1104 Command(name='vkGetAccelerationStructureMemoryRequirementsKHR', dispatch='VkDevice'),
1105 Command(name='vkCmdBuildAccelerationStructureKHR', dispatch='VkCommandBuffer'),
1106 Command(name='vkCmdBuildAccelerationStructureIndirectKHR', dispatch='VkCommandBuffer'),
1107 Command(name='vkBuildAccelerationStructureKHR', dispatch='VkDevice'),
1108 Command(name='vkCopyAccelerationStructureKHR', dispatch='VkDevice'),
1109 Command(name='vkCopyAccelerationStructureToMemoryKHR', dispatch='VkDevice'),
1110 Command(name='vkCopyMemoryToAccelerationStructureKHR', dispatch='VkDevice'),
1111 Command(name='vkWriteAccelerationStructuresPropertiesKHR', dispatch='VkDevice'),
1112 Command(name='vkCmdCopyAccelerationStructureKHR', dispatch='VkCommandBuffer'),
1113 Command(name='vkCmdCopyAccelerationStructureToMemoryKHR', dispatch='VkCommandBuffer'),
1114 Command(name='vkCmdCopyMemoryToAccelerationStructureKHR', dispatch='VkCommandBuffer'),
1115 Command(name='vkCmdTraceRaysKHR', dispatch='VkCommandBuffer'),
1116 Command(name='vkCreateRayTracingPipelinesKHR', dispatch='VkDevice'),
1117 Command(name='vkGetAccelerationStructureDeviceAddressKHR', dispatch='VkDevice'),
1118 Command(name='vkGetRayTracingCaptureReplayShaderGroupHandlesKHR', dispatch='VkDevice'),
1119 Command(name='vkCmdTraceRaysIndirectKHR', dispatch='VkCommandBuffer'),
1120 Command(name='vkGetDeviceAccelerationStructureCompatibilityKHR', dispatch='VkDevice'),
1130 VK_KHR_display_swapchain,
1131 VK_KHR_sampler_mirror_clamp_to_edge,
1133 VK_KHR_get_physical_device_properties2,
1134 VK_KHR_device_group,
1135 VK_KHR_shader_draw_parameters,
1136 VK_KHR_maintenance1,
1137 VK_KHR_device_group_creation,
1138 VK_KHR_external_memory_capabilities,
1139 VK_KHR_external_memory,
1140 VK_KHR_external_memory_fd,
1141 VK_KHR_external_semaphore_capabilities,
1142 VK_KHR_external_semaphore,
1143 VK_KHR_external_semaphore_fd,
1144 VK_KHR_push_descriptor,
1145 VK_KHR_shader_float16_int8,
1146 VK_KHR_16bit_storage,
1147 VK_KHR_incremental_present,
1148 VK_KHR_descriptor_update_template,
1149 VK_KHR_imageless_framebuffer,
1150 VK_KHR_create_renderpass2,
1151 VK_KHR_shared_presentable_image,
1152 VK_KHR_external_fence_capabilities,
1153 VK_KHR_external_fence,
1154 VK_KHR_external_fence_fd,
1155 VK_KHR_performance_query,
1156 VK_KHR_maintenance2,
1157 VK_KHR_get_surface_capabilities2,
1158 VK_KHR_variable_pointers,
1159 VK_KHR_get_display_properties2,
1160 VK_KHR_dedicated_allocation,
1161 VK_KHR_storage_buffer_storage_class,
1162 VK_KHR_relaxed_block_layout,
1163 VK_KHR_get_memory_requirements2,
1164 VK_KHR_image_format_list,
1165 VK_KHR_sampler_ycbcr_conversion,
1166 VK_KHR_bind_memory2,
1167 VK_KHR_maintenance3,
1168 VK_KHR_draw_indirect_count,
1169 VK_KHR_shader_subgroup_extended_types,
1170 VK_KHR_8bit_storage,
1171 VK_KHR_shader_atomic_int64,
1172 VK_KHR_shader_clock,
1173 VK_KHR_driver_properties,
1174 VK_KHR_shader_float_controls,
1175 VK_KHR_depth_stencil_resolve,
1176 VK_KHR_swapchain_mutable_format,
1177 VK_KHR_timeline_semaphore,
1178 VK_KHR_vulkan_memory_model,
1180 VK_KHR_surface_protected_capabilities,
1181 VK_KHR_separate_depth_stencil_layouts,
1182 VK_KHR_uniform_buffer_standard_layout,
1183 VK_KHR_buffer_device_address,
1184 VK_KHR_pipeline_executable_properties,
1185 VK_KHR_shader_non_semantic_info,
1186 VK_EXT_debug_report,
1188 VK_EXT_depth_range_unrestricted,
1189 VK_IMG_filter_cubic,
1190 VK_AMD_rasterization_order,
1191 VK_AMD_shader_trinary_minmax,
1192 VK_AMD_shader_explicit_vertex_parameter,
1193 VK_EXT_debug_marker,
1195 VK_NV_dedicated_allocation,
1196 VK_EXT_transform_feedback,
1197 VK_NVX_image_view_handle,
1198 VK_AMD_draw_indirect_count,
1199 VK_AMD_negative_viewport_height,
1200 VK_AMD_gpu_shader_half_float,
1201 VK_AMD_shader_ballot,
1202 VK_AMD_texture_gather_bias_lod,
1204 VK_AMD_shader_image_load_store_lod,
1205 VK_NV_corner_sampled_image,
1206 VK_IMG_format_pvrtc,
1207 VK_NV_external_memory_capabilities,
1208 VK_NV_external_memory,
1209 VK_EXT_validation_flags,
1210 VK_EXT_shader_subgroup_ballot,
1211 VK_EXT_shader_subgroup_vote,
1212 VK_EXT_texture_compression_astc_hdr,
1213 VK_EXT_astc_decode_mode,
1214 VK_EXT_conditional_rendering,
1215 VK_NV_clip_space_w_scaling,
1216 VK_EXT_direct_mode_display,
1217 VK_EXT_display_surface_counter,
1218 VK_EXT_display_control,
1219 VK_GOOGLE_display_timing,
1220 VK_NV_sample_mask_override_coverage,
1221 VK_NV_geometry_shader_passthrough,
1222 VK_NV_viewport_array2,
1223 VK_NVX_multiview_per_view_attributes,
1224 VK_NV_viewport_swizzle,
1225 VK_EXT_discard_rectangles,
1226 VK_EXT_conservative_rasterization,
1227 VK_EXT_depth_clip_enable,
1228 VK_EXT_swapchain_colorspace,
1229 VK_EXT_hdr_metadata,
1230 VK_EXT_external_memory_dma_buf,
1231 VK_EXT_queue_family_foreign,
1233 VK_EXT_sampler_filter_minmax,
1234 VK_AMD_gpu_shader_int16,
1235 VK_AMD_mixed_attachment_samples,
1236 VK_AMD_shader_fragment_mask,
1237 VK_EXT_inline_uniform_block,
1238 VK_EXT_shader_stencil_export,
1239 VK_EXT_sample_locations,
1240 VK_EXT_blend_operation_advanced,
1241 VK_NV_fragment_coverage_to_color,
1242 VK_NV_framebuffer_mixed_samples,
1243 VK_NV_fill_rectangle,
1244 VK_NV_shader_sm_builtins,
1245 VK_EXT_post_depth_coverage,
1246 VK_EXT_image_drm_format_modifier,
1247 VK_EXT_validation_cache,
1248 VK_EXT_descriptor_indexing,
1249 VK_EXT_shader_viewport_index_layer,
1250 VK_NV_shading_rate_image,
1252 VK_NV_representative_fragment_test,
1253 VK_EXT_filter_cubic,
1254 VK_EXT_global_priority,
1255 VK_EXT_external_memory_host,
1256 VK_AMD_buffer_marker,
1257 VK_AMD_pipeline_compiler_control,
1258 VK_EXT_calibrated_timestamps,
1259 VK_AMD_shader_core_properties,
1260 VK_AMD_memory_overallocation_behavior,
1261 VK_EXT_vertex_attribute_divisor,
1262 VK_EXT_pipeline_creation_feedback,
1263 VK_NV_shader_subgroup_partitioned,
1264 VK_NV_compute_shader_derivatives,
1266 VK_NV_fragment_shader_barycentric,
1267 VK_NV_shader_image_footprint,
1268 VK_NV_scissor_exclusive,
1269 VK_NV_device_diagnostic_checkpoints,
1270 VK_INTEL_shader_integer_functions2,
1271 VK_INTEL_performance_query,
1272 VK_EXT_pci_bus_info,
1273 VK_AMD_display_native_hdr,
1274 VK_EXT_fragment_density_map,
1275 VK_EXT_scalar_block_layout,
1276 VK_GOOGLE_hlsl_functionality1,
1277 VK_GOOGLE_decorate_string,
1278 VK_EXT_subgroup_size_control,
1279 VK_AMD_shader_core_properties2,
1280 VK_AMD_device_coherent_memory,
1281 VK_EXT_memory_budget,
1282 VK_EXT_memory_priority,
1283 VK_NV_dedicated_allocation_image_aliasing,
1284 VK_EXT_buffer_device_address,
1285 VK_EXT_tooling_info,
1286 VK_EXT_separate_stencil_usage,
1287 VK_EXT_validation_features,
1288 VK_NV_cooperative_matrix,
1289 VK_NV_coverage_reduction_mode,
1290 VK_EXT_fragment_shader_interlock,
1291 VK_EXT_ycbcr_image_arrays,
1292 VK_EXT_headless_surface,
1293 VK_EXT_line_rasterization,
1294 VK_EXT_host_query_reset,
1295 VK_EXT_index_type_uint8,
1296 VK_EXT_shader_demote_to_helper_invocation,
1297 VK_NV_device_generated_commands,
1298 VK_EXT_texel_buffer_alignment,
1299 VK_QCOM_render_pass_transform,
1300 VK_GOOGLE_user_type,
1301 VK_EXT_pipeline_creation_cache_control,
1302 VK_NV_device_diagnostics_config,
1303 VK_KHR_android_surface,
1304 VK_ANDROID_external_memory_android_hardware_buffer,
1305 VK_FUCHSIA_imagepipe_surface,
1307 VK_MVK_macos_surface,
1308 VK_EXT_metal_surface,
1310 VK_KHR_wayland_surface,
1311 VK_KHR_win32_surface,
1312 VK_KHR_external_memory_win32,
1313 VK_KHR_win32_keyed_mutex,
1314 VK_KHR_external_semaphore_win32,
1315 VK_KHR_external_fence_win32,
1316 VK_NV_external_memory_win32,
1317 VK_NV_win32_keyed_mutex,
1318 VK_EXT_full_screen_exclusive,
1320 VK_KHR_xlib_surface,
1321 VK_EXT_acquire_xlib_display,
1322 VK_GGP_stream_descriptor_surface,
1324 VK_KHR_deferred_host_operations,
1325 VK_KHR_pipeline_library,
1328 # end of generated code
1330 def generate_wrapper_header(guard):
1332 copyright.append("/* ")
1333 copyright.append(" * Copyright 2018 The Android Open Source Project ")
1334 copyright.append(" * ")
1335 copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ")
1336 copyright.append(" * you may not use this file except in compliance with the License. ")
1337 copyright.append(" * You may obtain a copy of the License at ")
1338 copyright.append(" * ")
1339 copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ")
1340 copyright.append(" * ")
1341 copyright.append(" * Unless required by applicable law or agreed to in writing, software ")
1342 copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ")
1343 copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.")
1344 copyright.append(" * See the License for the specific language governing permissions and ")
1345 copyright.append(" * limitations under the License. ")
1346 copyright.append(" */ ")
1347 lines = [line.rstrip() for line in copyright]
1349 lines.append("// This file is generated.")
1350 lines.append("#ifndef %s" % guard)
1351 lines.append("#define %s" % guard)
1353 lines.append("#ifdef __cplusplus")
1354 lines.append("extern \"C\" {")
1355 lines.append("#endif")
1357 lines.append("#define VK_NO_PROTOTYPES 1")
1358 lines.append("#include <vulkan/vulkan.h>")
1360 lines.append("/* Initialize the Vulkan function pointer variables declared in this header.")
1361 lines.append(" * Returns 0 if vulkan is not available, non-zero if it is available.")
1363 lines.append("int InitVulkan(void);")
1366 for ext in extensions:
1367 # Only wrap core and WSI functions
1368 wrapped_exts = {'VK_core', 'VK_KHR'}
1369 if not any(ext.name.startswith(s) for s in wrapped_exts):
1373 lines.append("#ifdef %s" % ext.guard)
1375 lines.append("// %s" % ext.name)
1376 for cmd in ext.commands:
1377 lines.append("extern PFN_%s %s;" % (cmd.name, cmd.name))
1380 lines.append("#endif")
1385 lines.append("#ifdef __cplusplus")
1387 lines.append("#endif")
1389 lines.append("#endif // %s" % guard)
1391 return "\n".join(lines)
1393 def generate_wrapper_source(header):
1395 copyright.append("/* ")
1396 copyright.append(" * Copyright 2018 The Android Open Source Project ")
1397 copyright.append(" * ")
1398 copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ")
1399 copyright.append(" * you may not use this file except in compliance with the License. ")
1400 copyright.append(" * You may obtain a copy of the License at ")
1401 copyright.append(" * ")
1402 copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ")
1403 copyright.append(" * ")
1404 copyright.append(" * Unless required by applicable law or agreed to in writing, software ")
1405 copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ")
1406 copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.")
1407 copyright.append(" * See the License for the specific language governing permissions and ")
1408 copyright.append(" * limitations under the License. ")
1409 copyright.append(" */ ")
1410 lines = [line.rstrip() for line in copyright]
1412 lines.append("// This file is generated.")
1413 lines.append("#ifdef __cplusplus")
1414 lines.append("extern \"C\" {")
1415 lines.append("#endif")
1417 lines.append("#include \"%s\"" % header)
1418 lines.append("#include <dlfcn.h>")
1421 lines.append("int InitVulkan(void) {")
1422 lines.append(" void* libvulkan = dlopen(\"libvulkan.so\", RTLD_NOW | RTLD_LOCAL);")
1423 lines.append(" if (!libvulkan)")
1424 lines.append(" return 0;")
1426 lines.append(" // Vulkan supported, set function addresses")
1427 for ext in extensions:
1428 # Only wrap core and WSI functions
1429 wrapped_exts = {'VK_core', 'VK_KHR'}
1430 if not any(ext.name.startswith(s) for s in wrapped_exts):
1435 lines.append("#ifdef %s" % ext.guard)
1437 for cmd in ext.commands:
1438 lines.append(" %s = reinterpret_cast<PFN_%s>(dlsym(libvulkan, \"%s\"));" % (cmd.name, cmd.name, cmd.name))
1441 lines.append("#endif")
1443 lines.append(" return 1;")
1447 lines.append("// No Vulkan support, do not set function addresses")
1448 for ext in extensions:
1451 lines.append("#ifdef %s" % ext.guard)
1453 for cmd in ext.commands:
1454 lines.append("PFN_%s %s;" % (cmd.name, cmd.name))
1457 lines.append("#endif")
1460 lines.append("#ifdef __cplusplus")
1462 lines.append("#endif")
1464 return "\n".join(lines)
1466 def parse_subheader(filename, ext_guard):
1469 with open(filename, "r") as f:
1474 line = line.strip();
1476 if line.startswith("#define VK_API_VERSION"):
1477 minor_end = line.rfind(",")
1478 minor_begin = line.rfind(",", 0, minor_end) + 1
1479 spec_version = int(line[minor_begin:minor_end])
1481 current_ext = Extension("VK_core_%s" % spec_version, spec_version)
1482 sub_extensions.append(current_ext)
1483 elif Command.valid_c_typedef(line):
1484 current_ext.add_command(Command.from_c_typedef(line))
1485 elif line.startswith("#define") and "SPEC_VERSION " in line:
1486 version_begin = line.rfind(" ") + 1
1487 spec_version = int(line[version_begin:])
1488 elif line.startswith("#define") and "EXTENSION_NAME " in line:
1489 name_end = line.rfind("\"")
1490 name_begin = line.rfind("\"", 0, name_end) + 1
1491 name = line[name_begin:name_end]
1493 current_ext = Extension(name, spec_version, ext_guard)
1494 sub_extensions.append(current_ext)
1496 return sub_extensions;
1498 def parse_vulkan_h(filename):
1501 with open(filename, "r") as f:
1505 line = line.strip();
1507 if line.startswith("#include \"vulkan_"):
1508 # Extract the filename and parse it. Must be local to script file (no path).
1509 extensions.extend(parse_subheader(line[10:].replace('"', ''), ext_guard))
1510 elif line.startswith("#ifdef VK_USE_PLATFORM"):
1511 guard_begin = line.find(" ") + 1
1512 ext_guard = line[guard_begin:]
1513 elif ext_guard and line.startswith("#endif") and ext_guard in line:
1516 for ext in extensions:
1517 print("%s = %s" % (ext.name, repr(ext)))
1520 print("extensions = [")
1521 for ext in extensions:
1522 print(" %s," % ext.name)
1525 if __name__ == "__main__":
1526 if sys.argv[1] == "parse":
1527 parse_vulkan_h(sys.argv[2])
1529 filename = sys.argv[1]
1530 base = os.path.basename(filename)
1533 if base.endswith(".h"):
1534 contents = generate_wrapper_header(base.replace(".", "_").upper())
1535 elif base.endswith(".cpp"):
1536 contents = generate_wrapper_source(base.replace(".cpp", ".h"))
1538 with open(filename, "w") as f:
1539 print(contents, file=f)