blob: 4f16ac049dca56b59cad25065e692f28f63b7e79 [file] [log] [blame]
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -06001"""VK API description"""
Chia-I Wufb2559d2014-08-01 11:19:52 +08002
3# Copyright (C) 2014 LunarG, Inc.
4#
5# Permission is hereby granted, free of charge, to any person obtaining a
6# copy of this software and associated documentation files (the "Software"),
7# to deal in the Software without restriction, including without limitation
8# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9# and/or sell copies of the Software, and to permit persons to whom the
10# Software is furnished to do so, subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be included
13# in all copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21# DEALINGS IN THE SOFTWARE.
22
23class Param(object):
24 """A function parameter."""
25
26 def __init__(self, ty, name):
27 self.ty = ty
28 self.name = name
29
30 def c(self):
31 """Return the parameter in C."""
32 idx = self.ty.find("[")
33
34 # arrays have a different syntax
35 if idx >= 0:
36 return "%s %s%s" % (self.ty[:idx], self.name, self.ty[idx:])
37 else:
38 return "%s %s" % (self.ty, self.name)
39
Chia-I Wua5d28fa2015-01-04 15:02:50 +080040 def indirection_level(self):
41 """Return the level of indirection."""
42 return self.ty.count("*") + self.ty.count("[")
43
44 def dereferenced_type(self, level=0):
45 """Return the type after dereferencing."""
46 if not level:
47 level = self.indirection_level()
48
49 deref = self.ty if level else ""
50 while level > 0:
51 idx = deref.rfind("[")
52 if idx < 0:
53 idx = deref.rfind("*")
54 if idx < 0:
55 deref = ""
56 break
57 deref = deref[:idx]
58 level -= 1;
59
60 return deref.rstrip()
61
Chia-I Wu509a4122015-01-04 14:08:46 +080062 def __repr__(self):
63 return "Param(\"%s\", \"%s\")" % (self.ty, self.name)
64
Chia-I Wufb2559d2014-08-01 11:19:52 +080065class Proto(object):
66 """A function prototype."""
67
Chia-I Wue442dc32015-01-01 09:31:15 +080068 def __init__(self, ret, name, params=[]):
Chia-I Wufb2559d2014-08-01 11:19:52 +080069 # the proto has only a param
Chia-I Wue442dc32015-01-01 09:31:15 +080070 if not isinstance(params, list):
71 params = [params]
Chia-I Wufb2559d2014-08-01 11:19:52 +080072
73 self.ret = ret
74 self.name = name
75 self.params = params
76
77 def c_params(self, need_type=True, need_name=True):
78 """Return the parameter list in C."""
79 if self.params and (need_type or need_name):
80 if need_type and need_name:
81 return ", ".join([param.c() for param in self.params])
82 elif need_type:
83 return ", ".join([param.ty for param in self.params])
84 else:
85 return ", ".join([param.name for param in self.params])
86 else:
87 return "void" if need_type else ""
88
89 def c_decl(self, name, attr="", typed=False, need_param_names=True):
90 """Return a named declaration in C."""
91 format_vals = (self.ret,
92 attr + " " if attr else "",
93 name,
94 self.c_params(need_name=need_param_names))
95
96 if typed:
97 return "%s (%s*%s)(%s)" % format_vals
98 else:
99 return "%s %s%s(%s)" % format_vals
100
Chia-I Wuaf3b5552015-01-04 12:00:01 +0800101 def c_pretty_decl(self, name, attr=""):
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600102 """Return a named declaration in C, with vulkan.h formatting."""
Chia-I Wuaf3b5552015-01-04 12:00:01 +0800103 plist = []
104 for param in self.params:
105 idx = param.ty.find("[")
106 if idx < 0:
107 idx = len(param.ty)
108
109 pad = 44 - idx
110 if pad <= 0:
111 pad = 1
112
113 plist.append(" %s%s%s%s" % (param.ty[:idx],
114 " " * pad, param.name, param.ty[idx:]))
115
116 return "%s %s%s(\n%s)" % (self.ret,
117 attr + " " if attr else "",
118 name,
119 ",\n".join(plist))
120
Chia-I Wufb2559d2014-08-01 11:19:52 +0800121 def c_typedef(self, suffix="", attr=""):
122 """Return the typedef for the prototype in C."""
123 return self.c_decl(self.name + suffix, attr=attr, typed=True)
124
125 def c_func(self, prefix="", attr=""):
126 """Return the prototype in C."""
127 return self.c_decl(prefix + self.name, attr=attr, typed=False)
128
129 def c_call(self):
130 """Return a call to the prototype in C."""
131 return "%s(%s)" % (self.name, self.c_params(need_type=False))
132
Chia-I Wua5d28fa2015-01-04 15:02:50 +0800133 def object_in_params(self):
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600134 """Return the params that are simple VK objects and are inputs."""
Chia-I Wua5d28fa2015-01-04 15:02:50 +0800135 return [param for param in self.params if param.ty in objects]
136
137 def object_out_params(self):
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600138 """Return the params that are simple VK objects and are outputs."""
Chia-I Wua5d28fa2015-01-04 15:02:50 +0800139 return [param for param in self.params
140 if param.dereferenced_type() in objects]
141
Chia-I Wu509a4122015-01-04 14:08:46 +0800142 def __repr__(self):
143 param_strs = []
144 for param in self.params:
145 param_strs.append(str(param))
146 param_str = " [%s]" % (",\n ".join(param_strs))
147
148 return "Proto(\"%s\", \"%s\",\n%s)" % \
149 (self.ret, self.name, param_str)
150
Chia-I Wuc4f24e82015-01-01 08:46:31 +0800151class Extension(object):
Chia-I Wue86d8ab2015-01-04 14:46:22 +0800152 def __init__(self, name, headers, objects, protos):
Chia-I Wuc4f24e82015-01-01 08:46:31 +0800153 self.name = name
154 self.headers = headers
Chia-I Wue86d8ab2015-01-04 14:46:22 +0800155 self.objects = objects
Chia-I Wuc4f24e82015-01-01 08:46:31 +0800156 self.protos = protos
157
Chia-I Wu509a4122015-01-04 14:08:46 +0800158 def __repr__(self):
159 lines = []
160 lines.append("Extension(")
161 lines.append(" name=\"%s\"," % self.name)
162 lines.append(" headers=[\"%s\"]," %
163 "\", \"".join(self.headers))
164
165 lines.append(" objects=[")
166 for obj in self.objects:
167 lines.append(" \"%s\"," % obj)
168 lines.append(" ],")
169
170 lines.append(" protos=[")
171 for proto in self.protos:
172 param_lines = str(proto).splitlines()
173 param_lines[-1] += ",\n" if proto != self.protos[-1] else ","
174 for p in param_lines:
175 lines.append(" " + p)
176 lines.append(" ],")
177 lines.append(")")
178
179 return "\n".join(lines)
180
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600181# VK core API
Chia-I Wuc4f24e82015-01-01 08:46:31 +0800182core = Extension(
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -0600183 name="VK_CORE",
Courtney Goeltzenleuchterf579fa62015-06-10 17:39:03 -0600184 headers=["vulkan.h", "vk_debug_report_lunarg.h"],
Chia-I Wue86d8ab2015-01-04 14:46:22 +0800185 objects=[
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600186 "VkInstance",
Tony Barbourd1c35722015-04-16 15:59:00 -0600187 "VkPhysicalDevice",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600188 "VkDevice",
189 "VkQueue",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600190 "VkCmdBuffer",
Cody Northrope62183e2015-07-09 18:08:05 -0600191 "VkCmdPool",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600192 "VkFence",
Tony Barbourd1c35722015-04-16 15:59:00 -0600193 "VkDeviceMemory",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600194 "VkBuffer",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600195 "VkImage",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600196 "VkSemaphore",
197 "VkEvent",
198 "VkQueryPool",
199 "VkBufferView",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600200 "VkImageView",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600201 "VkShaderModule",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600202 "VkShader",
Tony Barboura05dbaa2015-07-09 17:31:46 -0600203 "VkPipelineCache",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600204 "VkPipelineLayout",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600205 "VkPipeline",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600206 "VkDescriptorSetLayout",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600207 "VkSampler",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600208 "VkDescriptorPool",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600209 "VkDescriptorSet",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600210 "VkDynamicViewportState",
Cody Northrop271ba752015-08-26 10:01:32 -0600211 "VkDynamicLineWidthState",
212 "VkDynamicDepthBiasState",
213 "VkDynamicBlendState",
214 "VkDynamicDepthBoundsState",
Cody Northrop82485a82015-08-18 15:21:16 -0600215 "VkDynamicStencilState",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600216 "VkRenderPass",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600217 "VkFramebuffer",
Chia-I Wue86d8ab2015-01-04 14:46:22 +0800218 ],
Chia-I Wue442dc32015-01-01 09:31:15 +0800219 protos=[
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600220 Proto("VkResult", "CreateInstance",
Courtney Goeltzenleuchter95487bc2015-04-14 18:48:46 -0600221 [Param("const VkInstanceCreateInfo*", "pCreateInfo"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600222 Param("VkInstance*", "pInstance")]),
Jon Ashburn1beab2d2015-01-26 14:51:40 -0700223
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600224 Proto("void", "DestroyInstance",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600225 [Param("VkInstance", "instance")]),
Jon Ashburn1beab2d2015-01-26 14:51:40 -0700226
Jon Ashburn83a64252015-04-15 11:31:12 -0600227 Proto("VkResult", "EnumeratePhysicalDevices",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600228 [Param("VkInstance", "instance"),
Jon Ashburn83a64252015-04-15 11:31:12 -0600229 Param("uint32_t*", "pPhysicalDeviceCount"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600230 Param("VkPhysicalDevice*", "pPhysicalDevices")]),
Jon Ashburn1beab2d2015-01-26 14:51:40 -0700231
Chris Forbesbc0bb772015-06-21 22:55:02 +1200232 Proto("VkResult", "GetPhysicalDeviceFeatures",
233 [Param("VkPhysicalDevice", "physicalDevice"),
234 Param("VkPhysicalDeviceFeatures*", "pFeatures")]),
235
Courtney Goeltzenleuchter2caec862015-07-12 12:52:09 -0600236 Proto("VkResult", "GetPhysicalDeviceFormatProperties",
Chris Forbesbc0bb772015-06-21 22:55:02 +1200237 [Param("VkPhysicalDevice", "physicalDevice"),
238 Param("VkFormat", "format"),
Jon Ashburnea65e492015-08-06 17:27:49 -0600239 Param("VkFormatProperties*", "pFormatProperties")]),
Chris Forbesbc0bb772015-06-21 22:55:02 +1200240
Jon Ashburn42540ef2015-07-23 18:48:20 -0600241 Proto("VkResult", "GetPhysicalDeviceImageFormatProperties",
242 [Param("VkPhysicalDevice", "physicalDevice"),
243 Param("VkFormat", "format"),
244 Param("VkImageType", "type"),
245 Param("VkImageTiling", "tiling"),
246 Param("VkImageUsageFlags", "usage"),
Courtney Goeltzenleuchtera22097a2015-09-10 13:44:12 -0600247 Param("VkImageCreateFlags", "flags"),
Jon Ashburn42540ef2015-07-23 18:48:20 -0600248 Param("VkImageFormatProperties*", "pImageFormatProperties")]),
249
Courtney Goeltzenleuchter2d3ba632015-07-12 14:35:22 -0600250 Proto("PFN_vkVoidFunction", "GetInstanceProcAddr",
Jon Ashburnb0fbe912015-05-06 10:15:07 -0600251 [Param("VkInstance", "instance"),
252 Param("const char*", "pName")]),
253
Courtney Goeltzenleuchter2d3ba632015-07-12 14:35:22 -0600254 Proto("PFN_vkVoidFunction", "GetDeviceProcAddr",
Jon Ashburn8d1b0b52015-05-18 13:20:15 -0600255 [Param("VkDevice", "device"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600256 Param("const char*", "pName")]),
Chia-I Wuf2ffc522015-01-04 14:51:06 +0800257
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600258 Proto("VkResult", "CreateDevice",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600259 [Param("VkPhysicalDevice", "physicalDevice"),
Courtney Goeltzenleuchter95487bc2015-04-14 18:48:46 -0600260 Param("const VkDeviceCreateInfo*", "pCreateInfo"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600261 Param("VkDevice*", "pDevice")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800262
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600263 Proto("void", "DestroyDevice",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600264 [Param("VkDevice", "device")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800265
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600266 Proto("VkResult", "GetPhysicalDeviceProperties",
267 [Param("VkPhysicalDevice", "physicalDevice"),
268 Param("VkPhysicalDeviceProperties*", "pProperties")]),
Tony Barbour59a47322015-06-24 16:06:58 -0600269
Cody Northropd0802882015-08-03 17:04:53 -0600270 Proto("VkResult", "GetPhysicalDeviceQueueFamilyProperties",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600271 [Param("VkPhysicalDevice", "physicalDevice"),
Cody Northropd0802882015-08-03 17:04:53 -0600272 Param("uint32_t*", "pCount"),
273 Param("VkQueueFamilyProperties*", "pQueueFamilyProperties")]),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600274
275 Proto("VkResult", "GetPhysicalDeviceMemoryProperties",
276 [Param("VkPhysicalDevice", "physicalDevice"),
277 Param("VkPhysicalDeviceMemoryProperties*", "pMemoryProperties")]),
Tony Barbour59a47322015-06-24 16:06:58 -0600278
279 Proto("VkResult", "GetGlobalExtensionProperties",
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -0600280 [Param("const char*", "pLayerName"),
281 Param("uint32_t*", "pCount"),
Tony Barbour59a47322015-06-24 16:06:58 -0600282 Param("VkExtensionProperties*", "pProperties")]),
283
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600284 Proto("VkResult", "GetPhysicalDeviceExtensionProperties",
285 [Param("VkPhysicalDevice", "physicalDevice"),
286 Param("const char*", "pLayerName"),
Jon Ashburnea65e492015-08-06 17:27:49 -0600287 Param("uint32_t*", "pCount"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600288 Param("VkExtensionProperties*", "pProperties")]),
289
Courtney Goeltzenleuchter110fdf92015-06-29 15:39:26 -0600290 Proto("VkResult", "GetGlobalLayerProperties",
291 [Param("uint32_t*", "pCount"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600292 Param("VkLayerProperties*", "pProperties")]),
293
294 Proto("VkResult", "GetPhysicalDeviceLayerProperties",
295 [Param("VkPhysicalDevice", "physicalDevice"),
Jon Ashburnea65e492015-08-06 17:27:49 -0600296 Param("uint32_t*", "pCount"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600297 Param("VkLayerProperties*", "pProperties")]),
Tobin Ehlis01939012015-04-16 12:51:37 -0600298
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600299 Proto("VkResult", "GetDeviceQueue",
300 [Param("VkDevice", "device"),
Jon Ashburnea65e492015-08-06 17:27:49 -0600301 Param("uint32_t", "queueFamilyIndex"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600302 Param("uint32_t", "queueIndex"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600303 Param("VkQueue*", "pQueue")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800304
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600305 Proto("VkResult", "QueueSubmit",
306 [Param("VkQueue", "queue"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600307 Param("uint32_t", "cmdBufferCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600308 Param("const VkCmdBuffer*", "pCmdBuffers"),
309 Param("VkFence", "fence")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800310
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600311 Proto("VkResult", "QueueWaitIdle",
312 [Param("VkQueue", "queue")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800313
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600314 Proto("VkResult", "DeviceWaitIdle",
315 [Param("VkDevice", "device")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800316
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600317 Proto("VkResult", "AllocMemory",
318 [Param("VkDevice", "device"),
Courtney Goeltzenleuchter95487bc2015-04-14 18:48:46 -0600319 Param("const VkMemoryAllocInfo*", "pAllocInfo"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600320 Param("VkDeviceMemory*", "pMem")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800321
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600322 Proto("void", "FreeMemory",
Mike Stroyanb050c682015-04-17 12:36:38 -0600323 [Param("VkDevice", "device"),
324 Param("VkDeviceMemory", "mem")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800325
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600326 Proto("VkResult", "MapMemory",
Mike Stroyanb050c682015-04-17 12:36:38 -0600327 [Param("VkDevice", "device"),
328 Param("VkDeviceMemory", "mem"),
Tony Barbour71a85122015-04-16 19:09:28 -0600329 Param("VkDeviceSize", "offset"),
330 Param("VkDeviceSize", "size"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600331 Param("VkMemoryMapFlags", "flags"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600332 Param("void**", "ppData")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800333
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600334 Proto("void", "UnmapMemory",
Mike Stroyanb050c682015-04-17 12:36:38 -0600335 [Param("VkDevice", "device"),
336 Param("VkDeviceMemory", "mem")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800337
Courtney Goeltzenleuchterf69f8a22015-04-29 17:16:21 -0600338 Proto("VkResult", "FlushMappedMemoryRanges",
Mike Stroyanb050c682015-04-17 12:36:38 -0600339 [Param("VkDevice", "device"),
Courtney Goeltzenleuchterf69f8a22015-04-29 17:16:21 -0600340 Param("uint32_t", "memRangeCount"),
341 Param("const VkMappedMemoryRange*", "pMemRanges")]),
342
343 Proto("VkResult", "InvalidateMappedMemoryRanges",
344 [Param("VkDevice", "device"),
345 Param("uint32_t", "memRangeCount"),
346 Param("const VkMappedMemoryRange*", "pMemRanges")]),
Tony Barbourb1250542015-04-16 19:23:13 -0600347
Courtney Goeltzenleuchterfb71f222015-07-09 21:57:28 -0600348 Proto("VkResult", "GetDeviceMemoryCommitment",
349 [Param("VkDevice", "device"),
350 Param("VkDeviceMemory", "memory"),
351 Param("VkDeviceSize*", "pCommittedMemoryInBytes")]),
352
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600353 Proto("VkResult", "BindBufferMemory",
354 [Param("VkDevice", "device"),
355 Param("VkBuffer", "buffer"),
356 Param("VkDeviceMemory", "mem"),
357 Param("VkDeviceSize", "memOffset")]),
358
359 Proto("VkResult", "BindImageMemory",
360 [Param("VkDevice", "device"),
361 Param("VkImage", "image"),
362 Param("VkDeviceMemory", "mem"),
363 Param("VkDeviceSize", "memOffset")]),
364
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600365 Proto("VkResult", "GetBufferMemoryRequirements",
Mike Stroyanb050c682015-04-17 12:36:38 -0600366 [Param("VkDevice", "device"),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600367 Param("VkBuffer", "buffer"),
Tony Barbour59a47322015-06-24 16:06:58 -0600368 Param("VkMemoryRequirements*", "pMemoryRequirements")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800369
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600370 Proto("VkResult", "GetImageMemoryRequirements",
Mark Lobodzinski942b1722015-05-11 17:21:15 -0500371 [Param("VkDevice", "device"),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600372 Param("VkImage", "image"),
373 Param("VkMemoryRequirements*", "pMemoryRequirements")]),
374
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600375 Proto("VkResult", "GetImageSparseMemoryRequirements",
376 [Param("VkDevice", "device"),
377 Param("VkImage", "image"),
378 Param("uint32_t*", "pNumRequirements"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600379 Param("VkSparseImageMemoryRequirements*", "pSparseMemoryRequirements")]),
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600380
381 Proto("VkResult", "GetPhysicalDeviceSparseImageFormatProperties",
382 [Param("VkPhysicalDevice", "physicalDevice"),
383 Param("VkFormat", "format"),
384 Param("VkImageType", "type"),
385 Param("uint32_t", "samples"),
386 Param("VkImageUsageFlags", "usage"),
387 Param("VkImageTiling", "tiling"),
388 Param("uint32_t*", "pNumProperties"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600389 Param("VkSparseImageFormatProperties*", "pProperties")]),
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600390
Mark Lobodzinski942b1722015-05-11 17:21:15 -0500391 Proto("VkResult", "QueueBindSparseBufferMemory",
Mark Lobodzinski40f7f402015-04-16 11:44:05 -0500392 [Param("VkQueue", "queue"),
Mark Lobodzinski942b1722015-05-11 17:21:15 -0500393 Param("VkBuffer", "buffer"),
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600394 Param("uint32_t", "numBindings"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600395 Param("const VkSparseMemoryBindInfo*", "pBindInfo")]),
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600396
397 Proto("VkResult", "QueueBindSparseImageOpaqueMemory",
398 [Param("VkQueue", "queue"),
399 Param("VkImage", "image"),
400 Param("uint32_t", "numBindings"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600401 Param("const VkSparseMemoryBindInfo*", "pBindInfo")]),
Chia-I Wu1a28fe02015-01-01 07:55:04 +0800402
Mark Lobodzinski942b1722015-05-11 17:21:15 -0500403 Proto("VkResult", "QueueBindSparseImageMemory",
Mark Lobodzinski40f7f402015-04-16 11:44:05 -0500404 [Param("VkQueue", "queue"),
405 Param("VkImage", "image"),
Mark Lobodzinski16e8bef2015-07-03 15:58:09 -0600406 Param("uint32_t", "numBindings"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600407 Param("const VkSparseImageMemoryBindInfo*", "pBindInfo")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800408
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600409 Proto("VkResult", "CreateFence",
410 [Param("VkDevice", "device"),
411 Param("const VkFenceCreateInfo*", "pCreateInfo"),
412 Param("VkFence*", "pFence")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800413
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600414 Proto("void", "DestroyFence",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600415 [Param("VkDevice", "device"),
416 Param("VkFence", "fence")]),
417
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600418 Proto("VkResult", "ResetFences",
419 [Param("VkDevice", "device"),
Mark Lobodzinski148e1582015-04-07 16:07:57 -0500420 Param("uint32_t", "fenceCount"),
Courtney Goeltzenleuchter2bf8f902015-06-18 17:28:20 -0600421 Param("const VkFence*", "pFences")]),
Mark Lobodzinski148e1582015-04-07 16:07:57 -0500422
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600423 Proto("VkResult", "GetFenceStatus",
Mike Stroyanb050c682015-04-17 12:36:38 -0600424 [Param("VkDevice", "device"),
425 Param("VkFence", "fence")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800426
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600427 Proto("VkResult", "WaitForFences",
428 [Param("VkDevice", "device"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600429 Param("uint32_t", "fenceCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600430 Param("const VkFence*", "pFences"),
Courtney Goeltzenleuchtercd2a0992015-07-09 11:44:38 -0600431 Param("VkBool32", "waitAll"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600432 Param("uint64_t", "timeout")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800433
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600434 Proto("VkResult", "CreateSemaphore",
435 [Param("VkDevice", "device"),
436 Param("const VkSemaphoreCreateInfo*", "pCreateInfo"),
437 Param("VkSemaphore*", "pSemaphore")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800438
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600439 Proto("void", "DestroySemaphore",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600440 [Param("VkDevice", "device"),
441 Param("VkSemaphore", "semaphore")]),
442
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600443 Proto("VkResult", "QueueSignalSemaphore",
444 [Param("VkQueue", "queue"),
445 Param("VkSemaphore", "semaphore")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800446
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600447 Proto("VkResult", "QueueWaitSemaphore",
448 [Param("VkQueue", "queue"),
449 Param("VkSemaphore", "semaphore")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800450
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600451 Proto("VkResult", "CreateEvent",
452 [Param("VkDevice", "device"),
453 Param("const VkEventCreateInfo*", "pCreateInfo"),
454 Param("VkEvent*", "pEvent")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800455
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600456 Proto("void", "DestroyEvent",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600457 [Param("VkDevice", "device"),
458 Param("VkEvent", "event")]),
459
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600460 Proto("VkResult", "GetEventStatus",
Mike Stroyanb050c682015-04-17 12:36:38 -0600461 [Param("VkDevice", "device"),
462 Param("VkEvent", "event")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800463
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600464 Proto("VkResult", "SetEvent",
Mike Stroyanb050c682015-04-17 12:36:38 -0600465 [Param("VkDevice", "device"),
466 Param("VkEvent", "event")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800467
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600468 Proto("VkResult", "ResetEvent",
Mike Stroyanb050c682015-04-17 12:36:38 -0600469 [Param("VkDevice", "device"),
470 Param("VkEvent", "event")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800471
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600472 Proto("VkResult", "CreateQueryPool",
473 [Param("VkDevice", "device"),
474 Param("const VkQueryPoolCreateInfo*", "pCreateInfo"),
475 Param("VkQueryPool*", "pQueryPool")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800476
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600477 Proto("void", "DestroyQueryPool",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600478 [Param("VkDevice", "device"),
479 Param("VkQueryPool", "queryPool")]),
480
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600481 Proto("VkResult", "GetQueryPoolResults",
Mike Stroyanb050c682015-04-17 12:36:38 -0600482 [Param("VkDevice", "device"),
483 Param("VkQueryPool", "queryPool"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600484 Param("uint32_t", "startQuery"),
485 Param("uint32_t", "queryCount"),
486 Param("size_t*", "pDataSize"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600487 Param("void*", "pData"),
488 Param("VkQueryResultFlags", "flags")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800489
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600490 Proto("VkResult", "CreateBuffer",
491 [Param("VkDevice", "device"),
Courtney Goeltzenleuchter95487bc2015-04-14 18:48:46 -0600492 Param("const VkBufferCreateInfo*", "pCreateInfo"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600493 Param("VkBuffer*", "pBuffer")]),
Chia-I Wu1a28fe02015-01-01 07:55:04 +0800494
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600495 Proto("void", "DestroyBuffer",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600496 [Param("VkDevice", "device"),
497 Param("VkBuffer", "buffer")]),
498
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600499 Proto("VkResult", "CreateBufferView",
500 [Param("VkDevice", "device"),
Courtney Goeltzenleuchter95487bc2015-04-14 18:48:46 -0600501 Param("const VkBufferViewCreateInfo*", "pCreateInfo"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600502 Param("VkBufferView*", "pView")]),
Chia-I Wu1a28fe02015-01-01 07:55:04 +0800503
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600504 Proto("void", "DestroyBufferView",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600505 [Param("VkDevice", "device"),
506 Param("VkBufferView", "bufferView")]),
507
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600508 Proto("VkResult", "CreateImage",
509 [Param("VkDevice", "device"),
510 Param("const VkImageCreateInfo*", "pCreateInfo"),
511 Param("VkImage*", "pImage")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800512
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600513 Proto("void", "DestroyImage",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600514 [Param("VkDevice", "device"),
515 Param("VkImage", "image")]),
516
Tony Barbour59a47322015-06-24 16:06:58 -0600517 Proto("VkResult", "GetImageSubresourceLayout",
Mike Stroyanb050c682015-04-17 12:36:38 -0600518 [Param("VkDevice", "device"),
519 Param("VkImage", "image"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600520 Param("const VkImageSubresource*", "pSubresource"),
Tony Barbour59a47322015-06-24 16:06:58 -0600521 Param("VkSubresourceLayout*", "pLayout")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800522
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600523 Proto("VkResult", "CreateImageView",
524 [Param("VkDevice", "device"),
525 Param("const VkImageViewCreateInfo*", "pCreateInfo"),
526 Param("VkImageView*", "pView")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800527
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600528 Proto("void", "DestroyImageView",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600529 [Param("VkDevice", "device"),
530 Param("VkImageView", "imageView")]),
531
Courtney Goeltzenleuchter2d2cb682015-06-24 18:24:19 -0600532 Proto("VkResult", "CreateShaderModule",
533 [Param("VkDevice", "device"),
534 Param("const VkShaderModuleCreateInfo*", "pCreateInfo"),
535 Param("VkShaderModule*", "pShaderModule")]),
536
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600537 Proto("void", "DestroyShaderModule",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600538 [Param("VkDevice", "device"),
539 Param("VkShaderModule", "shaderModule")]),
540
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600541 Proto("VkResult", "CreateShader",
542 [Param("VkDevice", "device"),
543 Param("const VkShaderCreateInfo*", "pCreateInfo"),
544 Param("VkShader*", "pShader")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800545
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600546 Proto("void", "DestroyShader",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600547 [Param("VkDevice", "device"),
548 Param("VkShader", "shader")]),
549
Jon Ashburnc669cc62015-07-09 15:02:25 -0600550 Proto("VkResult", "CreatePipelineCache",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600551 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600552 Param("const VkPipelineCacheCreateInfo*", "pCreateInfo"),
553 Param("VkPipelineCache*", "pPipelineCache")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800554
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600555 Proto("void", "DestroyPipelineCache",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600556 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600557 Param("VkPipelineCache", "pipelineCache")]),
Courtney Goeltzenleuchter0d40f152015-03-25 15:37:49 -0600558
Jon Ashburnc669cc62015-07-09 15:02:25 -0600559 Proto("size_t", "GetPipelineCacheSize",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600560 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600561 Param("VkPipelineCache", "pipelineCache")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800562
Jon Ashburnc669cc62015-07-09 15:02:25 -0600563 Proto("VkResult", "GetPipelineCacheData",
Mike Stroyanb050c682015-04-17 12:36:38 -0600564 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600565 Param("VkPipelineCache", "pipelineCache"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600566 Param("void*", "pData")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800567
Jon Ashburnc669cc62015-07-09 15:02:25 -0600568 Proto("VkResult", "MergePipelineCaches",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600569 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600570 Param("VkPipelineCache", "destCache"),
571 Param("uint32_t", "srcCacheCount"),
572 Param("const VkPipelineCache*", "pSrcCaches")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800573
Jon Ashburnc669cc62015-07-09 15:02:25 -0600574 Proto("VkResult", "CreateGraphicsPipelines",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600575 [Param("VkDevice", "device"),
Jon Ashburnc669cc62015-07-09 15:02:25 -0600576 Param("VkPipelineCache", "pipelineCache"),
577 Param("uint32_t", "count"),
578 Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfos"),
579 Param("VkPipeline*", "pPipelines")]),
580
581 Proto("VkResult", "CreateComputePipelines",
582 [Param("VkDevice", "device"),
583 Param("VkPipelineCache", "pipelineCache"),
584 Param("uint32_t", "count"),
585 Param("const VkComputePipelineCreateInfo*", "pCreateInfos"),
586 Param("VkPipeline*", "pPipelines")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800587
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600588 Proto("void", "DestroyPipeline",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600589 [Param("VkDevice", "device"),
590 Param("VkPipeline", "pipeline")]),
591
Mark Lobodzinski0fadf5f2015-04-17 14:11:39 -0500592 Proto("VkResult", "CreatePipelineLayout",
593 [Param("VkDevice", "device"),
594 Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"),
595 Param("VkPipelineLayout*", "pPipelineLayout")]),
596
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600597 Proto("void", "DestroyPipelineLayout",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600598 [Param("VkDevice", "device"),
599 Param("VkPipelineLayout", "pipelineLayout")]),
600
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600601 Proto("VkResult", "CreateSampler",
602 [Param("VkDevice", "device"),
603 Param("const VkSamplerCreateInfo*", "pCreateInfo"),
604 Param("VkSampler*", "pSampler")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800605
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600606 Proto("void", "DestroySampler",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600607 [Param("VkDevice", "device"),
608 Param("VkSampler", "sampler")]),
609
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600610 Proto("VkResult", "CreateDescriptorSetLayout",
611 [Param("VkDevice", "device"),
612 Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"),
613 Param("VkDescriptorSetLayout*", "pSetLayout")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800614
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600615 Proto("void", "DestroyDescriptorSetLayout",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600616 [Param("VkDevice", "device"),
617 Param("VkDescriptorSetLayout", "descriptorSetLayout")]),
618
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600619 Proto("VkResult", "CreateDescriptorPool",
620 [Param("VkDevice", "device"),
621 Param("VkDescriptorPoolUsage", "poolUsage"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600622 Param("uint32_t", "maxSets"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600623 Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"),
624 Param("VkDescriptorPool*", "pDescriptorPool")]),
Chia-I Wu11078b02015-01-04 16:27:24 +0800625
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600626 Proto("void", "DestroyDescriptorPool",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600627 [Param("VkDevice", "device"),
628 Param("VkDescriptorPool", "descriptorPool")]),
629
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600630 Proto("VkResult", "ResetDescriptorPool",
Mike Stroyanb050c682015-04-17 12:36:38 -0600631 [Param("VkDevice", "device"),
632 Param("VkDescriptorPool", "descriptorPool")]),
Chia-I Wu11078b02015-01-04 16:27:24 +0800633
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600634 Proto("VkResult", "AllocDescriptorSets",
Mike Stroyanb050c682015-04-17 12:36:38 -0600635 [Param("VkDevice", "device"),
636 Param("VkDescriptorPool", "descriptorPool"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600637 Param("VkDescriptorSetUsage", "setUsage"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600638 Param("uint32_t", "count"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600639 Param("const VkDescriptorSetLayout*", "pSetLayouts"),
Cody Northrop1e4f8022015-08-03 12:47:29 -0600640 Param("VkDescriptorSet*", "pDescriptorSets")]),
Chia-I Wu11078b02015-01-04 16:27:24 +0800641
Tony Barbour34ec6922015-07-10 10:50:45 -0600642 Proto("VkResult", "FreeDescriptorSets",
643 [Param("VkDevice", "device"),
644 Param("VkDescriptorPool", "descriptorPool"),
645 Param("uint32_t", "count"),
646 Param("const VkDescriptorSet*", "pDescriptorSets")]),
647
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600648 Proto("void", "UpdateDescriptorSets",
Mike Stroyanb050c682015-04-17 12:36:38 -0600649 [Param("VkDevice", "device"),
Chia-I Wu9d00ed72015-05-25 16:27:55 +0800650 Param("uint32_t", "writeCount"),
651 Param("const VkWriteDescriptorSet*", "pDescriptorWrites"),
652 Param("uint32_t", "copyCount"),
653 Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800654
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600655 Proto("VkResult", "CreateDynamicViewportState",
656 [Param("VkDevice", "device"),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600657 Param("const VkDynamicViewportStateCreateInfo*", "pCreateInfo"),
658 Param("VkDynamicViewportState*", "pState")]),
659
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600660 Proto("void", "DestroyDynamicViewportState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600661 [Param("VkDevice", "device"),
662 Param("VkDynamicViewportState", "dynamicViewportState")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800663
Cody Northrop271ba752015-08-26 10:01:32 -0600664 Proto("VkResult", "CreateDynamicLineWidthState",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600665 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600666 Param("const VkDynamicLineWidthStateCreateInfo*", "pCreateInfo"),
667 Param("VkDynamicLineWidthState*", "pState")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600668
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600669 Proto("void", "DestroyDynamicLineWidthState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600670 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600671 Param("VkDynamicLineWidthState", "dynamicLineWidthState")]),
Cody Northrop12365112015-08-17 11:10:49 -0600672
Cody Northrop271ba752015-08-26 10:01:32 -0600673 Proto("VkResult", "CreateDynamicDepthBiasState",
Cody Northrop12365112015-08-17 11:10:49 -0600674 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600675 Param("const VkDynamicDepthBiasStateCreateInfo*", "pCreateInfo"),
676 Param("VkDynamicDepthBiasState*", "pState")]),
Cody Northrop12365112015-08-17 11:10:49 -0600677
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600678 Proto("void", "DestroyDynamicDepthBiasState",
Cody Northrop12365112015-08-17 11:10:49 -0600679 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600680 Param("VkDynamicDepthBiasState", "dynamicDepthBiasState")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800681
Cody Northrop271ba752015-08-26 10:01:32 -0600682 Proto("VkResult", "CreateDynamicBlendState",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600683 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600684 Param("const VkDynamicBlendStateCreateInfo*", "pCreateInfo"),
685 Param("VkDynamicBlendState*", "pState")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600686
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600687 Proto("void", "DestroyDynamicBlendState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600688 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600689 Param("VkDynamicBlendState", "DynamicBlendState")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800690
Cody Northrop271ba752015-08-26 10:01:32 -0600691 Proto("VkResult", "CreateDynamicDepthBoundsState",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600692 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600693 Param("const VkDynamicDepthBoundsStateCreateInfo*", "pCreateInfo"),
694 Param("VkDynamicDepthBoundsState*", "pState")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600695
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600696 Proto("void", "DestroyDynamicDepthBoundsState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600697 [Param("VkDevice", "device"),
Cody Northrop271ba752015-08-26 10:01:32 -0600698 Param("VkDynamicDepthBoundsState", "dynamicDepthBoundsState")]),
Cody Northrop82485a82015-08-18 15:21:16 -0600699
700 Proto("VkResult", "CreateDynamicStencilState",
701 [Param("VkDevice", "device"),
702 Param("const VkDynamicStencilStateCreateInfo*", "pCreateInfoFront"),
703 Param("const VkDynamicStencilStateCreateInfo*", "pCreateInfoBack"),
704 Param("VkDynamicStencilState*", "pState")]),
705
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600706 Proto("void", "DestroyDynamicStencilState",
Cody Northrop82485a82015-08-18 15:21:16 -0600707 [Param("VkDevice", "device"),
708 Param("VkDynamicStencilState", "dynamicStencilState")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800709
Cody Northrope62183e2015-07-09 18:08:05 -0600710 Proto("VkResult", "CreateCommandPool",
711 [Param("VkDevice", "device"),
712 Param("const VkCmdPoolCreateInfo*", "pCreateInfo"),
713 Param("VkCmdPool*", "pCmdPool")]),
714
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600715 Proto("void", "DestroyCommandPool",
Cody Northrope62183e2015-07-09 18:08:05 -0600716 [Param("VkDevice", "device"),
717 Param("VkCmdPool", "cmdPool")]),
718
719 Proto("VkResult", "ResetCommandPool",
720 [Param("VkDevice", "device"),
721 Param("VkCmdPool", "cmdPool"),
722 Param("VkCmdPoolResetFlags", "flags")]),
723
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600724 Proto("VkResult", "CreateCommandBuffer",
725 [Param("VkDevice", "device"),
726 Param("const VkCmdBufferCreateInfo*", "pCreateInfo"),
727 Param("VkCmdBuffer*", "pCmdBuffer")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800728
Mark Lobodzinski2141f652015-09-07 13:59:43 -0600729 Proto("void", "DestroyCommandBuffer",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600730 [Param("VkDevice", "device"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600731 Param("VkCmdBuffer", "commandBuffer")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600732
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600733 Proto("VkResult", "BeginCommandBuffer",
734 [Param("VkCmdBuffer", "cmdBuffer"),
735 Param("const VkCmdBufferBeginInfo*", "pBeginInfo")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800736
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600737 Proto("VkResult", "EndCommandBuffer",
738 [Param("VkCmdBuffer", "cmdBuffer")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800739
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600740 Proto("VkResult", "ResetCommandBuffer",
Cody Northrope62183e2015-07-09 18:08:05 -0600741 [Param("VkCmdBuffer", "cmdBuffer"),
742 Param("VkCmdBufferResetFlags", "flags")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800743
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600744 Proto("void", "CmdBindPipeline",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600745 [Param("VkCmdBuffer", "cmdBuffer"),
746 Param("VkPipelineBindPoint", "pipelineBindPoint"),
747 Param("VkPipeline", "pipeline")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800748
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600749 Proto("void", "CmdBindDynamicViewportState",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600750 [Param("VkCmdBuffer", "cmdBuffer"),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600751 Param("VkDynamicViewportState", "dynamicViewportState")]),
752
Cody Northrop271ba752015-08-26 10:01:32 -0600753 Proto("void", "CmdBindDynamicLineWidthState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600754 [Param("VkCmdBuffer", "cmdBuffer"),
Cody Northrop271ba752015-08-26 10:01:32 -0600755 Param("VkDynamicLineWidthState", "dynamicLineWidthState")]),
Cody Northrop12365112015-08-17 11:10:49 -0600756
Cody Northrop271ba752015-08-26 10:01:32 -0600757 Proto("void", "CmdBindDynamicDepthBiasState",
Cody Northrop12365112015-08-17 11:10:49 -0600758 [Param("VkCmdBuffer", "cmdBuffer"),
Cody Northrop271ba752015-08-26 10:01:32 -0600759 Param("VkDynamicDepthBiasState", "dynamicDepthBiasState")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600760
Cody Northrop271ba752015-08-26 10:01:32 -0600761 Proto("void", "CmdBindDynamicBlendState",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600762 [Param("VkCmdBuffer", "cmdBuffer"),
Cody Northrop271ba752015-08-26 10:01:32 -0600763 Param("VkDynamicBlendState", "DynamicBlendState")]),
Tony Barbour1d2cd3f2015-07-03 10:33:54 -0600764
Cody Northrop271ba752015-08-26 10:01:32 -0600765 Proto("void", "CmdBindDynamicDepthBoundsState",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600766 [Param("VkCmdBuffer", "cmdBuffer"),
Cody Northrop271ba752015-08-26 10:01:32 -0600767 Param("VkDynamicDepthBoundsState", "dynamicDepthBoundsState")]),
Cody Northrop82485a82015-08-18 15:21:16 -0600768
769 Proto("void", "CmdBindDynamicStencilState",
770 [Param("VkCmdBuffer", "cmdBuffer"),
771 Param("VkDynamicStencilState", "dynamicStencilState")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800772
Chia-I Wu53f07d72015-03-28 15:23:55 +0800773 Proto("void", "CmdBindDescriptorSets",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600774 [Param("VkCmdBuffer", "cmdBuffer"),
775 Param("VkPipelineBindPoint", "pipelineBindPoint"),
Mark Lobodzinskif2093b62015-06-15 13:21:21 -0600776 Param("VkPipelineLayout", "layout"),
Cody Northropd4c1a502015-04-16 13:41:56 -0600777 Param("uint32_t", "firstSet"),
778 Param("uint32_t", "setCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600779 Param("const VkDescriptorSet*", "pDescriptorSets"),
Cody Northropd4c1a502015-04-16 13:41:56 -0600780 Param("uint32_t", "dynamicOffsetCount"),
781 Param("const uint32_t*", "pDynamicOffsets")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800782
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600783 Proto("void", "CmdBindIndexBuffer",
784 [Param("VkCmdBuffer", "cmdBuffer"),
785 Param("VkBuffer", "buffer"),
786 Param("VkDeviceSize", "offset"),
787 Param("VkIndexType", "indexType")]),
788
Courtney Goeltzenleuchterf68ad722015-04-16 13:38:46 -0600789 Proto("void", "CmdBindVertexBuffers",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600790 [Param("VkCmdBuffer", "cmdBuffer"),
Courtney Goeltzenleuchterf68ad722015-04-16 13:38:46 -0600791 Param("uint32_t", "startBinding"),
792 Param("uint32_t", "bindingCount"),
793 Param("const VkBuffer*", "pBuffers"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600794 Param("const VkDeviceSize*", "pOffsets")]),
795
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600796 Proto("void", "CmdDraw",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600797 [Param("VkCmdBuffer", "cmdBuffer"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600798 Param("uint32_t", "firstVertex"),
799 Param("uint32_t", "vertexCount"),
800 Param("uint32_t", "firstInstance"),
801 Param("uint32_t", "instanceCount")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800802
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600803 Proto("void", "CmdDrawIndexed",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600804 [Param("VkCmdBuffer", "cmdBuffer"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600805 Param("uint32_t", "firstIndex"),
806 Param("uint32_t", "indexCount"),
807 Param("int32_t", "vertexOffset"),
808 Param("uint32_t", "firstInstance"),
809 Param("uint32_t", "instanceCount")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800810
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600811 Proto("void", "CmdDrawIndirect",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600812 [Param("VkCmdBuffer", "cmdBuffer"),
813 Param("VkBuffer", "buffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600814 Param("VkDeviceSize", "offset"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600815 Param("uint32_t", "count"),
816 Param("uint32_t", "stride")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800817
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600818 Proto("void", "CmdDrawIndexedIndirect",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600819 [Param("VkCmdBuffer", "cmdBuffer"),
820 Param("VkBuffer", "buffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600821 Param("VkDeviceSize", "offset"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600822 Param("uint32_t", "count"),
823 Param("uint32_t", "stride")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800824
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600825 Proto("void", "CmdDispatch",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600826 [Param("VkCmdBuffer", "cmdBuffer"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600827 Param("uint32_t", "x"),
828 Param("uint32_t", "y"),
829 Param("uint32_t", "z")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800830
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600831 Proto("void", "CmdDispatchIndirect",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600832 [Param("VkCmdBuffer", "cmdBuffer"),
833 Param("VkBuffer", "buffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600834 Param("VkDeviceSize", "offset")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800835
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600836 Proto("void", "CmdCopyBuffer",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600837 [Param("VkCmdBuffer", "cmdBuffer"),
838 Param("VkBuffer", "srcBuffer"),
839 Param("VkBuffer", "destBuffer"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600840 Param("uint32_t", "regionCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600841 Param("const VkBufferCopy*", "pRegions")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800842
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600843 Proto("void", "CmdCopyImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600844 [Param("VkCmdBuffer", "cmdBuffer"),
845 Param("VkImage", "srcImage"),
846 Param("VkImageLayout", "srcImageLayout"),
847 Param("VkImage", "destImage"),
848 Param("VkImageLayout", "destImageLayout"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600849 Param("uint32_t", "regionCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600850 Param("const VkImageCopy*", "pRegions")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800851
Courtney Goeltzenleuchter89299fa2015-03-08 17:02:18 -0600852 Proto("void", "CmdBlitImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600853 [Param("VkCmdBuffer", "cmdBuffer"),
854 Param("VkImage", "srcImage"),
855 Param("VkImageLayout", "srcImageLayout"),
856 Param("VkImage", "destImage"),
857 Param("VkImageLayout", "destImageLayout"),
Courtney Goeltzenleuchter89299fa2015-03-08 17:02:18 -0600858 Param("uint32_t", "regionCount"),
Mark Lobodzinskiee5eef12015-05-22 14:43:25 -0500859 Param("const VkImageBlit*", "pRegions"),
860 Param("VkTexFilter", "filter")]),
Courtney Goeltzenleuchter89299fa2015-03-08 17:02:18 -0600861
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600862 Proto("void", "CmdCopyBufferToImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600863 [Param("VkCmdBuffer", "cmdBuffer"),
864 Param("VkBuffer", "srcBuffer"),
865 Param("VkImage", "destImage"),
866 Param("VkImageLayout", "destImageLayout"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600867 Param("uint32_t", "regionCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600868 Param("const VkBufferImageCopy*", "pRegions")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800869
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600870 Proto("void", "CmdCopyImageToBuffer",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600871 [Param("VkCmdBuffer", "cmdBuffer"),
872 Param("VkImage", "srcImage"),
873 Param("VkImageLayout", "srcImageLayout"),
874 Param("VkBuffer", "destBuffer"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600875 Param("uint32_t", "regionCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600876 Param("const VkBufferImageCopy*", "pRegions")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800877
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600878 Proto("void", "CmdUpdateBuffer",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600879 [Param("VkCmdBuffer", "cmdBuffer"),
880 Param("VkBuffer", "destBuffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600881 Param("VkDeviceSize", "destOffset"),
882 Param("VkDeviceSize", "dataSize"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600883 Param("const uint32_t*", "pData")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800884
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600885 Proto("void", "CmdFillBuffer",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600886 [Param("VkCmdBuffer", "cmdBuffer"),
887 Param("VkBuffer", "destBuffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600888 Param("VkDeviceSize", "destOffset"),
889 Param("VkDeviceSize", "fillSize"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600890 Param("uint32_t", "data")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800891
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600892 Proto("void", "CmdClearColorImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600893 [Param("VkCmdBuffer", "cmdBuffer"),
894 Param("VkImage", "image"),
895 Param("VkImageLayout", "imageLayout"),
Chris Forbesf0796e12015-06-24 14:34:53 +1200896 Param("const VkClearColorValue*", "pColor"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600897 Param("uint32_t", "rangeCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600898 Param("const VkImageSubresourceRange*", "pRanges")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800899
Chris Forbesd9be82b2015-06-22 17:21:59 +1200900 Proto("void", "CmdClearDepthStencilImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600901 [Param("VkCmdBuffer", "cmdBuffer"),
902 Param("VkImage", "image"),
903 Param("VkImageLayout", "imageLayout"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600904 Param("float", "depth"),
905 Param("uint32_t", "stencil"),
906 Param("uint32_t", "rangeCount"),
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600907 Param("const VkImageSubresourceRange*", "pRanges")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800908
Chris Forbesd9be82b2015-06-22 17:21:59 +1200909 Proto("void", "CmdClearColorAttachment",
910 [Param("VkCmdBuffer", "cmdBuffer"),
911 Param("uint32_t", "colorAttachment"),
912 Param("VkImageLayout", "imageLayout"),
Chris Forbesf0796e12015-06-24 14:34:53 +1200913 Param("const VkClearColorValue*", "pColor"),
Chris Forbesd9be82b2015-06-22 17:21:59 +1200914 Param("uint32_t", "rectCount"),
915 Param("const VkRect3D*", "pRects")]),
916
917 Proto("void", "CmdClearDepthStencilAttachment",
918 [Param("VkCmdBuffer", "cmdBuffer"),
919 Param("VkImageAspectFlags", "imageAspectMask"),
920 Param("VkImageLayout", "imageLayout"),
921 Param("float", "depth"),
922 Param("uint32_t", "stencil"),
923 Param("uint32_t", "rectCount"),
924 Param("const VkRect3D*", "pRects")]),
925
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600926 Proto("void", "CmdResolveImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600927 [Param("VkCmdBuffer", "cmdBuffer"),
928 Param("VkImage", "srcImage"),
929 Param("VkImageLayout", "srcImageLayout"),
930 Param("VkImage", "destImage"),
931 Param("VkImageLayout", "destImageLayout"),
Tony Barbour6865d4a2015-04-13 15:02:52 -0600932 Param("uint32_t", "regionCount"),
933 Param("const VkImageResolve*", "pRegions")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800934
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600935 Proto("void", "CmdSetEvent",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600936 [Param("VkCmdBuffer", "cmdBuffer"),
937 Param("VkEvent", "event"),
Tony Barbour0b2cfb22015-06-29 16:20:35 -0600938 Param("VkPipelineStageFlags", "stageMask")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800939
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600940 Proto("void", "CmdResetEvent",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600941 [Param("VkCmdBuffer", "cmdBuffer"),
942 Param("VkEvent", "event"),
Tony Barbour0b2cfb22015-06-29 16:20:35 -0600943 Param("VkPipelineStageFlags", "stageMask")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800944
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600945 Proto("void", "CmdWaitEvents",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600946 [Param("VkCmdBuffer", "cmdBuffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600947 Param("uint32_t", "eventCount"),
948 Param("const VkEvent*", "pEvents"),
Jon Ashburnea65e492015-08-06 17:27:49 -0600949 Param("VkPipelineStageFlags", "srcStageMask"),
Tony Barbour0b2cfb22015-06-29 16:20:35 -0600950 Param("VkPipelineStageFlags", "destStageMask"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600951 Param("uint32_t", "memBarrierCount"),
Courtney Goeltzenleuchterdbd20322015-07-12 12:58:58 -0600952 Param("const void* const*", "ppMemBarriers")]),
Mike Stroyanfb80d5f2014-12-04 11:08:39 +0000953
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600954 Proto("void", "CmdPipelineBarrier",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600955 [Param("VkCmdBuffer", "cmdBuffer"),
Courtney Goeltzenleuchterceebbb12015-07-12 13:07:46 -0600956 Param("VkPipelineStageFlags", "srcStageMask"),
Tony Barbour0b2cfb22015-06-29 16:20:35 -0600957 Param("VkPipelineStageFlags", "destStageMask"),
Courtney Goeltzenleuchtercd2a0992015-07-09 11:44:38 -0600958 Param("VkBool32", "byRegion"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600959 Param("uint32_t", "memBarrierCount"),
Courtney Goeltzenleuchterceebbb12015-07-12 13:07:46 -0600960 Param("const void* const*", "ppMemBarriers")]),
Mike Stroyanfb80d5f2014-12-04 11:08:39 +0000961
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600962 Proto("void", "CmdBeginQuery",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600963 [Param("VkCmdBuffer", "cmdBuffer"),
964 Param("VkQueryPool", "queryPool"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600965 Param("uint32_t", "slot"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600966 Param("VkQueryControlFlags", "flags")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800967
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600968 Proto("void", "CmdEndQuery",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600969 [Param("VkCmdBuffer", "cmdBuffer"),
970 Param("VkQueryPool", "queryPool"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600971 Param("uint32_t", "slot")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800972
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600973 Proto("void", "CmdResetQueryPool",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600974 [Param("VkCmdBuffer", "cmdBuffer"),
975 Param("VkQueryPool", "queryPool"),
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600976 Param("uint32_t", "startQuery"),
977 Param("uint32_t", "queryCount")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800978
Mark Lobodzinski17caf572015-01-29 08:55:56 -0600979 Proto("void", "CmdWriteTimestamp",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600980 [Param("VkCmdBuffer", "cmdBuffer"),
981 Param("VkTimestampType", "timestampType"),
982 Param("VkBuffer", "destBuffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600983 Param("VkDeviceSize", "destOffset")]),
Chia-I Wufb2559d2014-08-01 11:19:52 +0800984
Courtney Goeltzenleuchter1dbc8e22015-04-15 18:21:13 -0600985 Proto("void", "CmdCopyQueryPoolResults",
986 [Param("VkCmdBuffer", "cmdBuffer"),
987 Param("VkQueryPool", "queryPool"),
988 Param("uint32_t", "startQuery"),
989 Param("uint32_t", "queryCount"),
990 Param("VkBuffer", "destBuffer"),
Tony Barbourd1c35722015-04-16 15:59:00 -0600991 Param("VkDeviceSize", "destOffset"),
992 Param("VkDeviceSize", "destStride"),
Tobin Ehlisa30e7e52015-07-06 14:02:36 -0600993 Param("VkQueryResultFlags", "flags")]),
Courtney Goeltzenleuchter1dbc8e22015-04-15 18:21:13 -0600994
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -0600995 Proto("VkResult", "CreateFramebuffer",
996 [Param("VkDevice", "device"),
997 Param("const VkFramebufferCreateInfo*", "pCreateInfo"),
998 Param("VkFramebuffer*", "pFramebuffer")]),
Jeremy Hayesd65ae082015-01-14 16:17:08 -0700999
Mark Lobodzinski2141f652015-09-07 13:59:43 -06001000 Proto("void", "DestroyFramebuffer",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06001001 [Param("VkDevice", "device"),
1002 Param("VkFramebuffer", "framebuffer")]),
1003
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001004 Proto("VkResult", "CreateRenderPass",
1005 [Param("VkDevice", "device"),
1006 Param("const VkRenderPassCreateInfo*", "pCreateInfo"),
1007 Param("VkRenderPass*", "pRenderPass")]),
Jeremy Hayesd65ae082015-01-14 16:17:08 -07001008
Mark Lobodzinski2141f652015-09-07 13:59:43 -06001009 Proto("void", "DestroyRenderPass",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06001010 [Param("VkDevice", "device"),
1011 Param("VkRenderPass", "renderPass")]),
1012
Courtney Goeltzenleuchtera97e2ea2015-07-27 13:47:08 -06001013 Proto("VkResult", "GetRenderAreaGranularity",
1014 [Param("VkDevice", "device"),
1015 Param("VkRenderPass", "renderPass"),
1016 Param("VkExtent2D*", "pGranularity")]),
1017
Jon Ashburne13f1982015-02-02 09:58:11 -07001018 Proto("void", "CmdBeginRenderPass",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001019 [Param("VkCmdBuffer", "cmdBuffer"),
Chia-I Wu08accc62015-07-07 11:50:03 +08001020 Param("const VkRenderPassBeginInfo*", "pRenderPassBegin"),
1021 Param("VkRenderPassContents", "contents")]),
1022
1023 Proto("void", "CmdNextSubpass",
1024 [Param("VkCmdBuffer", "cmdBuffer"),
1025 Param("VkRenderPassContents", "contents")]),
Jon Ashburne13f1982015-02-02 09:58:11 -07001026
Courtney Goeltzenleuchterab7db3b2015-07-27 14:04:01 -06001027 Proto("void", "CmdPushConstants",
1028 [Param("VkCmdBuffer", "cmdBuffer"),
1029 Param("VkPipelineLayout", "layout"),
1030 Param("VkShaderStageFlags", "stageFlags"),
1031 Param("uint32_t", "start"),
1032 Param("uint32_t", "length"),
1033 Param("const void*", "values")]),
1034
Jon Ashburne13f1982015-02-02 09:58:11 -07001035 Proto("void", "CmdEndRenderPass",
Chia-I Wu0b50a1c2015-06-26 15:34:39 +08001036 [Param("VkCmdBuffer", "cmdBuffer")]),
1037
1038 Proto("void", "CmdExecuteCommands",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001039 [Param("VkCmdBuffer", "cmdBuffer"),
Chia-I Wu0b50a1c2015-06-26 15:34:39 +08001040 Param("uint32_t", "cmdBuffersCount"),
1041 Param("const VkCmdBuffer*", "pCmdBuffers")]),
Chia-I Wue442dc32015-01-01 09:31:15 +08001042 ],
Chia-I Wufb2559d2014-08-01 11:19:52 +08001043)
1044
Ian Elliott7e40db92015-08-21 15:09:33 -06001045ext_khr_swapchain = Extension(
1046 name="VK_EXT_KHR_swapchain",
1047 headers=["vk_ext_khr_swapchain.h"],
Jon Ashburnea65e492015-08-06 17:27:49 -06001048 objects=[],
Chia-I Wue442dc32015-01-01 09:31:15 +08001049 protos=[
Ian Elliott7e40db92015-08-21 15:09:33 -06001050 Proto("VkResult", "GetPhysicalDeviceSurfaceSupportKHR",
Ian Elliott1064fe32015-07-06 14:31:32 -06001051 [Param("VkPhysicalDevice", "physicalDevice"),
Jon Ashburnea65e492015-08-06 17:27:49 -06001052 Param("uint32_t", "queueFamilyIndex"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001053 Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"),
Ian Elliott1064fe32015-07-06 14:31:32 -06001054 Param("VkBool32*", "pSupported")]),
1055 ],
1056)
1057
Ian Elliott7e40db92015-08-21 15:09:33 -06001058ext_khr_device_swapchain = Extension(
1059 name="VK_EXT_KHR_device_swapchain",
1060 headers=["vk_ext_khr_device_swapchain.h"],
1061 objects=["VkSwapchainKHR"],
Ian Elliott1064fe32015-07-06 14:31:32 -06001062 protos=[
Ian Elliott7e40db92015-08-21 15:09:33 -06001063 Proto("VkResult", "GetSurfacePropertiesKHR",
Ian Elliott1064fe32015-07-06 14:31:32 -06001064 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001065 Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"),
1066 Param("VkSurfacePropertiesKHR*", "pSurfaceProperties")]),
Ian Elliottfe14cda2015-08-06 17:05:06 -06001067
Ian Elliott7e40db92015-08-21 15:09:33 -06001068 Proto("VkResult", "GetSurfaceFormatsKHR",
Ian Elliottfe14cda2015-08-06 17:05:06 -06001069 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001070 Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"),
Ian Elliottfe14cda2015-08-06 17:05:06 -06001071 Param("uint32_t*", "pCount"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001072 Param("VkSurfaceFormatKHR*", "pSurfaceFormats")]),
Ian Elliottfe14cda2015-08-06 17:05:06 -06001073
Ian Elliott7e40db92015-08-21 15:09:33 -06001074 Proto("VkResult", "GetSurfacePresentModesKHR",
Ian Elliottfe14cda2015-08-06 17:05:06 -06001075 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001076 Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"),
Ian Elliottfe14cda2015-08-06 17:05:06 -06001077 Param("uint32_t*", "pCount"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001078 Param("VkPresentModeKHR*", "pPresentModes")]),
Ian Elliott1064fe32015-07-06 14:31:32 -06001079
Ian Elliott7e40db92015-08-21 15:09:33 -06001080 Proto("VkResult", "CreateSwapchainKHR",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001081 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001082 Param("const VkSwapchainCreateInfoKHR*", "pCreateInfo"),
1083 Param("VkSwapchainKHR*", "pSwapchain")]),
Chia-I Wu6dee8b82014-09-23 10:37:23 +08001084
Ian Elliott7e40db92015-08-21 15:09:33 -06001085 Proto("VkResult", "DestroySwapchainKHR",
Ian Elliott1064fe32015-07-06 14:31:32 -06001086 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001087 Param("VkSwapchainKHR", "swapchain")]),
Chia-I Wu6dee8b82014-09-23 10:37:23 +08001088
Ian Elliott7e40db92015-08-21 15:09:33 -06001089 Proto("VkResult", "GetSwapchainImagesKHR",
Ian Elliott1064fe32015-07-06 14:31:32 -06001090 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001091 Param("VkSwapchainKHR", "swapchain"),
Ian Elliottfe14cda2015-08-06 17:05:06 -06001092 Param("uint32_t*", "pCount"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001093 Param("VkImage*", "pSwapchainImages")]),
Chia-I Wuf8693382015-04-16 22:02:10 +08001094
Ian Elliott7e40db92015-08-21 15:09:33 -06001095 Proto("VkResult", "AcquireNextImageKHR",
Ian Elliott1064fe32015-07-06 14:31:32 -06001096 [Param("VkDevice", "device"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001097 Param("VkSwapchainKHR", "swapchain"),
Ian Elliott1064fe32015-07-06 14:31:32 -06001098 Param("uint64_t", "timeout"),
1099 Param("VkSemaphore", "semaphore"),
1100 Param("uint32_t*", "pImageIndex")]),
1101
Ian Elliott7e40db92015-08-21 15:09:33 -06001102 Proto("VkResult", "QueuePresentKHR",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001103 [Param("VkQueue", "queue"),
Ian Elliott7e40db92015-08-21 15:09:33 -06001104 Param("VkPresentInfoKHR*", "pPresentInfo")]),
Chia-I Wue442dc32015-01-01 09:31:15 +08001105 ],
Chia-I Wu6dee8b82014-09-23 10:37:23 +08001106)
Jon Ashburnea65e492015-08-06 17:27:49 -06001107debug_report_lunarg = Extension(
1108 name="VK_DEBUG_REPORT_LunarG",
1109 headers=["vk_debug_report_lunarg.h"],
1110 objects=[
1111 "VkDbgMsgCallback",
1112 ],
1113 protos=[
1114 Proto("VkResult", "DbgCreateMsgCallback",
1115 [Param("VkInstance", "instance"),
1116 Param("VkFlags", "msgFlags"),
1117 Param("const PFN_vkDbgMsgCallback", "pfnMsgCallback"),
1118 Param("void*", "pUserData"),
1119 Param("VkDbgMsgCallback*", "pMsgCallback")]),
1120
1121 Proto("VkResult", "DbgDestroyMsgCallback",
1122 [Param("VkInstance", "instance"),
1123 Param("VkDbgMsgCallback", "msgCallback")]),
1124 ],
1125)
Tobin Ehlisd1aa3b22015-08-27 17:41:42 -06001126debug_marker_lunarg = Extension(
1127 name="VK_DEBUG_MARKER_LunarG",
1128 headers=["vk_debug_marker_lunarg.h"],
1129 objects=[],
1130 protos=[
1131 Proto("void", "CmdDbgMarkerBegin",
1132 [Param("VkCmdBuffer", "cmdBuffer"),
1133 Param("const char*", "pMarker")]),
Chia-I Wu6dee8b82014-09-23 10:37:23 +08001134
Tobin Ehlisd1aa3b22015-08-27 17:41:42 -06001135 Proto("void", "CmdDbgMarkerEnd",
1136 [Param("VkCmdBuffer", "cmdBuffer")]),
1137
1138 Proto("VkResult", "DbgSetObjectTag",
1139 [Param("VkDevice", "device"),
1140 Param("VkDbgObjectType", "objType"),
1141 Param("uint64_t", "object"),
1142 Param("size_t", "tagSize"),
1143 Param("const void*", "pTag")]),
1144
1145 Proto("VkResult", "DbgSetObjectName",
1146 [Param("VkDevice", "device"),
1147 Param("VkDbgObjectType", "objType"),
1148 Param("uint64_t", "object"),
1149 Param("size_t", "nameSize"),
1150 Param("const char*", "pName")]),
1151 ],
1152)
Ian Elliott7e40db92015-08-21 15:09:33 -06001153extensions = [core, ext_khr_swapchain, ext_khr_device_swapchain]
1154extensions_all = [core, ext_khr_swapchain, ext_khr_device_swapchain, debug_report_lunarg, debug_marker_lunarg]
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001155object_dispatch_list = [
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001156 "VkInstance",
Tony Barbourd1c35722015-04-16 15:59:00 -06001157 "VkPhysicalDevice",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001158 "VkDevice",
1159 "VkQueue",
1160 "VkCmdBuffer",
Tobin Ehlis7e65d752015-01-15 17:51:52 -07001161]
1162
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001163object_non_dispatch_list = [
Cody Northrope62183e2015-07-09 18:08:05 -06001164 "VkCmdPool",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001165 "VkFence",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001166 "VkDeviceMemory",
1167 "VkBuffer",
1168 "VkImage",
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001169 "VkSemaphore",
1170 "VkEvent",
1171 "VkQueryPool",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001172 "VkBufferView",
1173 "VkImageView",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001174 "VkShaderModule",
1175 "VkShader",
1176 "VkPipelineCache",
1177 "VkPipelineLayout",
1178 "VkPipeline",
1179 "VkDescriptorSetLayout",
1180 "VkSampler",
1181 "VkDescriptorPool",
1182 "VkDescriptorSet",
Tony Barbour1d2cd3f2015-07-03 10:33:54 -06001183 "VkDynamicViewportState",
Cody Northrop271ba752015-08-26 10:01:32 -06001184 "VkDynamicLineWidthState",
1185 "VkDynamicDepthBiasState",
1186 "VkDynamicBlendState",
1187 "VkDynamicDepthBoundsState",
Cody Northrop82485a82015-08-18 15:21:16 -06001188 "VkDynamicStencilState",
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001189 "VkRenderPass",
1190 "VkFramebuffer",
Ian Elliott7e40db92015-08-21 15:09:33 -06001191 "VkSwapchainKHR",
Jon Ashburnea65e492015-08-06 17:27:49 -06001192 "VkDbgMsgCallback",
Tobin Ehlis7e65d752015-01-15 17:51:52 -07001193]
1194
Tobin Ehlisa30e7e52015-07-06 14:02:36 -06001195object_type_list = object_dispatch_list + object_non_dispatch_list
Tobin Ehlis7e65d752015-01-15 17:51:52 -07001196
Chia-I Wuc4f24e82015-01-01 08:46:31 +08001197headers = []
Chia-I Wue86d8ab2015-01-04 14:46:22 +08001198objects = []
Chia-I Wuc4f24e82015-01-01 08:46:31 +08001199protos = []
1200for ext in extensions:
1201 headers.extend(ext.headers)
Chia-I Wue86d8ab2015-01-04 14:46:22 +08001202 objects.extend(ext.objects)
Chia-I Wuc4f24e82015-01-01 08:46:31 +08001203 protos.extend(ext.protos)
Chia-I Wu6dee8b82014-09-23 10:37:23 +08001204
Chia-I Wu9a4ceb12015-01-01 14:45:58 +08001205proto_names = [proto.name for proto in protos]
Chia-I Wu900a2572014-08-01 14:44:16 +08001206
Courtney Goeltzenleuchterf53c3cb2015-04-14 14:55:44 -06001207def parse_vk_h(filename):
Chia-I Wu509a4122015-01-04 14:08:46 +08001208 # read object and protoype typedefs
1209 object_lines = []
1210 proto_lines = []
1211 with open(filename, "r") as fp:
1212 for line in fp:
1213 line = line.strip()
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -06001214 if line.startswith("VK_DEFINE"):
Chia-I Wu509a4122015-01-04 14:08:46 +08001215 begin = line.find("(") + 1
1216 end = line.find(",")
1217 # extract the object type
1218 object_lines.append(line[begin:end])
1219 if line.startswith("typedef") and line.endswith(");"):
1220 # drop leading "typedef " and trailing ");"
1221 proto_lines.append(line[8:-2])
1222
1223 # parse proto_lines to protos
1224 protos = []
1225 for line in proto_lines:
Courtney Goeltzenleuchterfb4efc62015-04-10 08:34:15 -06001226 first, rest = line.split(" (VKAPI *PFN_vk")
1227 second, third = rest.split(")(")
Chia-I Wu509a4122015-01-04 14:08:46 +08001228
1229 # get the return type, no space before "*"
1230 proto_ret = "*".join([t.rstrip() for t in first.split("*")])
1231
1232 # get the name
1233 proto_name = second.strip()
1234
1235 # get the list of params
1236 param_strs = third.split(", ")
1237 params = []
1238 for s in param_strs:
1239 ty, name = s.rsplit(" ", 1)
1240
1241 # no space before "*"
1242 ty = "*".join([t.rstrip() for t in ty.split("*")])
1243 # attach [] to ty
1244 idx = name.rfind("[")
1245 if idx >= 0:
1246 ty += name[idx:]
1247 name = name[:idx]
1248
1249 params.append(Param(ty, name))
1250
1251 protos.append(Proto(proto_ret, proto_name, params))
1252
1253 # make them an extension and print
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -06001254 ext = Extension("VK_CORE",
Courtney Goeltzenleuchterf579fa62015-06-10 17:39:03 -06001255 headers=["vulkan.h", "vk_debug_report_lunarg.h"],
Chia-I Wu509a4122015-01-04 14:08:46 +08001256 objects=object_lines,
1257 protos=protos)
1258 print("core =", str(ext))
1259
1260 print("")
Jon Ashburnbacb0f52015-04-06 10:58:22 -06001261 print("typedef struct VkLayerDispatchTable_")
Chia-I Wu509a4122015-01-04 14:08:46 +08001262 print("{")
1263 for proto in ext.protos:
Courtney Goeltzenleuchterd8e229c2015-04-08 15:36:08 -06001264 print(" vk%sType %s;" % (proto.name, proto.name))
Jon Ashburnbacb0f52015-04-06 10:58:22 -06001265 print("} VkLayerDispatchTable;")
Chia-I Wu509a4122015-01-04 14:08:46 +08001266
1267if __name__ == "__main__":
Courtney Goeltzenleuchterf53c3cb2015-04-14 14:55:44 -06001268 parse_vk_h("include/vulkan.h")