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_core_3 = Extension(name='VK_core_3', version=3, guard=None, commands=[
287 Command(name='vkGetPhysicalDeviceToolProperties', dispatch='VkPhysicalDevice'),
288 Command(name='vkCreatePrivateDataSlot', dispatch='VkDevice'),
289 Command(name='vkDestroyPrivateDataSlot', dispatch='VkDevice'),
290 Command(name='vkSetPrivateData', dispatch='VkDevice'),
291 Command(name='vkGetPrivateData', dispatch='VkDevice'),
292 Command(name='vkCmdSetEvent2', dispatch='VkCommandBuffer'),
293 Command(name='vkCmdResetEvent2', dispatch='VkCommandBuffer'),
294 Command(name='vkCmdWaitEvents2', dispatch='VkCommandBuffer'),
295 Command(name='vkCmdPipelineBarrier2', dispatch='VkCommandBuffer'),
296 Command(name='vkCmdWriteTimestamp2', dispatch='VkCommandBuffer'),
297 Command(name='vkQueueSubmit2', dispatch='VkQueue'),
298 Command(name='vkCmdCopyBuffer2', dispatch='VkCommandBuffer'),
299 Command(name='vkCmdCopyImage2', dispatch='VkCommandBuffer'),
300 Command(name='vkCmdCopyBufferToImage2', dispatch='VkCommandBuffer'),
301 Command(name='vkCmdCopyImageToBuffer2', dispatch='VkCommandBuffer'),
302 Command(name='vkCmdBlitImage2', dispatch='VkCommandBuffer'),
303 Command(name='vkCmdResolveImage2', dispatch='VkCommandBuffer'),
304 Command(name='vkCmdBeginRendering', dispatch='VkCommandBuffer'),
305 Command(name='vkCmdEndRendering', dispatch='VkCommandBuffer'),
306 Command(name='vkCmdSetCullMode', dispatch='VkCommandBuffer'),
307 Command(name='vkCmdSetFrontFace', dispatch='VkCommandBuffer'),
308 Command(name='vkCmdSetPrimitiveTopology', dispatch='VkCommandBuffer'),
309 Command(name='vkCmdSetViewportWithCount', dispatch='VkCommandBuffer'),
310 Command(name='vkCmdSetScissorWithCount', dispatch='VkCommandBuffer'),
311 Command(name='vkCmdBindVertexBuffers2', dispatch='VkCommandBuffer'),
312 Command(name='vkCmdSetDepthTestEnable', dispatch='VkCommandBuffer'),
313 Command(name='vkCmdSetDepthWriteEnable', dispatch='VkCommandBuffer'),
314 Command(name='vkCmdSetDepthCompareOp', dispatch='VkCommandBuffer'),
315 Command(name='vkCmdSetDepthBoundsTestEnable', dispatch='VkCommandBuffer'),
316 Command(name='vkCmdSetStencilTestEnable', dispatch='VkCommandBuffer'),
317 Command(name='vkCmdSetStencilOp', dispatch='VkCommandBuffer'),
318 Command(name='vkCmdSetRasterizerDiscardEnable', dispatch='VkCommandBuffer'),
319 Command(name='vkCmdSetDepthBiasEnable', dispatch='VkCommandBuffer'),
320 Command(name='vkCmdSetPrimitiveRestartEnable', dispatch='VkCommandBuffer'),
321 Command(name='vkGetDeviceBufferMemoryRequirements', dispatch='VkDevice'),
322 Command(name='vkGetDeviceImageMemoryRequirements', dispatch='VkDevice'),
323 Command(name='vkGetDeviceImageSparseMemoryRequirements', dispatch='VkDevice'),
326 VK_KHR_surface = Extension(name='VK_KHR_surface', version=25, guard=None, commands=[
327 Command(name='vkDestroySurfaceKHR', dispatch='VkInstance'),
328 Command(name='vkGetPhysicalDeviceSurfaceSupportKHR', dispatch='VkPhysicalDevice'),
329 Command(name='vkGetPhysicalDeviceSurfaceCapabilitiesKHR', dispatch='VkPhysicalDevice'),
330 Command(name='vkGetPhysicalDeviceSurfaceFormatsKHR', dispatch='VkPhysicalDevice'),
331 Command(name='vkGetPhysicalDeviceSurfacePresentModesKHR', dispatch='VkPhysicalDevice'),
334 VK_KHR_swapchain = Extension(name='VK_KHR_swapchain', version=70, guard=None, commands=[
335 Command(name='vkCreateSwapchainKHR', dispatch='VkDevice'),
336 Command(name='vkDestroySwapchainKHR', dispatch='VkDevice'),
337 Command(name='vkGetSwapchainImagesKHR', dispatch='VkDevice'),
338 Command(name='vkAcquireNextImageKHR', dispatch='VkDevice'),
339 Command(name='vkQueuePresentKHR', dispatch='VkQueue'),
340 Command(name='vkGetDeviceGroupPresentCapabilitiesKHR', dispatch='VkDevice'),
341 Command(name='vkGetDeviceGroupSurfacePresentModesKHR', dispatch='VkDevice'),
342 Command(name='vkGetPhysicalDevicePresentRectanglesKHR', dispatch='VkPhysicalDevice'),
343 Command(name='vkAcquireNextImage2KHR', dispatch='VkDevice'),
346 VK_KHR_display = Extension(name='VK_KHR_display', version=23, guard=None, commands=[
347 Command(name='vkGetPhysicalDeviceDisplayPropertiesKHR', dispatch='VkPhysicalDevice'),
348 Command(name='vkGetPhysicalDeviceDisplayPlanePropertiesKHR', dispatch='VkPhysicalDevice'),
349 Command(name='vkGetDisplayPlaneSupportedDisplaysKHR', dispatch='VkPhysicalDevice'),
350 Command(name='vkGetDisplayModePropertiesKHR', dispatch='VkPhysicalDevice'),
351 Command(name='vkCreateDisplayModeKHR', dispatch='VkPhysicalDevice'),
352 Command(name='vkGetDisplayPlaneCapabilitiesKHR', dispatch='VkPhysicalDevice'),
353 Command(name='vkCreateDisplayPlaneSurfaceKHR', dispatch='VkInstance'),
356 VK_KHR_display_swapchain = Extension(name='VK_KHR_display_swapchain', version=10, guard=None, commands=[
357 Command(name='vkCreateSharedSwapchainsKHR', dispatch='VkDevice'),
360 VK_KHR_sampler_mirror_clamp_to_edge = Extension(name='VK_KHR_sampler_mirror_clamp_to_edge', version=3, guard=None, commands=[
363 VK_KHR_dynamic_rendering = Extension(name='VK_KHR_dynamic_rendering', version=1, guard=None, commands=[
364 Command(name='vkCmdBeginRenderingKHR', dispatch='VkCommandBuffer'),
365 Command(name='vkCmdEndRenderingKHR', dispatch='VkCommandBuffer'),
368 VK_KHR_multiview = Extension(name='VK_KHR_multiview', version=1, guard=None, commands=[
371 VK_KHR_get_physical_device_properties2 = Extension(name='VK_KHR_get_physical_device_properties2', version=2, guard=None, commands=[
372 Command(name='vkGetPhysicalDeviceFeatures2KHR', dispatch='VkPhysicalDevice'),
373 Command(name='vkGetPhysicalDeviceProperties2KHR', dispatch='VkPhysicalDevice'),
374 Command(name='vkGetPhysicalDeviceFormatProperties2KHR', dispatch='VkPhysicalDevice'),
375 Command(name='vkGetPhysicalDeviceImageFormatProperties2KHR', dispatch='VkPhysicalDevice'),
376 Command(name='vkGetPhysicalDeviceQueueFamilyProperties2KHR', dispatch='VkPhysicalDevice'),
377 Command(name='vkGetPhysicalDeviceMemoryProperties2KHR', dispatch='VkPhysicalDevice'),
378 Command(name='vkGetPhysicalDeviceSparseImageFormatProperties2KHR', dispatch='VkPhysicalDevice'),
381 VK_KHR_device_group = Extension(name='VK_KHR_device_group', version=4, guard=None, commands=[
382 Command(name='vkGetDeviceGroupPeerMemoryFeaturesKHR', dispatch='VkDevice'),
383 Command(name='vkCmdSetDeviceMaskKHR', dispatch='VkCommandBuffer'),
384 Command(name='vkCmdDispatchBaseKHR', dispatch='VkCommandBuffer'),
387 VK_KHR_shader_draw_parameters = Extension(name='VK_KHR_shader_draw_parameters', version=1, guard=None, commands=[
390 VK_KHR_maintenance1 = Extension(name='VK_KHR_maintenance1', version=2, guard=None, commands=[
391 Command(name='vkTrimCommandPoolKHR', dispatch='VkDevice'),
394 VK_KHR_device_group_creation = Extension(name='VK_KHR_device_group_creation', version=1, guard=None, commands=[
395 Command(name='vkEnumeratePhysicalDeviceGroupsKHR', dispatch='VkInstance'),
398 VK_KHR_external_memory_capabilities = Extension(name='VK_KHR_external_memory_capabilities', version=1, guard=None, commands=[
399 Command(name='vkGetPhysicalDeviceExternalBufferPropertiesKHR', dispatch='VkPhysicalDevice'),
402 VK_KHR_external_memory = Extension(name='VK_KHR_external_memory', version=1, guard=None, commands=[
405 VK_KHR_external_memory_fd = Extension(name='VK_KHR_external_memory_fd', version=1, guard=None, commands=[
406 Command(name='vkGetMemoryFdKHR', dispatch='VkDevice'),
407 Command(name='vkGetMemoryFdPropertiesKHR', dispatch='VkDevice'),
410 VK_KHR_external_semaphore_capabilities = Extension(name='VK_KHR_external_semaphore_capabilities', version=1, guard=None, commands=[
411 Command(name='vkGetPhysicalDeviceExternalSemaphorePropertiesKHR', dispatch='VkPhysicalDevice'),
414 VK_KHR_external_semaphore = Extension(name='VK_KHR_external_semaphore', version=1, guard=None, commands=[
417 VK_KHR_external_semaphore_fd = Extension(name='VK_KHR_external_semaphore_fd', version=1, guard=None, commands=[
418 Command(name='vkImportSemaphoreFdKHR', dispatch='VkDevice'),
419 Command(name='vkGetSemaphoreFdKHR', dispatch='VkDevice'),
422 VK_KHR_push_descriptor = Extension(name='VK_KHR_push_descriptor', version=2, guard=None, commands=[
423 Command(name='vkCmdPushDescriptorSetKHR', dispatch='VkCommandBuffer'),
424 Command(name='vkCmdPushDescriptorSetWithTemplateKHR', dispatch='VkCommandBuffer'),
427 VK_KHR_shader_float16_int8 = Extension(name='VK_KHR_shader_float16_int8', version=1, guard=None, commands=[
430 VK_KHR_16bit_storage = Extension(name='VK_KHR_16bit_storage', version=1, guard=None, commands=[
433 VK_KHR_incremental_present = Extension(name='VK_KHR_incremental_present', version=2, guard=None, commands=[
436 VK_KHR_descriptor_update_template = Extension(name='VK_KHR_descriptor_update_template', version=1, guard=None, commands=[
437 Command(name='vkCreateDescriptorUpdateTemplateKHR', dispatch='VkDevice'),
438 Command(name='vkDestroyDescriptorUpdateTemplateKHR', dispatch='VkDevice'),
439 Command(name='vkUpdateDescriptorSetWithTemplateKHR', dispatch='VkDevice'),
442 VK_KHR_imageless_framebuffer = Extension(name='VK_KHR_imageless_framebuffer', version=1, guard=None, commands=[
445 VK_KHR_create_renderpass2 = Extension(name='VK_KHR_create_renderpass2', version=1, guard=None, commands=[
446 Command(name='vkCreateRenderPass2KHR', dispatch='VkDevice'),
447 Command(name='vkCmdBeginRenderPass2KHR', dispatch='VkCommandBuffer'),
448 Command(name='vkCmdNextSubpass2KHR', dispatch='VkCommandBuffer'),
449 Command(name='vkCmdEndRenderPass2KHR', dispatch='VkCommandBuffer'),
452 VK_KHR_shared_presentable_image = Extension(name='VK_KHR_shared_presentable_image', version=1, guard=None, commands=[
453 Command(name='vkGetSwapchainStatusKHR', dispatch='VkDevice'),
456 VK_KHR_external_fence_capabilities = Extension(name='VK_KHR_external_fence_capabilities', version=1, guard=None, commands=[
457 Command(name='vkGetPhysicalDeviceExternalFencePropertiesKHR', dispatch='VkPhysicalDevice'),
460 VK_KHR_external_fence = Extension(name='VK_KHR_external_fence', version=1, guard=None, commands=[
463 VK_KHR_external_fence_fd = Extension(name='VK_KHR_external_fence_fd', version=1, guard=None, commands=[
464 Command(name='vkImportFenceFdKHR', dispatch='VkDevice'),
465 Command(name='vkGetFenceFdKHR', dispatch='VkDevice'),
468 VK_KHR_performance_query = Extension(name='VK_KHR_performance_query', version=1, guard=None, commands=[
469 Command(name='vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR', dispatch='VkPhysicalDevice'),
470 Command(name='vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR', dispatch='VkPhysicalDevice'),
471 Command(name='vkAcquireProfilingLockKHR', dispatch='VkDevice'),
472 Command(name='vkReleaseProfilingLockKHR', dispatch='VkDevice'),
475 VK_KHR_maintenance2 = Extension(name='VK_KHR_maintenance2', version=1, guard=None, commands=[
478 VK_KHR_get_surface_capabilities2 = Extension(name='VK_KHR_get_surface_capabilities2', version=1, guard=None, commands=[
479 Command(name='vkGetPhysicalDeviceSurfaceCapabilities2KHR', dispatch='VkPhysicalDevice'),
480 Command(name='vkGetPhysicalDeviceSurfaceFormats2KHR', dispatch='VkPhysicalDevice'),
483 VK_KHR_variable_pointers = Extension(name='VK_KHR_variable_pointers', version=1, guard=None, commands=[
486 VK_KHR_get_display_properties2 = Extension(name='VK_KHR_get_display_properties2', version=1, guard=None, commands=[
487 Command(name='vkGetPhysicalDeviceDisplayProperties2KHR', dispatch='VkPhysicalDevice'),
488 Command(name='vkGetPhysicalDeviceDisplayPlaneProperties2KHR', dispatch='VkPhysicalDevice'),
489 Command(name='vkGetDisplayModeProperties2KHR', dispatch='VkPhysicalDevice'),
490 Command(name='vkGetDisplayPlaneCapabilities2KHR', dispatch='VkPhysicalDevice'),
493 VK_KHR_dedicated_allocation = Extension(name='VK_KHR_dedicated_allocation', version=3, guard=None, commands=[
496 VK_KHR_storage_buffer_storage_class = Extension(name='VK_KHR_storage_buffer_storage_class', version=1, guard=None, commands=[
499 VK_KHR_relaxed_block_layout = Extension(name='VK_KHR_relaxed_block_layout', version=1, guard=None, commands=[
502 VK_KHR_get_memory_requirements2 = Extension(name='VK_KHR_get_memory_requirements2', version=1, guard=None, commands=[
503 Command(name='vkGetImageMemoryRequirements2KHR', dispatch='VkDevice'),
504 Command(name='vkGetBufferMemoryRequirements2KHR', dispatch='VkDevice'),
505 Command(name='vkGetImageSparseMemoryRequirements2KHR', dispatch='VkDevice'),
508 VK_KHR_image_format_list = Extension(name='VK_KHR_image_format_list', version=1, guard=None, commands=[
511 VK_KHR_sampler_ycbcr_conversion = Extension(name='VK_KHR_sampler_ycbcr_conversion', version=14, guard=None, commands=[
512 Command(name='vkCreateSamplerYcbcrConversionKHR', dispatch='VkDevice'),
513 Command(name='vkDestroySamplerYcbcrConversionKHR', dispatch='VkDevice'),
516 VK_KHR_bind_memory2 = Extension(name='VK_KHR_bind_memory2', version=1, guard=None, commands=[
517 Command(name='vkBindBufferMemory2KHR', dispatch='VkDevice'),
518 Command(name='vkBindImageMemory2KHR', dispatch='VkDevice'),
521 VK_KHR_maintenance3 = Extension(name='VK_KHR_maintenance3', version=1, guard=None, commands=[
522 Command(name='vkGetDescriptorSetLayoutSupportKHR', dispatch='VkDevice'),
525 VK_KHR_draw_indirect_count = Extension(name='VK_KHR_draw_indirect_count', version=1, guard=None, commands=[
526 Command(name='vkCmdDrawIndirectCountKHR', dispatch='VkCommandBuffer'),
527 Command(name='vkCmdDrawIndexedIndirectCountKHR', dispatch='VkCommandBuffer'),
530 VK_KHR_shader_subgroup_extended_types = Extension(name='VK_KHR_shader_subgroup_extended_types', version=1, guard=None, commands=[
533 VK_KHR_8bit_storage = Extension(name='VK_KHR_8bit_storage', version=1, guard=None, commands=[
536 VK_KHR_shader_atomic_int64 = Extension(name='VK_KHR_shader_atomic_int64', version=1, guard=None, commands=[
539 VK_KHR_shader_clock = Extension(name='VK_KHR_shader_clock', version=1, guard=None, commands=[
542 VK_KHR_global_priority = Extension(name='VK_KHR_global_priority', version=1, guard=None, commands=[
545 VK_KHR_driver_properties = Extension(name='VK_KHR_driver_properties', version=1, guard=None, commands=[
548 VK_KHR_shader_float_controls = Extension(name='VK_KHR_shader_float_controls', version=4, guard=None, commands=[
551 VK_KHR_depth_stencil_resolve = Extension(name='VK_KHR_depth_stencil_resolve', version=1, guard=None, commands=[
554 VK_KHR_swapchain_mutable_format = Extension(name='VK_KHR_swapchain_mutable_format', version=1, guard=None, commands=[
557 VK_KHR_timeline_semaphore = Extension(name='VK_KHR_timeline_semaphore', version=2, guard=None, commands=[
558 Command(name='vkGetSemaphoreCounterValueKHR', dispatch='VkDevice'),
559 Command(name='vkWaitSemaphoresKHR', dispatch='VkDevice'),
560 Command(name='vkSignalSemaphoreKHR', dispatch='VkDevice'),
563 VK_KHR_vulkan_memory_model = Extension(name='VK_KHR_vulkan_memory_model', version=3, guard=None, commands=[
566 VK_KHR_shader_terminate_invocation = Extension(name='VK_KHR_shader_terminate_invocation', version=1, guard=None, commands=[
569 VK_KHR_fragment_shading_rate = Extension(name='VK_KHR_fragment_shading_rate', version=2, guard=None, commands=[
570 Command(name='vkGetPhysicalDeviceFragmentShadingRatesKHR', dispatch='VkPhysicalDevice'),
571 Command(name='vkCmdSetFragmentShadingRateKHR', dispatch='VkCommandBuffer'),
574 VK_KHR_spirv_1_4 = Extension(name='VK_KHR_spirv_1_4', version=1, guard=None, commands=[
577 VK_KHR_surface_protected_capabilities = Extension(name='VK_KHR_surface_protected_capabilities', version=1, guard=None, commands=[
580 VK_KHR_separate_depth_stencil_layouts = Extension(name='VK_KHR_separate_depth_stencil_layouts', version=1, guard=None, commands=[
583 VK_KHR_present_wait = Extension(name='VK_KHR_present_wait', version=1, guard=None, commands=[
584 Command(name='vkWaitForPresentKHR', dispatch='VkDevice'),
587 VK_KHR_uniform_buffer_standard_layout = Extension(name='VK_KHR_uniform_buffer_standard_layout', version=1, guard=None, commands=[
590 VK_KHR_buffer_device_address = Extension(name='VK_KHR_buffer_device_address', version=1, guard=None, commands=[
591 Command(name='vkGetBufferDeviceAddressKHR', dispatch='VkDevice'),
592 Command(name='vkGetBufferOpaqueCaptureAddressKHR', dispatch='VkDevice'),
593 Command(name='vkGetDeviceMemoryOpaqueCaptureAddressKHR', dispatch='VkDevice'),
596 VK_KHR_deferred_host_operations = Extension(name='VK_KHR_deferred_host_operations', version=4, guard=None, commands=[
597 Command(name='vkCreateDeferredOperationKHR', dispatch='VkDevice'),
598 Command(name='vkDestroyDeferredOperationKHR', dispatch='VkDevice'),
599 Command(name='vkGetDeferredOperationMaxConcurrencyKHR', dispatch='VkDevice'),
600 Command(name='vkGetDeferredOperationResultKHR', dispatch='VkDevice'),
601 Command(name='vkDeferredOperationJoinKHR', dispatch='VkDevice'),
604 VK_KHR_pipeline_executable_properties = Extension(name='VK_KHR_pipeline_executable_properties', version=1, guard=None, commands=[
605 Command(name='vkGetPipelineExecutablePropertiesKHR', dispatch='VkDevice'),
606 Command(name='vkGetPipelineExecutableStatisticsKHR', dispatch='VkDevice'),
607 Command(name='vkGetPipelineExecutableInternalRepresentationsKHR', dispatch='VkDevice'),
610 VK_KHR_shader_integer_dot_product = Extension(name='VK_KHR_shader_integer_dot_product', version=1, guard=None, commands=[
613 VK_KHR_pipeline_library = Extension(name='VK_KHR_pipeline_library', version=1, guard=None, commands=[
616 VK_KHR_shader_non_semantic_info = Extension(name='VK_KHR_shader_non_semantic_info', version=1, guard=None, commands=[
619 VK_KHR_present_id = Extension(name='VK_KHR_present_id', version=1, guard=None, commands=[
622 VK_KHR_synchronization2 = Extension(name='VK_KHR_synchronization2', version=1, guard=None, commands=[
623 Command(name='vkCmdSetEvent2KHR', dispatch='VkCommandBuffer'),
624 Command(name='vkCmdResetEvent2KHR', dispatch='VkCommandBuffer'),
625 Command(name='vkCmdWaitEvents2KHR', dispatch='VkCommandBuffer'),
626 Command(name='vkCmdPipelineBarrier2KHR', dispatch='VkCommandBuffer'),
627 Command(name='vkCmdWriteTimestamp2KHR', dispatch='VkCommandBuffer'),
628 Command(name='vkQueueSubmit2KHR', dispatch='VkQueue'),
629 Command(name='vkCmdWriteBufferMarker2AMD', dispatch='VkCommandBuffer'),
630 Command(name='vkGetQueueCheckpointData2NV', dispatch='VkQueue'),
633 VK_KHR_shader_subgroup_uniform_control_flow = Extension(name='VK_KHR_shader_subgroup_uniform_control_flow', version=1, guard=None, commands=[
636 VK_KHR_zero_initialize_workgroup_memory = Extension(name='VK_KHR_zero_initialize_workgroup_memory', version=1, guard=None, commands=[
639 VK_KHR_workgroup_memory_explicit_layout = Extension(name='VK_KHR_workgroup_memory_explicit_layout', version=1, guard=None, commands=[
642 VK_KHR_copy_commands2 = Extension(name='VK_KHR_copy_commands2', version=1, guard=None, commands=[
643 Command(name='vkCmdCopyBuffer2KHR', dispatch='VkCommandBuffer'),
644 Command(name='vkCmdCopyImage2KHR', dispatch='VkCommandBuffer'),
645 Command(name='vkCmdCopyBufferToImage2KHR', dispatch='VkCommandBuffer'),
646 Command(name='vkCmdCopyImageToBuffer2KHR', dispatch='VkCommandBuffer'),
647 Command(name='vkCmdBlitImage2KHR', dispatch='VkCommandBuffer'),
648 Command(name='vkCmdResolveImage2KHR', dispatch='VkCommandBuffer'),
651 VK_KHR_format_feature_flags2 = Extension(name='VK_KHR_format_feature_flags2', version=1, guard=None, commands=[
654 VK_KHR_maintenance4 = Extension(name='VK_KHR_maintenance4', version=2, guard=None, commands=[
655 Command(name='vkGetDeviceBufferMemoryRequirementsKHR', dispatch='VkDevice'),
656 Command(name='vkGetDeviceImageMemoryRequirementsKHR', dispatch='VkDevice'),
657 Command(name='vkGetDeviceImageSparseMemoryRequirementsKHR', dispatch='VkDevice'),
660 VK_EXT_debug_report = Extension(name='VK_EXT_debug_report', version=10, guard=None, commands=[
661 Command(name='vkCreateDebugReportCallbackEXT', dispatch='VkInstance'),
662 Command(name='vkDestroyDebugReportCallbackEXT', dispatch='VkInstance'),
663 Command(name='vkDebugReportMessageEXT', dispatch='VkInstance'),
666 VK_NV_glsl_shader = Extension(name='VK_NV_glsl_shader', version=1, guard=None, commands=[
669 VK_EXT_depth_range_unrestricted = Extension(name='VK_EXT_depth_range_unrestricted', version=1, guard=None, commands=[
672 VK_IMG_filter_cubic = Extension(name='VK_IMG_filter_cubic', version=1, guard=None, commands=[
675 VK_AMD_rasterization_order = Extension(name='VK_AMD_rasterization_order', version=1, guard=None, commands=[
678 VK_AMD_shader_trinary_minmax = Extension(name='VK_AMD_shader_trinary_minmax', version=1, guard=None, commands=[
681 VK_AMD_shader_explicit_vertex_parameter = Extension(name='VK_AMD_shader_explicit_vertex_parameter', version=1, guard=None, commands=[
684 VK_EXT_debug_marker = Extension(name='VK_EXT_debug_marker', version=4, guard=None, commands=[
685 Command(name='vkDebugMarkerSetObjectTagEXT', dispatch='VkDevice'),
686 Command(name='vkDebugMarkerSetObjectNameEXT', dispatch='VkDevice'),
687 Command(name='vkCmdDebugMarkerBeginEXT', dispatch='VkCommandBuffer'),
688 Command(name='vkCmdDebugMarkerEndEXT', dispatch='VkCommandBuffer'),
689 Command(name='vkCmdDebugMarkerInsertEXT', dispatch='VkCommandBuffer'),
692 VK_AMD_gcn_shader = Extension(name='VK_AMD_gcn_shader', version=1, guard=None, commands=[
695 VK_NV_dedicated_allocation = Extension(name='VK_NV_dedicated_allocation', version=1, guard=None, commands=[
698 VK_EXT_transform_feedback = Extension(name='VK_EXT_transform_feedback', version=1, guard=None, commands=[
699 Command(name='vkCmdBindTransformFeedbackBuffersEXT', dispatch='VkCommandBuffer'),
700 Command(name='vkCmdBeginTransformFeedbackEXT', dispatch='VkCommandBuffer'),
701 Command(name='vkCmdEndTransformFeedbackEXT', dispatch='VkCommandBuffer'),
702 Command(name='vkCmdBeginQueryIndexedEXT', dispatch='VkCommandBuffer'),
703 Command(name='vkCmdEndQueryIndexedEXT', dispatch='VkCommandBuffer'),
704 Command(name='vkCmdDrawIndirectByteCountEXT', dispatch='VkCommandBuffer'),
707 VK_NVX_binary_import = Extension(name='VK_NVX_binary_import', version=1, guard=None, commands=[
708 Command(name='vkCreateCuModuleNVX', dispatch='VkDevice'),
709 Command(name='vkCreateCuFunctionNVX', dispatch='VkDevice'),
710 Command(name='vkDestroyCuModuleNVX', dispatch='VkDevice'),
711 Command(name='vkDestroyCuFunctionNVX', dispatch='VkDevice'),
712 Command(name='vkCmdCuLaunchKernelNVX', dispatch='VkCommandBuffer'),
715 VK_NVX_image_view_handle = Extension(name='VK_NVX_image_view_handle', version=2, guard=None, commands=[
716 Command(name='vkGetImageViewHandleNVX', dispatch='VkDevice'),
717 Command(name='vkGetImageViewAddressNVX', dispatch='VkDevice'),
720 VK_AMD_draw_indirect_count = Extension(name='VK_AMD_draw_indirect_count', version=2, guard=None, commands=[
721 Command(name='vkCmdDrawIndirectCountAMD', dispatch='VkCommandBuffer'),
722 Command(name='vkCmdDrawIndexedIndirectCountAMD', dispatch='VkCommandBuffer'),
725 VK_AMD_negative_viewport_height = Extension(name='VK_AMD_negative_viewport_height', version=1, guard=None, commands=[
728 VK_AMD_gpu_shader_half_float = Extension(name='VK_AMD_gpu_shader_half_float', version=2, guard=None, commands=[
731 VK_AMD_shader_ballot = Extension(name='VK_AMD_shader_ballot', version=1, guard=None, commands=[
734 VK_AMD_texture_gather_bias_lod = Extension(name='VK_AMD_texture_gather_bias_lod', version=1, guard=None, commands=[
737 VK_AMD_shader_info = Extension(name='VK_AMD_shader_info', version=1, guard=None, commands=[
738 Command(name='vkGetShaderInfoAMD', dispatch='VkDevice'),
741 VK_AMD_shader_image_load_store_lod = Extension(name='VK_AMD_shader_image_load_store_lod', version=1, guard=None, commands=[
744 VK_NV_corner_sampled_image = Extension(name='VK_NV_corner_sampled_image', version=2, guard=None, commands=[
747 VK_IMG_format_pvrtc = Extension(name='VK_IMG_format_pvrtc', version=1, guard=None, commands=[
750 VK_NV_external_memory_capabilities = Extension(name='VK_NV_external_memory_capabilities', version=1, guard=None, commands=[
751 Command(name='vkGetPhysicalDeviceExternalImageFormatPropertiesNV', dispatch='VkPhysicalDevice'),
754 VK_NV_external_memory = Extension(name='VK_NV_external_memory', version=1, guard=None, commands=[
757 VK_EXT_validation_flags = Extension(name='VK_EXT_validation_flags', version=2, guard=None, commands=[
760 VK_EXT_shader_subgroup_ballot = Extension(name='VK_EXT_shader_subgroup_ballot', version=1, guard=None, commands=[
763 VK_EXT_shader_subgroup_vote = Extension(name='VK_EXT_shader_subgroup_vote', version=1, guard=None, commands=[
766 VK_EXT_texture_compression_astc_hdr = Extension(name='VK_EXT_texture_compression_astc_hdr', version=1, guard=None, commands=[
769 VK_EXT_astc_decode_mode = Extension(name='VK_EXT_astc_decode_mode', version=1, guard=None, commands=[
772 VK_EXT_conditional_rendering = Extension(name='VK_EXT_conditional_rendering', version=2, guard=None, commands=[
773 Command(name='vkCmdBeginConditionalRenderingEXT', dispatch='VkCommandBuffer'),
774 Command(name='vkCmdEndConditionalRenderingEXT', dispatch='VkCommandBuffer'),
777 VK_NV_clip_space_w_scaling = Extension(name='VK_NV_clip_space_w_scaling', version=1, guard=None, commands=[
778 Command(name='vkCmdSetViewportWScalingNV', dispatch='VkCommandBuffer'),
781 VK_EXT_direct_mode_display = Extension(name='VK_EXT_direct_mode_display', version=1, guard=None, commands=[
782 Command(name='vkReleaseDisplayEXT', dispatch='VkPhysicalDevice'),
785 VK_EXT_display_surface_counter = Extension(name='VK_EXT_display_surface_counter', version=1, guard=None, commands=[
786 Command(name='vkGetPhysicalDeviceSurfaceCapabilities2EXT', dispatch='VkPhysicalDevice'),
789 VK_EXT_display_control = Extension(name='VK_EXT_display_control', version=1, guard=None, commands=[
790 Command(name='vkDisplayPowerControlEXT', dispatch='VkDevice'),
791 Command(name='vkRegisterDeviceEventEXT', dispatch='VkDevice'),
792 Command(name='vkRegisterDisplayEventEXT', dispatch='VkDevice'),
793 Command(name='vkGetSwapchainCounterEXT', dispatch='VkDevice'),
796 VK_GOOGLE_display_timing = Extension(name='VK_GOOGLE_display_timing', version=1, guard=None, commands=[
797 Command(name='vkGetRefreshCycleDurationGOOGLE', dispatch='VkDevice'),
798 Command(name='vkGetPastPresentationTimingGOOGLE', dispatch='VkDevice'),
801 VK_NV_sample_mask_override_coverage = Extension(name='VK_NV_sample_mask_override_coverage', version=1, guard=None, commands=[
804 VK_NV_geometry_shader_passthrough = Extension(name='VK_NV_geometry_shader_passthrough', version=1, guard=None, commands=[
807 VK_NV_viewport_array2 = Extension(name='VK_NV_viewport_array2', version=1, guard=None, commands=[
810 VK_NVX_multiview_per_view_attributes = Extension(name='VK_NVX_multiview_per_view_attributes', version=1, guard=None, commands=[
813 VK_NV_viewport_swizzle = Extension(name='VK_NV_viewport_swizzle', version=1, guard=None, commands=[
816 VK_EXT_discard_rectangles = Extension(name='VK_EXT_discard_rectangles', version=1, guard=None, commands=[
817 Command(name='vkCmdSetDiscardRectangleEXT', dispatch='VkCommandBuffer'),
820 VK_EXT_conservative_rasterization = Extension(name='VK_EXT_conservative_rasterization', version=1, guard=None, commands=[
823 VK_EXT_depth_clip_enable = Extension(name='VK_EXT_depth_clip_enable', version=1, guard=None, commands=[
826 VK_EXT_swapchain_colorspace = Extension(name='VK_EXT_swapchain_colorspace', version=4, guard=None, commands=[
829 VK_EXT_hdr_metadata = Extension(name='VK_EXT_hdr_metadata', version=2, guard=None, commands=[
830 Command(name='vkSetHdrMetadataEXT', dispatch='VkDevice'),
833 VK_EXT_external_memory_dma_buf = Extension(name='VK_EXT_external_memory_dma_buf', version=1, guard=None, commands=[
836 VK_EXT_queue_family_foreign = Extension(name='VK_EXT_queue_family_foreign', version=1, guard=None, commands=[
839 VK_EXT_debug_utils = Extension(name='VK_EXT_debug_utils', version=2, guard=None, commands=[
840 Command(name='vkSetDebugUtilsObjectNameEXT', dispatch='VkDevice'),
841 Command(name='vkSetDebugUtilsObjectTagEXT', dispatch='VkDevice'),
842 Command(name='vkQueueBeginDebugUtilsLabelEXT', dispatch='VkQueue'),
843 Command(name='vkQueueEndDebugUtilsLabelEXT', dispatch='VkQueue'),
844 Command(name='vkQueueInsertDebugUtilsLabelEXT', dispatch='VkQueue'),
845 Command(name='vkCmdBeginDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
846 Command(name='vkCmdEndDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
847 Command(name='vkCmdInsertDebugUtilsLabelEXT', dispatch='VkCommandBuffer'),
848 Command(name='vkCreateDebugUtilsMessengerEXT', dispatch='VkInstance'),
849 Command(name='vkDestroyDebugUtilsMessengerEXT', dispatch='VkInstance'),
850 Command(name='vkSubmitDebugUtilsMessageEXT', dispatch='VkInstance'),
853 VK_EXT_sampler_filter_minmax = Extension(name='VK_EXT_sampler_filter_minmax', version=2, guard=None, commands=[
856 VK_AMD_gpu_shader_int16 = Extension(name='VK_AMD_gpu_shader_int16', version=2, guard=None, commands=[
859 VK_AMD_mixed_attachment_samples = Extension(name='VK_AMD_mixed_attachment_samples', version=1, guard=None, commands=[
862 VK_AMD_shader_fragment_mask = Extension(name='VK_AMD_shader_fragment_mask', version=1, guard=None, commands=[
865 VK_EXT_inline_uniform_block = Extension(name='VK_EXT_inline_uniform_block', version=1, guard=None, commands=[
868 VK_EXT_shader_stencil_export = Extension(name='VK_EXT_shader_stencil_export', version=1, guard=None, commands=[
871 VK_EXT_sample_locations = Extension(name='VK_EXT_sample_locations', version=1, guard=None, commands=[
872 Command(name='vkCmdSetSampleLocationsEXT', dispatch='VkCommandBuffer'),
873 Command(name='vkGetPhysicalDeviceMultisamplePropertiesEXT', dispatch='VkPhysicalDevice'),
876 VK_EXT_blend_operation_advanced = Extension(name='VK_EXT_blend_operation_advanced', version=2, guard=None, commands=[
879 VK_NV_fragment_coverage_to_color = Extension(name='VK_NV_fragment_coverage_to_color', version=1, guard=None, commands=[
882 VK_NV_framebuffer_mixed_samples = Extension(name='VK_NV_framebuffer_mixed_samples', version=1, guard=None, commands=[
885 VK_NV_fill_rectangle = Extension(name='VK_NV_fill_rectangle', version=1, guard=None, commands=[
888 VK_NV_shader_sm_builtins = Extension(name='VK_NV_shader_sm_builtins', version=1, guard=None, commands=[
891 VK_EXT_post_depth_coverage = Extension(name='VK_EXT_post_depth_coverage', version=1, guard=None, commands=[
894 VK_EXT_image_drm_format_modifier = Extension(name='VK_EXT_image_drm_format_modifier', version=2, guard=None, commands=[
895 Command(name='vkGetImageDrmFormatModifierPropertiesEXT', dispatch='VkDevice'),
898 VK_EXT_validation_cache = Extension(name='VK_EXT_validation_cache', version=1, guard=None, commands=[
899 Command(name='vkCreateValidationCacheEXT', dispatch='VkDevice'),
900 Command(name='vkDestroyValidationCacheEXT', dispatch='VkDevice'),
901 Command(name='vkMergeValidationCachesEXT', dispatch='VkDevice'),
902 Command(name='vkGetValidationCacheDataEXT', dispatch='VkDevice'),
905 VK_EXT_descriptor_indexing = Extension(name='VK_EXT_descriptor_indexing', version=2, guard=None, commands=[
908 VK_EXT_shader_viewport_index_layer = Extension(name='VK_EXT_shader_viewport_index_layer', version=1, guard=None, commands=[
911 VK_NV_shading_rate_image = Extension(name='VK_NV_shading_rate_image', version=3, guard=None, commands=[
912 Command(name='vkCmdBindShadingRateImageNV', dispatch='VkCommandBuffer'),
913 Command(name='vkCmdSetViewportShadingRatePaletteNV', dispatch='VkCommandBuffer'),
914 Command(name='vkCmdSetCoarseSampleOrderNV', dispatch='VkCommandBuffer'),
917 VK_NV_ray_tracing = Extension(name='VK_NV_ray_tracing', version=3, guard=None, commands=[
918 Command(name='vkCreateAccelerationStructureNV', dispatch='VkDevice'),
919 Command(name='vkDestroyAccelerationStructureNV', dispatch='VkDevice'),
920 Command(name='vkGetAccelerationStructureMemoryRequirementsNV', dispatch='VkDevice'),
921 Command(name='vkBindAccelerationStructureMemoryNV', dispatch='VkDevice'),
922 Command(name='vkCmdBuildAccelerationStructureNV', dispatch='VkCommandBuffer'),
923 Command(name='vkCmdCopyAccelerationStructureNV', dispatch='VkCommandBuffer'),
924 Command(name='vkCmdTraceRaysNV', dispatch='VkCommandBuffer'),
925 Command(name='vkCreateRayTracingPipelinesNV', dispatch='VkDevice'),
926 Command(name='vkGetRayTracingShaderGroupHandlesKHR', dispatch='VkDevice'),
927 Command(name='vkGetRayTracingShaderGroupHandlesNV', dispatch='VkDevice'),
928 Command(name='vkGetAccelerationStructureHandleNV', dispatch='VkDevice'),
929 Command(name='vkCmdWriteAccelerationStructuresPropertiesNV', dispatch='VkCommandBuffer'),
930 Command(name='vkCompileDeferredNV', dispatch='VkDevice'),
933 VK_NV_representative_fragment_test = Extension(name='VK_NV_representative_fragment_test', version=2, guard=None, commands=[
936 VK_EXT_filter_cubic = Extension(name='VK_EXT_filter_cubic', version=3, guard=None, commands=[
939 VK_QCOM_render_pass_shader_resolve = Extension(name='VK_QCOM_render_pass_shader_resolve', version=4, guard=None, commands=[
942 VK_EXT_global_priority = Extension(name='VK_EXT_global_priority', version=2, guard=None, commands=[
945 VK_EXT_external_memory_host = Extension(name='VK_EXT_external_memory_host', version=1, guard=None, commands=[
946 Command(name='vkGetMemoryHostPointerPropertiesEXT', dispatch='VkDevice'),
949 VK_AMD_buffer_marker = Extension(name='VK_AMD_buffer_marker', version=1, guard=None, commands=[
950 Command(name='vkCmdWriteBufferMarkerAMD', dispatch='VkCommandBuffer'),
953 VK_AMD_pipeline_compiler_control = Extension(name='VK_AMD_pipeline_compiler_control', version=1, guard=None, commands=[
956 VK_EXT_calibrated_timestamps = Extension(name='VK_EXT_calibrated_timestamps', version=2, guard=None, commands=[
957 Command(name='vkGetPhysicalDeviceCalibrateableTimeDomainsEXT', dispatch='VkPhysicalDevice'),
958 Command(name='vkGetCalibratedTimestampsEXT', dispatch='VkDevice'),
961 VK_AMD_shader_core_properties = Extension(name='VK_AMD_shader_core_properties', version=2, guard=None, commands=[
964 VK_AMD_memory_overallocation_behavior = Extension(name='VK_AMD_memory_overallocation_behavior', version=1, guard=None, commands=[
967 VK_EXT_vertex_attribute_divisor = Extension(name='VK_EXT_vertex_attribute_divisor', version=3, guard=None, commands=[
970 VK_EXT_pipeline_creation_feedback = Extension(name='VK_EXT_pipeline_creation_feedback', version=1, guard=None, commands=[
973 VK_NV_shader_subgroup_partitioned = Extension(name='VK_NV_shader_subgroup_partitioned', version=1, guard=None, commands=[
976 VK_NV_compute_shader_derivatives = Extension(name='VK_NV_compute_shader_derivatives', version=1, guard=None, commands=[
979 VK_NV_mesh_shader = Extension(name='VK_NV_mesh_shader', version=1, guard=None, commands=[
980 Command(name='vkCmdDrawMeshTasksNV', dispatch='VkCommandBuffer'),
981 Command(name='vkCmdDrawMeshTasksIndirectNV', dispatch='VkCommandBuffer'),
982 Command(name='vkCmdDrawMeshTasksIndirectCountNV', dispatch='VkCommandBuffer'),
985 VK_NV_fragment_shader_barycentric = Extension(name='VK_NV_fragment_shader_barycentric', version=1, guard=None, commands=[
988 VK_NV_shader_image_footprint = Extension(name='VK_NV_shader_image_footprint', version=2, guard=None, commands=[
991 VK_NV_scissor_exclusive = Extension(name='VK_NV_scissor_exclusive', version=1, guard=None, commands=[
992 Command(name='vkCmdSetExclusiveScissorNV', dispatch='VkCommandBuffer'),
995 VK_NV_device_diagnostic_checkpoints = Extension(name='VK_NV_device_diagnostic_checkpoints', version=2, guard=None, commands=[
996 Command(name='vkCmdSetCheckpointNV', dispatch='VkCommandBuffer'),
997 Command(name='vkGetQueueCheckpointDataNV', dispatch='VkQueue'),
1000 VK_INTEL_shader_integer_functions2 = Extension(name='VK_INTEL_shader_integer_functions2', version=1, guard=None, commands=[
1003 VK_INTEL_performance_query = Extension(name='VK_INTEL_performance_query', version=2, guard=None, commands=[
1004 Command(name='vkInitializePerformanceApiINTEL', dispatch='VkDevice'),
1005 Command(name='vkUninitializePerformanceApiINTEL', dispatch='VkDevice'),
1006 Command(name='vkCmdSetPerformanceMarkerINTEL', dispatch='VkCommandBuffer'),
1007 Command(name='vkCmdSetPerformanceStreamMarkerINTEL', dispatch='VkCommandBuffer'),
1008 Command(name='vkCmdSetPerformanceOverrideINTEL', dispatch='VkCommandBuffer'),
1009 Command(name='vkAcquirePerformanceConfigurationINTEL', dispatch='VkDevice'),
1010 Command(name='vkReleasePerformanceConfigurationINTEL', dispatch='VkDevice'),
1011 Command(name='vkQueueSetPerformanceConfigurationINTEL', dispatch='VkQueue'),
1012 Command(name='vkGetPerformanceParameterINTEL', dispatch='VkDevice'),
1015 VK_EXT_pci_bus_info = Extension(name='VK_EXT_pci_bus_info', version=2, guard=None, commands=[
1018 VK_AMD_display_native_hdr = Extension(name='VK_AMD_display_native_hdr', version=1, guard=None, commands=[
1019 Command(name='vkSetLocalDimmingAMD', dispatch='VkDevice'),
1022 VK_EXT_fragment_density_map = Extension(name='VK_EXT_fragment_density_map', version=2, guard=None, commands=[
1025 VK_EXT_scalar_block_layout = Extension(name='VK_EXT_scalar_block_layout', version=1, guard=None, commands=[
1028 VK_GOOGLE_hlsl_functionality1 = Extension(name='VK_GOOGLE_hlsl_functionality1', version=1, guard=None, commands=[
1031 VK_GOOGLE_decorate_string = Extension(name='VK_GOOGLE_decorate_string', version=1, guard=None, commands=[
1034 VK_EXT_subgroup_size_control = Extension(name='VK_EXT_subgroup_size_control', version=2, guard=None, commands=[
1037 VK_AMD_shader_core_properties2 = Extension(name='VK_AMD_shader_core_properties2', version=1, guard=None, commands=[
1040 VK_AMD_device_coherent_memory = Extension(name='VK_AMD_device_coherent_memory', version=1, guard=None, commands=[
1043 VK_EXT_shader_image_atomic_int64 = Extension(name='VK_EXT_shader_image_atomic_int64', version=1, guard=None, commands=[
1046 VK_EXT_memory_budget = Extension(name='VK_EXT_memory_budget', version=1, guard=None, commands=[
1049 VK_EXT_memory_priority = Extension(name='VK_EXT_memory_priority', version=1, guard=None, commands=[
1052 VK_NV_dedicated_allocation_image_aliasing = Extension(name='VK_NV_dedicated_allocation_image_aliasing', version=1, guard=None, commands=[
1055 VK_EXT_buffer_device_address = Extension(name='VK_EXT_buffer_device_address', version=2, guard=None, commands=[
1056 Command(name='vkGetBufferDeviceAddressEXT', dispatch='VkDevice'),
1059 VK_EXT_tooling_info = Extension(name='VK_EXT_tooling_info', version=1, guard=None, commands=[
1060 Command(name='vkGetPhysicalDeviceToolPropertiesEXT', dispatch='VkPhysicalDevice'),
1063 VK_EXT_separate_stencil_usage = Extension(name='VK_EXT_separate_stencil_usage', version=1, guard=None, commands=[
1066 VK_EXT_validation_features = Extension(name='VK_EXT_validation_features', version=5, guard=None, commands=[
1069 VK_NV_cooperative_matrix = Extension(name='VK_NV_cooperative_matrix', version=1, guard=None, commands=[
1070 Command(name='vkGetPhysicalDeviceCooperativeMatrixPropertiesNV', dispatch='VkPhysicalDevice'),
1073 VK_NV_coverage_reduction_mode = Extension(name='VK_NV_coverage_reduction_mode', version=1, guard=None, commands=[
1074 Command(name='vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV', dispatch='VkPhysicalDevice'),
1077 VK_EXT_fragment_shader_interlock = Extension(name='VK_EXT_fragment_shader_interlock', version=1, guard=None, commands=[
1080 VK_EXT_ycbcr_image_arrays = Extension(name='VK_EXT_ycbcr_image_arrays', version=1, guard=None, commands=[
1083 VK_EXT_provoking_vertex = Extension(name='VK_EXT_provoking_vertex', version=1, guard=None, commands=[
1086 VK_EXT_headless_surface = Extension(name='VK_EXT_headless_surface', version=1, guard=None, commands=[
1087 Command(name='vkCreateHeadlessSurfaceEXT', dispatch='VkInstance'),
1090 VK_EXT_line_rasterization = Extension(name='VK_EXT_line_rasterization', version=1, guard=None, commands=[
1091 Command(name='vkCmdSetLineStippleEXT', dispatch='VkCommandBuffer'),
1094 VK_EXT_shader_atomic_float = Extension(name='VK_EXT_shader_atomic_float', version=1, guard=None, commands=[
1097 VK_EXT_host_query_reset = Extension(name='VK_EXT_host_query_reset', version=1, guard=None, commands=[
1098 Command(name='vkResetQueryPoolEXT', dispatch='VkDevice'),
1101 VK_EXT_index_type_uint8 = Extension(name='VK_EXT_index_type_uint8', version=1, guard=None, commands=[
1104 VK_EXT_extended_dynamic_state = Extension(name='VK_EXT_extended_dynamic_state', version=1, guard=None, commands=[
1105 Command(name='vkCmdSetCullModeEXT', dispatch='VkCommandBuffer'),
1106 Command(name='vkCmdSetFrontFaceEXT', dispatch='VkCommandBuffer'),
1107 Command(name='vkCmdSetPrimitiveTopologyEXT', dispatch='VkCommandBuffer'),
1108 Command(name='vkCmdSetViewportWithCountEXT', dispatch='VkCommandBuffer'),
1109 Command(name='vkCmdSetScissorWithCountEXT', dispatch='VkCommandBuffer'),
1110 Command(name='vkCmdBindVertexBuffers2EXT', dispatch='VkCommandBuffer'),
1111 Command(name='vkCmdSetDepthTestEnableEXT', dispatch='VkCommandBuffer'),
1112 Command(name='vkCmdSetDepthWriteEnableEXT', dispatch='VkCommandBuffer'),
1113 Command(name='vkCmdSetDepthCompareOpEXT', dispatch='VkCommandBuffer'),
1114 Command(name='vkCmdSetDepthBoundsTestEnableEXT', dispatch='VkCommandBuffer'),
1115 Command(name='vkCmdSetStencilTestEnableEXT', dispatch='VkCommandBuffer'),
1116 Command(name='vkCmdSetStencilOpEXT', dispatch='VkCommandBuffer'),
1119 VK_EXT_shader_atomic_float2 = Extension(name='VK_EXT_shader_atomic_float2', version=1, guard=None, commands=[
1122 VK_EXT_shader_demote_to_helper_invocation = Extension(name='VK_EXT_shader_demote_to_helper_invocation', version=1, guard=None, commands=[
1125 VK_NV_device_generated_commands = Extension(name='VK_NV_device_generated_commands', version=3, guard=None, commands=[
1126 Command(name='vkGetGeneratedCommandsMemoryRequirementsNV', dispatch='VkDevice'),
1127 Command(name='vkCmdPreprocessGeneratedCommandsNV', dispatch='VkCommandBuffer'),
1128 Command(name='vkCmdExecuteGeneratedCommandsNV', dispatch='VkCommandBuffer'),
1129 Command(name='vkCmdBindPipelineShaderGroupNV', dispatch='VkCommandBuffer'),
1130 Command(name='vkCreateIndirectCommandsLayoutNV', dispatch='VkDevice'),
1131 Command(name='vkDestroyIndirectCommandsLayoutNV', dispatch='VkDevice'),
1134 VK_NV_inherited_viewport_scissor = Extension(name='VK_NV_inherited_viewport_scissor', version=1, guard=None, commands=[
1137 VK_EXT_texel_buffer_alignment = Extension(name='VK_EXT_texel_buffer_alignment', version=1, guard=None, commands=[
1140 VK_QCOM_render_pass_transform = Extension(name='VK_QCOM_render_pass_transform', version=2, guard=None, commands=[
1143 VK_EXT_device_memory_report = Extension(name='VK_EXT_device_memory_report', version=2, guard=None, commands=[
1146 VK_EXT_acquire_drm_display = Extension(name='VK_EXT_acquire_drm_display', version=1, guard=None, commands=[
1147 Command(name='vkAcquireDrmDisplayEXT', dispatch='VkPhysicalDevice'),
1148 Command(name='vkGetDrmDisplayEXT', dispatch='VkPhysicalDevice'),
1151 VK_EXT_robustness2 = Extension(name='VK_EXT_robustness2', version=1, guard=None, commands=[
1154 VK_EXT_custom_border_color = Extension(name='VK_EXT_custom_border_color', version=12, guard=None, commands=[
1157 VK_GOOGLE_user_type = Extension(name='VK_GOOGLE_user_type', version=1, guard=None, commands=[
1160 VK_EXT_private_data = Extension(name='VK_EXT_private_data', version=1, guard=None, commands=[
1161 Command(name='vkCreatePrivateDataSlotEXT', dispatch='VkDevice'),
1162 Command(name='vkDestroyPrivateDataSlotEXT', dispatch='VkDevice'),
1163 Command(name='vkSetPrivateDataEXT', dispatch='VkDevice'),
1164 Command(name='vkGetPrivateDataEXT', dispatch='VkDevice'),
1167 VK_EXT_pipeline_creation_cache_control = Extension(name='VK_EXT_pipeline_creation_cache_control', version=3, guard=None, commands=[
1170 VK_NV_device_diagnostics_config = Extension(name='VK_NV_device_diagnostics_config', version=1, guard=None, commands=[
1173 VK_QCOM_render_pass_store_ops = Extension(name='VK_QCOM_render_pass_store_ops', version=2, guard=None, commands=[
1176 VK_NV_fragment_shading_rate_enums = Extension(name='VK_NV_fragment_shading_rate_enums', version=1, guard=None, commands=[
1177 Command(name='vkCmdSetFragmentShadingRateEnumNV', dispatch='VkCommandBuffer'),
1180 VK_NV_ray_tracing_motion_blur = Extension(name='VK_NV_ray_tracing_motion_blur', version=1, guard=None, commands=[
1183 VK_EXT_ycbcr_2plane_444_formats = Extension(name='VK_EXT_ycbcr_2plane_444_formats', version=1, guard=None, commands=[
1186 VK_EXT_fragment_density_map2 = Extension(name='VK_EXT_fragment_density_map2', version=1, guard=None, commands=[
1189 VK_QCOM_rotated_copy_commands = Extension(name='VK_QCOM_rotated_copy_commands', version=1, guard=None, commands=[
1192 VK_EXT_image_robustness = Extension(name='VK_EXT_image_robustness', version=1, guard=None, commands=[
1195 VK_EXT_4444_formats = Extension(name='VK_EXT_4444_formats', version=1, guard=None, commands=[
1198 VK_ARM_rasterization_order_attachment_access = Extension(name='VK_ARM_rasterization_order_attachment_access', version=1, guard=None, commands=[
1201 VK_EXT_rgba10x6_formats = Extension(name='VK_EXT_rgba10x6_formats', version=1, guard=None, commands=[
1204 VK_NV_acquire_winrt_display = Extension(name='VK_NV_acquire_winrt_display', version=1, guard=None, commands=[
1205 Command(name='vkAcquireWinrtDisplayNV', dispatch='VkPhysicalDevice'),
1206 Command(name='vkGetWinrtDisplayNV', dispatch='VkPhysicalDevice'),
1209 VK_VALVE_mutable_descriptor_type = Extension(name='VK_VALVE_mutable_descriptor_type', version=1, guard=None, commands=[
1212 VK_EXT_vertex_input_dynamic_state = Extension(name='VK_EXT_vertex_input_dynamic_state', version=2, guard=None, commands=[
1213 Command(name='vkCmdSetVertexInputEXT', dispatch='VkCommandBuffer'),
1216 VK_EXT_physical_device_drm = Extension(name='VK_EXT_physical_device_drm', version=1, guard=None, commands=[
1219 VK_EXT_depth_clip_control = Extension(name='VK_EXT_depth_clip_control', version=1, guard=None, commands=[
1222 VK_EXT_primitive_topology_list_restart = Extension(name='VK_EXT_primitive_topology_list_restart', version=1, guard=None, commands=[
1225 VK_HUAWEI_subpass_shading = Extension(name='VK_HUAWEI_subpass_shading', version=2, guard=None, commands=[
1226 Command(name='vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI', dispatch='VkDevice'),
1227 Command(name='vkCmdSubpassShadingHUAWEI', dispatch='VkCommandBuffer'),
1230 VK_HUAWEI_invocation_mask = Extension(name='VK_HUAWEI_invocation_mask', version=1, guard=None, commands=[
1231 Command(name='vkCmdBindInvocationMaskHUAWEI', dispatch='VkCommandBuffer'),
1234 VK_NV_external_memory_rdma = Extension(name='VK_NV_external_memory_rdma', version=1, guard=None, commands=[
1235 Command(name='vkGetMemoryRemoteAddressNV', dispatch='VkDevice'),
1238 VK_EXT_extended_dynamic_state2 = Extension(name='VK_EXT_extended_dynamic_state2', version=1, guard=None, commands=[
1239 Command(name='vkCmdSetPatchControlPointsEXT', dispatch='VkCommandBuffer'),
1240 Command(name='vkCmdSetRasterizerDiscardEnableEXT', dispatch='VkCommandBuffer'),
1241 Command(name='vkCmdSetDepthBiasEnableEXT', dispatch='VkCommandBuffer'),
1242 Command(name='vkCmdSetLogicOpEXT', dispatch='VkCommandBuffer'),
1243 Command(name='vkCmdSetPrimitiveRestartEnableEXT', dispatch='VkCommandBuffer'),
1246 VK_EXT_color_write_enable = Extension(name='VK_EXT_color_write_enable', version=1, guard=None, commands=[
1247 Command(name='vkCmdSetColorWriteEnableEXT', dispatch='VkCommandBuffer'),
1250 VK_EXT_global_priority_query = Extension(name='VK_EXT_global_priority_query', version=1, guard=None, commands=[
1253 VK_EXT_image_view_min_lod = Extension(name='VK_EXT_image_view_min_lod', version=1, guard=None, commands=[
1256 VK_EXT_multi_draw = Extension(name='VK_EXT_multi_draw', version=1, guard=None, commands=[
1257 Command(name='vkCmdDrawMultiEXT', dispatch='VkCommandBuffer'),
1258 Command(name='vkCmdDrawMultiIndexedEXT', dispatch='VkCommandBuffer'),
1261 VK_EXT_load_store_op_none = Extension(name='VK_EXT_load_store_op_none', version=1, guard=None, commands=[
1264 VK_EXT_border_color_swizzle = Extension(name='VK_EXT_border_color_swizzle', version=1, guard=None, commands=[
1267 VK_EXT_pageable_device_local_memory = Extension(name='VK_EXT_pageable_device_local_memory', version=1, guard=None, commands=[
1268 Command(name='vkSetDeviceMemoryPriorityEXT', dispatch='VkDevice'),
1271 VK_QCOM_fragment_density_map_offset = Extension(name='VK_QCOM_fragment_density_map_offset', version=1, guard=None, commands=[
1274 VK_NV_linear_color_attachment = Extension(name='VK_NV_linear_color_attachment', version=1, guard=None, commands=[
1277 VK_GOOGLE_surfaceless_query = Extension(name='VK_GOOGLE_surfaceless_query', version=1, guard=None, commands=[
1280 VK_KHR_acceleration_structure = Extension(name='VK_KHR_acceleration_structure', version=13, guard=None, commands=[
1281 Command(name='vkCreateAccelerationStructureKHR', dispatch='VkDevice'),
1282 Command(name='vkDestroyAccelerationStructureKHR', dispatch='VkDevice'),
1283 Command(name='vkCmdBuildAccelerationStructuresKHR', dispatch='VkCommandBuffer'),
1284 Command(name='vkCmdBuildAccelerationStructuresIndirectKHR', dispatch='VkCommandBuffer'),
1285 Command(name='vkBuildAccelerationStructuresKHR', dispatch='VkDevice'),
1286 Command(name='vkCopyAccelerationStructureKHR', dispatch='VkDevice'),
1287 Command(name='vkCopyAccelerationStructureToMemoryKHR', dispatch='VkDevice'),
1288 Command(name='vkCopyMemoryToAccelerationStructureKHR', dispatch='VkDevice'),
1289 Command(name='vkWriteAccelerationStructuresPropertiesKHR', dispatch='VkDevice'),
1290 Command(name='vkCmdCopyAccelerationStructureKHR', dispatch='VkCommandBuffer'),
1291 Command(name='vkCmdCopyAccelerationStructureToMemoryKHR', dispatch='VkCommandBuffer'),
1292 Command(name='vkCmdCopyMemoryToAccelerationStructureKHR', dispatch='VkCommandBuffer'),
1293 Command(name='vkGetAccelerationStructureDeviceAddressKHR', dispatch='VkDevice'),
1294 Command(name='vkCmdWriteAccelerationStructuresPropertiesKHR', dispatch='VkCommandBuffer'),
1295 Command(name='vkGetDeviceAccelerationStructureCompatibilityKHR', dispatch='VkDevice'),
1296 Command(name='vkGetAccelerationStructureBuildSizesKHR', dispatch='VkDevice'),
1299 VK_KHR_ray_tracing_pipeline = Extension(name='VK_KHR_ray_tracing_pipeline', version=1, guard=None, commands=[
1300 Command(name='vkCmdTraceRaysKHR', dispatch='VkCommandBuffer'),
1301 Command(name='vkCreateRayTracingPipelinesKHR', dispatch='VkDevice'),
1302 Command(name='vkGetRayTracingCaptureReplayShaderGroupHandlesKHR', dispatch='VkDevice'),
1303 Command(name='vkCmdTraceRaysIndirectKHR', dispatch='VkCommandBuffer'),
1304 Command(name='vkGetRayTracingShaderGroupStackSizeKHR', dispatch='VkDevice'),
1305 Command(name='vkCmdSetRayTracingPipelineStackSizeKHR', dispatch='VkCommandBuffer'),
1308 VK_KHR_ray_query = Extension(name='VK_KHR_ray_query', version=1, guard=None, commands=[
1311 VK_KHR_android_surface = Extension(name='VK_KHR_android_surface', version=6, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[
1312 Command(name='vkCreateAndroidSurfaceKHR', dispatch='VkInstance'),
1315 VK_ANDROID_external_memory_android_hardware_buffer = Extension(name='VK_ANDROID_external_memory_android_hardware_buffer', version=4, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[
1316 Command(name='vkGetAndroidHardwareBufferPropertiesANDROID', dispatch='VkDevice'),
1317 Command(name='vkGetMemoryAndroidHardwareBufferANDROID', dispatch='VkDevice'),
1320 VK_FUCHSIA_imagepipe_surface = Extension(name='VK_FUCHSIA_imagepipe_surface', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[
1321 Command(name='vkCreateImagePipeSurfaceFUCHSIA', dispatch='VkInstance'),
1324 VK_FUCHSIA_external_memory = Extension(name='VK_FUCHSIA_external_memory', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[
1325 Command(name='vkGetMemoryZirconHandleFUCHSIA', dispatch='VkDevice'),
1326 Command(name='vkGetMemoryZirconHandlePropertiesFUCHSIA', dispatch='VkDevice'),
1329 VK_FUCHSIA_external_semaphore = Extension(name='VK_FUCHSIA_external_semaphore', version=1, guard='VK_USE_PLATFORM_FUCHSIA', commands=[
1330 Command(name='vkImportSemaphoreZirconHandleFUCHSIA', dispatch='VkDevice'),
1331 Command(name='vkGetSemaphoreZirconHandleFUCHSIA', dispatch='VkDevice'),
1334 VK_FUCHSIA_buffer_collection = Extension(name='VK_FUCHSIA_buffer_collection', version=2, guard='VK_USE_PLATFORM_FUCHSIA', commands=[
1335 Command(name='vkCreateBufferCollectionFUCHSIA', dispatch='VkDevice'),
1336 Command(name='vkSetBufferCollectionImageConstraintsFUCHSIA', dispatch='VkDevice'),
1337 Command(name='vkSetBufferCollectionBufferConstraintsFUCHSIA', dispatch='VkDevice'),
1338 Command(name='vkDestroyBufferCollectionFUCHSIA', dispatch='VkDevice'),
1339 Command(name='vkGetBufferCollectionPropertiesFUCHSIA', dispatch='VkDevice'),
1342 VK_MVK_ios_surface = Extension(name='VK_MVK_ios_surface', version=3, guard='VK_USE_PLATFORM_IOS_MVK', commands=[
1343 Command(name='vkCreateIOSSurfaceMVK', dispatch='VkInstance'),
1346 VK_MVK_macos_surface = Extension(name='VK_MVK_macos_surface', version=3, guard='VK_USE_PLATFORM_MACOS_MVK', commands=[
1347 Command(name='vkCreateMacOSSurfaceMVK', dispatch='VkInstance'),
1350 VK_EXT_metal_surface = Extension(name='VK_EXT_metal_surface', version=1, guard='VK_USE_PLATFORM_METAL_EXT', commands=[
1351 Command(name='vkCreateMetalSurfaceEXT', dispatch='VkInstance'),
1354 VK_NN_vi_surface = Extension(name='VK_NN_vi_surface', version=1, guard='VK_USE_PLATFORM_VI_NN', commands=[
1355 Command(name='vkCreateViSurfaceNN', dispatch='VkInstance'),
1358 VK_KHR_wayland_surface = Extension(name='VK_KHR_wayland_surface', version=6, guard='VK_USE_PLATFORM_WAYLAND_KHR', commands=[
1359 Command(name='vkCreateWaylandSurfaceKHR', dispatch='VkInstance'),
1360 Command(name='vkGetPhysicalDeviceWaylandPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1363 VK_KHR_win32_surface = Extension(name='VK_KHR_win32_surface', version=6, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1364 Command(name='vkCreateWin32SurfaceKHR', dispatch='VkInstance'),
1365 Command(name='vkGetPhysicalDeviceWin32PresentationSupportKHR', dispatch='VkPhysicalDevice'),
1368 VK_KHR_external_memory_win32 = Extension(name='VK_KHR_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1369 Command(name='vkGetMemoryWin32HandleKHR', dispatch='VkDevice'),
1370 Command(name='vkGetMemoryWin32HandlePropertiesKHR', dispatch='VkDevice'),
1373 VK_KHR_win32_keyed_mutex = Extension(name='VK_KHR_win32_keyed_mutex', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1376 VK_KHR_external_semaphore_win32 = Extension(name='VK_KHR_external_semaphore_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1377 Command(name='vkImportSemaphoreWin32HandleKHR', dispatch='VkDevice'),
1378 Command(name='vkGetSemaphoreWin32HandleKHR', dispatch='VkDevice'),
1381 VK_KHR_external_fence_win32 = Extension(name='VK_KHR_external_fence_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1382 Command(name='vkImportFenceWin32HandleKHR', dispatch='VkDevice'),
1383 Command(name='vkGetFenceWin32HandleKHR', dispatch='VkDevice'),
1386 VK_NV_external_memory_win32 = Extension(name='VK_NV_external_memory_win32', version=1, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1387 Command(name='vkGetMemoryWin32HandleNV', dispatch='VkDevice'),
1390 VK_NV_win32_keyed_mutex = Extension(name='VK_NV_win32_keyed_mutex', version=2, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1393 VK_EXT_full_screen_exclusive = Extension(name='VK_EXT_full_screen_exclusive', version=4, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
1394 Command(name='vkGetPhysicalDeviceSurfacePresentModes2EXT', dispatch='VkPhysicalDevice'),
1395 Command(name='vkAcquireFullScreenExclusiveModeEXT', dispatch='VkDevice'),
1396 Command(name='vkReleaseFullScreenExclusiveModeEXT', dispatch='VkDevice'),
1397 Command(name='vkGetDeviceGroupSurfacePresentModes2EXT', dispatch='VkDevice'),
1400 VK_KHR_xcb_surface = Extension(name='VK_KHR_xcb_surface', version=6, guard='VK_USE_PLATFORM_XCB_KHR', commands=[
1401 Command(name='vkCreateXcbSurfaceKHR', dispatch='VkInstance'),
1402 Command(name='vkGetPhysicalDeviceXcbPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1405 VK_KHR_xlib_surface = Extension(name='VK_KHR_xlib_surface', version=6, guard='VK_USE_PLATFORM_XLIB_KHR', commands=[
1406 Command(name='vkCreateXlibSurfaceKHR', dispatch='VkInstance'),
1407 Command(name='vkGetPhysicalDeviceXlibPresentationSupportKHR', dispatch='VkPhysicalDevice'),
1410 VK_EXT_directfb_surface = Extension(name='VK_EXT_directfb_surface', version=1, guard='VK_USE_PLATFORM_DIRECTFB_EXT', commands=[
1411 Command(name='vkCreateDirectFBSurfaceEXT', dispatch='VkInstance'),
1412 Command(name='vkGetPhysicalDeviceDirectFBPresentationSupportEXT', dispatch='VkPhysicalDevice'),
1415 VK_EXT_acquire_xlib_display = Extension(name='VK_EXT_acquire_xlib_display', version=1, guard='VK_USE_PLATFORM_XLIB_XRANDR_EXT', commands=[
1416 Command(name='vkAcquireXlibDisplayEXT', dispatch='VkPhysicalDevice'),
1417 Command(name='vkGetRandROutputDisplayEXT', dispatch='VkPhysicalDevice'),
1420 VK_GGP_stream_descriptor_surface = Extension(name='VK_GGP_stream_descriptor_surface', version=1, guard='VK_USE_PLATFORM_GGP', commands=[
1421 Command(name='vkCreateStreamDescriptorSurfaceGGP', dispatch='VkInstance'),
1424 VK_GGP_frame_token = Extension(name='VK_GGP_frame_token', version=1, guard='VK_USE_PLATFORM_GGP', commands=[
1427 VK_QNX_screen_surface = Extension(name='VK_QNX_screen_surface', version=1, guard='VK_USE_PLATFORM_SCREEN_QNX', commands=[
1428 Command(name='vkCreateScreenSurfaceQNX', dispatch='VkInstance'),
1429 Command(name='vkGetPhysicalDeviceScreenPresentationSupportQNX', dispatch='VkPhysicalDevice'),
1432 VK_KHR_video_queue = Extension(name='VK_KHR_video_queue', version=2, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1433 Command(name='vkGetPhysicalDeviceVideoCapabilitiesKHR', dispatch='VkPhysicalDevice'),
1434 Command(name='vkGetPhysicalDeviceVideoFormatPropertiesKHR', dispatch='VkPhysicalDevice'),
1435 Command(name='vkCreateVideoSessionKHR', dispatch='VkDevice'),
1436 Command(name='vkDestroyVideoSessionKHR', dispatch='VkDevice'),
1437 Command(name='vkGetVideoSessionMemoryRequirementsKHR', dispatch='VkDevice'),
1438 Command(name='vkBindVideoSessionMemoryKHR', dispatch='VkDevice'),
1439 Command(name='vkCreateVideoSessionParametersKHR', dispatch='VkDevice'),
1440 Command(name='vkUpdateVideoSessionParametersKHR', dispatch='VkDevice'),
1441 Command(name='vkDestroyVideoSessionParametersKHR', dispatch='VkDevice'),
1442 Command(name='vkCmdBeginVideoCodingKHR', dispatch='VkCommandBuffer'),
1443 Command(name='vkCmdEndVideoCodingKHR', dispatch='VkCommandBuffer'),
1444 Command(name='vkCmdControlVideoCodingKHR', dispatch='VkCommandBuffer'),
1447 VK_KHR_video_decode_queue = Extension(name='VK_KHR_video_decode_queue', version=2, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1448 Command(name='vkCmdDecodeVideoKHR', dispatch='VkCommandBuffer'),
1451 VK_KHR_portability_subset = Extension(name='VK_KHR_portability_subset', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1454 VK_KHR_video_encode_queue = Extension(name='VK_KHR_video_encode_queue', version=4, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1455 Command(name='vkCmdEncodeVideoKHR', dispatch='VkCommandBuffer'),
1458 VK_EXT_video_encode_h264 = Extension(name='VK_EXT_video_encode_h264', version=5, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1461 VK_EXT_video_encode_h265 = Extension(name='VK_EXT_video_encode_h265', version=5, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1464 VK_EXT_video_decode_h264 = Extension(name='VK_EXT_video_decode_h264', version=3, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1467 VK_EXT_video_decode_h265 = Extension(name='VK_EXT_video_decode_h265', version=1, guard='VK_ENABLE_BETA_EXTENSIONS', commands=[
1478 VK_KHR_display_swapchain,
1479 VK_KHR_sampler_mirror_clamp_to_edge,
1480 VK_KHR_dynamic_rendering,
1482 VK_KHR_get_physical_device_properties2,
1483 VK_KHR_device_group,
1484 VK_KHR_shader_draw_parameters,
1485 VK_KHR_maintenance1,
1486 VK_KHR_device_group_creation,
1487 VK_KHR_external_memory_capabilities,
1488 VK_KHR_external_memory,
1489 VK_KHR_external_memory_fd,
1490 VK_KHR_external_semaphore_capabilities,
1491 VK_KHR_external_semaphore,
1492 VK_KHR_external_semaphore_fd,
1493 VK_KHR_push_descriptor,
1494 VK_KHR_shader_float16_int8,
1495 VK_KHR_16bit_storage,
1496 VK_KHR_incremental_present,
1497 VK_KHR_descriptor_update_template,
1498 VK_KHR_imageless_framebuffer,
1499 VK_KHR_create_renderpass2,
1500 VK_KHR_shared_presentable_image,
1501 VK_KHR_external_fence_capabilities,
1502 VK_KHR_external_fence,
1503 VK_KHR_external_fence_fd,
1504 VK_KHR_performance_query,
1505 VK_KHR_maintenance2,
1506 VK_KHR_get_surface_capabilities2,
1507 VK_KHR_variable_pointers,
1508 VK_KHR_get_display_properties2,
1509 VK_KHR_dedicated_allocation,
1510 VK_KHR_storage_buffer_storage_class,
1511 VK_KHR_relaxed_block_layout,
1512 VK_KHR_get_memory_requirements2,
1513 VK_KHR_image_format_list,
1514 VK_KHR_sampler_ycbcr_conversion,
1515 VK_KHR_bind_memory2,
1516 VK_KHR_maintenance3,
1517 VK_KHR_draw_indirect_count,
1518 VK_KHR_shader_subgroup_extended_types,
1519 VK_KHR_8bit_storage,
1520 VK_KHR_shader_atomic_int64,
1521 VK_KHR_shader_clock,
1522 VK_KHR_global_priority,
1523 VK_KHR_driver_properties,
1524 VK_KHR_shader_float_controls,
1525 VK_KHR_depth_stencil_resolve,
1526 VK_KHR_swapchain_mutable_format,
1527 VK_KHR_timeline_semaphore,
1528 VK_KHR_vulkan_memory_model,
1529 VK_KHR_shader_terminate_invocation,
1530 VK_KHR_fragment_shading_rate,
1532 VK_KHR_surface_protected_capabilities,
1533 VK_KHR_separate_depth_stencil_layouts,
1534 VK_KHR_present_wait,
1535 VK_KHR_uniform_buffer_standard_layout,
1536 VK_KHR_buffer_device_address,
1537 VK_KHR_deferred_host_operations,
1538 VK_KHR_pipeline_executable_properties,
1539 VK_KHR_shader_integer_dot_product,
1540 VK_KHR_pipeline_library,
1541 VK_KHR_shader_non_semantic_info,
1543 VK_KHR_synchronization2,
1544 VK_KHR_shader_subgroup_uniform_control_flow,
1545 VK_KHR_zero_initialize_workgroup_memory,
1546 VK_KHR_workgroup_memory_explicit_layout,
1547 VK_KHR_copy_commands2,
1548 VK_KHR_format_feature_flags2,
1549 VK_KHR_maintenance4,
1550 VK_EXT_debug_report,
1552 VK_EXT_depth_range_unrestricted,
1553 VK_IMG_filter_cubic,
1554 VK_AMD_rasterization_order,
1555 VK_AMD_shader_trinary_minmax,
1556 VK_AMD_shader_explicit_vertex_parameter,
1557 VK_EXT_debug_marker,
1559 VK_NV_dedicated_allocation,
1560 VK_EXT_transform_feedback,
1561 VK_NVX_binary_import,
1562 VK_NVX_image_view_handle,
1563 VK_AMD_draw_indirect_count,
1564 VK_AMD_negative_viewport_height,
1565 VK_AMD_gpu_shader_half_float,
1566 VK_AMD_shader_ballot,
1567 VK_AMD_texture_gather_bias_lod,
1569 VK_AMD_shader_image_load_store_lod,
1570 VK_NV_corner_sampled_image,
1571 VK_IMG_format_pvrtc,
1572 VK_NV_external_memory_capabilities,
1573 VK_NV_external_memory,
1574 VK_EXT_validation_flags,
1575 VK_EXT_shader_subgroup_ballot,
1576 VK_EXT_shader_subgroup_vote,
1577 VK_EXT_texture_compression_astc_hdr,
1578 VK_EXT_astc_decode_mode,
1579 VK_EXT_conditional_rendering,
1580 VK_NV_clip_space_w_scaling,
1581 VK_EXT_direct_mode_display,
1582 VK_EXT_display_surface_counter,
1583 VK_EXT_display_control,
1584 VK_GOOGLE_display_timing,
1585 VK_NV_sample_mask_override_coverage,
1586 VK_NV_geometry_shader_passthrough,
1587 VK_NV_viewport_array2,
1588 VK_NVX_multiview_per_view_attributes,
1589 VK_NV_viewport_swizzle,
1590 VK_EXT_discard_rectangles,
1591 VK_EXT_conservative_rasterization,
1592 VK_EXT_depth_clip_enable,
1593 VK_EXT_swapchain_colorspace,
1594 VK_EXT_hdr_metadata,
1595 VK_EXT_external_memory_dma_buf,
1596 VK_EXT_queue_family_foreign,
1598 VK_EXT_sampler_filter_minmax,
1599 VK_AMD_gpu_shader_int16,
1600 VK_AMD_mixed_attachment_samples,
1601 VK_AMD_shader_fragment_mask,
1602 VK_EXT_inline_uniform_block,
1603 VK_EXT_shader_stencil_export,
1604 VK_EXT_sample_locations,
1605 VK_EXT_blend_operation_advanced,
1606 VK_NV_fragment_coverage_to_color,
1607 VK_NV_framebuffer_mixed_samples,
1608 VK_NV_fill_rectangle,
1609 VK_NV_shader_sm_builtins,
1610 VK_EXT_post_depth_coverage,
1611 VK_EXT_image_drm_format_modifier,
1612 VK_EXT_validation_cache,
1613 VK_EXT_descriptor_indexing,
1614 VK_EXT_shader_viewport_index_layer,
1615 VK_NV_shading_rate_image,
1617 VK_NV_representative_fragment_test,
1618 VK_EXT_filter_cubic,
1619 VK_QCOM_render_pass_shader_resolve,
1620 VK_EXT_global_priority,
1621 VK_EXT_external_memory_host,
1622 VK_AMD_buffer_marker,
1623 VK_AMD_pipeline_compiler_control,
1624 VK_EXT_calibrated_timestamps,
1625 VK_AMD_shader_core_properties,
1626 VK_AMD_memory_overallocation_behavior,
1627 VK_EXT_vertex_attribute_divisor,
1628 VK_EXT_pipeline_creation_feedback,
1629 VK_NV_shader_subgroup_partitioned,
1630 VK_NV_compute_shader_derivatives,
1632 VK_NV_fragment_shader_barycentric,
1633 VK_NV_shader_image_footprint,
1634 VK_NV_scissor_exclusive,
1635 VK_NV_device_diagnostic_checkpoints,
1636 VK_INTEL_shader_integer_functions2,
1637 VK_INTEL_performance_query,
1638 VK_EXT_pci_bus_info,
1639 VK_AMD_display_native_hdr,
1640 VK_EXT_fragment_density_map,
1641 VK_EXT_scalar_block_layout,
1642 VK_GOOGLE_hlsl_functionality1,
1643 VK_GOOGLE_decorate_string,
1644 VK_EXT_subgroup_size_control,
1645 VK_AMD_shader_core_properties2,
1646 VK_AMD_device_coherent_memory,
1647 VK_EXT_shader_image_atomic_int64,
1648 VK_EXT_memory_budget,
1649 VK_EXT_memory_priority,
1650 VK_NV_dedicated_allocation_image_aliasing,
1651 VK_EXT_buffer_device_address,
1652 VK_EXT_tooling_info,
1653 VK_EXT_separate_stencil_usage,
1654 VK_EXT_validation_features,
1655 VK_NV_cooperative_matrix,
1656 VK_NV_coverage_reduction_mode,
1657 VK_EXT_fragment_shader_interlock,
1658 VK_EXT_ycbcr_image_arrays,
1659 VK_EXT_provoking_vertex,
1660 VK_EXT_headless_surface,
1661 VK_EXT_line_rasterization,
1662 VK_EXT_shader_atomic_float,
1663 VK_EXT_host_query_reset,
1664 VK_EXT_index_type_uint8,
1665 VK_EXT_extended_dynamic_state,
1666 VK_EXT_shader_atomic_float2,
1667 VK_EXT_shader_demote_to_helper_invocation,
1668 VK_NV_device_generated_commands,
1669 VK_NV_inherited_viewport_scissor,
1670 VK_EXT_texel_buffer_alignment,
1671 VK_QCOM_render_pass_transform,
1672 VK_EXT_device_memory_report,
1673 VK_EXT_acquire_drm_display,
1675 VK_EXT_custom_border_color,
1676 VK_GOOGLE_user_type,
1677 VK_EXT_private_data,
1678 VK_EXT_pipeline_creation_cache_control,
1679 VK_NV_device_diagnostics_config,
1680 VK_QCOM_render_pass_store_ops,
1681 VK_NV_fragment_shading_rate_enums,
1682 VK_NV_ray_tracing_motion_blur,
1683 VK_EXT_ycbcr_2plane_444_formats,
1684 VK_EXT_fragment_density_map2,
1685 VK_QCOM_rotated_copy_commands,
1686 VK_EXT_image_robustness,
1687 VK_EXT_4444_formats,
1688 VK_ARM_rasterization_order_attachment_access,
1689 VK_EXT_rgba10x6_formats,
1690 VK_NV_acquire_winrt_display,
1691 VK_VALVE_mutable_descriptor_type,
1692 VK_EXT_vertex_input_dynamic_state,
1693 VK_EXT_physical_device_drm,
1694 VK_EXT_depth_clip_control,
1695 VK_EXT_primitive_topology_list_restart,
1696 VK_HUAWEI_subpass_shading,
1697 VK_HUAWEI_invocation_mask,
1698 VK_NV_external_memory_rdma,
1699 VK_EXT_extended_dynamic_state2,
1700 VK_EXT_color_write_enable,
1701 VK_EXT_global_priority_query,
1702 VK_EXT_image_view_min_lod,
1704 VK_EXT_load_store_op_none,
1705 VK_EXT_border_color_swizzle,
1706 VK_EXT_pageable_device_local_memory,
1707 VK_QCOM_fragment_density_map_offset,
1708 VK_NV_linear_color_attachment,
1709 VK_GOOGLE_surfaceless_query,
1710 VK_KHR_acceleration_structure,
1711 VK_KHR_ray_tracing_pipeline,
1713 VK_KHR_android_surface,
1714 VK_ANDROID_external_memory_android_hardware_buffer,
1715 VK_FUCHSIA_imagepipe_surface,
1716 VK_FUCHSIA_external_memory,
1717 VK_FUCHSIA_external_semaphore,
1718 VK_FUCHSIA_buffer_collection,
1720 VK_MVK_macos_surface,
1721 VK_EXT_metal_surface,
1723 VK_KHR_wayland_surface,
1724 VK_KHR_win32_surface,
1725 VK_KHR_external_memory_win32,
1726 VK_KHR_win32_keyed_mutex,
1727 VK_KHR_external_semaphore_win32,
1728 VK_KHR_external_fence_win32,
1729 VK_NV_external_memory_win32,
1730 VK_NV_win32_keyed_mutex,
1731 VK_EXT_full_screen_exclusive,
1733 VK_KHR_xlib_surface,
1734 VK_EXT_directfb_surface,
1735 VK_EXT_acquire_xlib_display,
1736 VK_GGP_stream_descriptor_surface,
1738 VK_QNX_screen_surface,
1740 VK_KHR_video_decode_queue,
1741 VK_KHR_portability_subset,
1742 VK_KHR_video_encode_queue,
1743 VK_EXT_video_encode_h264,
1744 VK_EXT_video_encode_h265,
1745 VK_EXT_video_decode_h264,
1746 VK_EXT_video_decode_h265,
1748 # end of generated code
1750 def generate_wrapper_header(guard):
1752 copyright.append("/* ")
1753 copyright.append(" * Copyright 2018 The Android Open Source Project ")
1754 copyright.append(" * ")
1755 copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ")
1756 copyright.append(" * you may not use this file except in compliance with the License. ")
1757 copyright.append(" * You may obtain a copy of the License at ")
1758 copyright.append(" * ")
1759 copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ")
1760 copyright.append(" * ")
1761 copyright.append(" * Unless required by applicable law or agreed to in writing, software ")
1762 copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ")
1763 copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.")
1764 copyright.append(" * See the License for the specific language governing permissions and ")
1765 copyright.append(" * limitations under the License. ")
1766 copyright.append(" */ ")
1767 lines = [line.rstrip() for line in copyright]
1769 lines.append("// This file is generated.")
1770 lines.append("#ifndef %s" % guard)
1771 lines.append("#define %s" % guard)
1773 lines.append("#ifdef __cplusplus")
1774 lines.append("extern \"C\" {")
1775 lines.append("#endif")
1777 lines.append("#define VK_NO_PROTOTYPES 1")
1778 lines.append("#include <vulkan/vulkan.h>")
1780 lines.append("/* Initialize the Vulkan function pointer variables declared in this header.")
1781 lines.append(" * Returns 0 if vulkan is not available, non-zero if it is available.")
1783 lines.append("int InitVulkan(void);")
1786 for ext in extensions:
1787 # Only wrap core and WSI functions
1788 wrapped_exts = {'VK_core', 'VK_KHR'}
1789 if not any(ext.name.startswith(s) for s in wrapped_exts):
1794 lines.append("#ifdef %s" % ext.guard)
1796 lines.append("// %s" % ext.name)
1797 for cmd in ext.commands:
1798 lines.append("extern PFN_%s %s;" % (cmd.name, cmd.name))
1801 lines.append("#endif")
1806 lines.append("#ifdef __cplusplus")
1808 lines.append("#endif")
1810 lines.append("#endif // %s" % guard)
1812 return "\n".join(lines)
1814 def generate_wrapper_source(header):
1816 copyright.append("/* ")
1817 copyright.append(" * Copyright 2018 The Android Open Source Project ")
1818 copyright.append(" * ")
1819 copyright.append(" * Licensed under the Apache License, Version 2.0 (the \"License\"); ")
1820 copyright.append(" * you may not use this file except in compliance with the License. ")
1821 copyright.append(" * You may obtain a copy of the License at ")
1822 copyright.append(" * ")
1823 copyright.append(" * http://www.apache.org/licenses/LICENSE-2.0 ")
1824 copyright.append(" * ")
1825 copyright.append(" * Unless required by applicable law or agreed to in writing, software ")
1826 copyright.append(" * distributed under the License is distributed on an \"AS IS\" BASIS, ")
1827 copyright.append(" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.")
1828 copyright.append(" * See the License for the specific language governing permissions and ")
1829 copyright.append(" * limitations under the License. ")
1830 copyright.append(" */ ")
1831 lines = [line.rstrip() for line in copyright]
1833 lines.append("// This file is generated.")
1834 lines.append("#ifdef __cplusplus")
1835 lines.append("extern \"C\" {")
1836 lines.append("#endif")
1838 lines.append("#include \"%s\"" % header)
1839 lines.append("#include <dlfcn.h>")
1842 lines.append("int InitVulkan(void) {")
1843 lines.append(" void* libvulkan = dlopen(\"libvulkan.so\", RTLD_NOW | RTLD_LOCAL);")
1844 lines.append(" if (!libvulkan)")
1845 lines.append(" return 0;")
1847 lines.append(" // Vulkan supported, set function addresses")
1848 for ext in extensions:
1849 # Only wrap core and WSI functions
1850 wrapped_exts = {'VK_core', 'VK_KHR'}
1851 if not any(ext.name.startswith(s) for s in wrapped_exts):
1857 lines.append("#ifdef %s" % ext.guard)
1859 for cmd in ext.commands:
1860 lines.append(" %s = reinterpret_cast<PFN_%s>(dlsym(libvulkan, \"%s\"));" % (cmd.name, cmd.name, cmd.name))
1863 lines.append("#endif")
1865 lines.append(" return 1;")
1869 lines.append("// No Vulkan support, do not set function addresses")
1870 for ext in extensions:
1874 lines.append("#ifdef %s" % ext.guard)
1876 for cmd in ext.commands:
1877 lines.append("PFN_%s %s;" % (cmd.name, cmd.name))
1880 lines.append("#endif")
1883 lines.append("#ifdef __cplusplus")
1885 lines.append("#endif")
1887 return "\n".join(lines)
1889 def parse_subheader(filename, ext_guard):
1892 with open(filename, "r") as f:
1897 line = line.strip();
1899 if line.startswith("#define VK_API_VERSION") and "VK_MAKE_API_VERSION" in line:
1900 minor_end = line.rfind(",")
1901 minor_begin = line.rfind(",", 0, minor_end) + 1
1902 spec_version = int(line[minor_begin:minor_end])
1904 current_ext = Extension("VK_core_%s" % spec_version, spec_version)
1905 sub_extensions.append(current_ext)
1906 elif Command.valid_c_typedef(line):
1907 current_ext.add_command(Command.from_c_typedef(line))
1908 elif line.startswith("#define") and "SPEC_VERSION " in line:
1909 version_begin = line.rfind(" ") + 1
1910 version_str = line[version_begin:]
1911 # Non-numeric versions are used for backward compatibility and should be ignored
1912 if version_str.isdigit():
1913 spec_version = int(version_str)
1914 elif line.startswith("#define") and "EXTENSION_NAME " in line:
1915 name_end = line.rfind("\"")
1916 name_begin = line.rfind("\"", 0, name_end)
1917 # Unquoted names are used for backward compatibility and should be ignored
1918 if name_begin != -1 and name_end != -1:
1919 name = line[name_begin + 1:name_end]
1921 current_ext = Extension(name, spec_version, ext_guard)
1922 sub_extensions.append(current_ext)
1924 return sub_extensions;
1926 def parse_vulkan_h(filename):
1929 with open(filename, "r") as f:
1933 line = line.strip();
1935 if line.startswith("#include \"vulkan_"):
1936 # Extract the filename and parse it. Must be local to script file (no path).
1937 extensions.extend(parse_subheader(line[10:].replace('"', ''), ext_guard))
1938 elif line.startswith("#ifdef VK_USE_PLATFORM") or line.startswith('#ifdef VK_ENABLE_BETA_EXTENSIONS'):
1939 guard_begin = line.find(" ") + 1
1940 ext_guard = line[guard_begin:]
1941 elif ext_guard and line.startswith("#endif") and ext_guard in line:
1944 for ext in extensions:
1945 print("%s = %s" % (ext.name, repr(ext)))
1948 print("extensions = [")
1949 for ext in extensions:
1950 print(" %s," % ext.name)
1953 if __name__ == "__main__":
1954 if sys.argv[1] == "parse":
1955 parse_vulkan_h(sys.argv[2])
1957 filename = sys.argv[1]
1958 base = os.path.basename(filename)
1961 if base.endswith(".h"):
1962 contents = generate_wrapper_header(base.replace(".", "_").upper())
1963 elif base.endswith(".cpp"):
1964 contents = generate_wrapper_source(base.replace(".cpp", ".h"))
1966 with open(filename, "w") as f:
1967 print(contents, file=f)