Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1 | """VK API description""" |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 2 | |
Courtney Goeltzenleuchter | fcbe16f | 2015-10-29 13:50:34 -0600 | [diff] [blame] | 3 | # Copyright (C) 2015 Valve Corporation |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 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. |
Courtney Goeltzenleuchter | 0555952 | 2015-10-30 11:14:30 -0600 | [diff] [blame] | 22 | # |
| 23 | # Author: Cody Northrop <cody@lunarg.com> |
| 24 | # Author: Courtney Goeltzenleuchter <courtney@LunarG.com> |
| 25 | # Author: Tobin Ehlis <tobin@lunarg.com> |
| 26 | # Author: Tony Barbour <tony@LunarG.com> |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 27 | |
| 28 | class Param(object): |
| 29 | """A function parameter.""" |
| 30 | |
| 31 | def __init__(self, ty, name): |
| 32 | self.ty = ty |
| 33 | self.name = name |
| 34 | |
| 35 | def c(self): |
| 36 | """Return the parameter in C.""" |
| 37 | idx = self.ty.find("[") |
| 38 | |
| 39 | # arrays have a different syntax |
| 40 | if idx >= 0: |
| 41 | return "%s %s%s" % (self.ty[:idx], self.name, self.ty[idx:]) |
| 42 | else: |
| 43 | return "%s %s" % (self.ty, self.name) |
| 44 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 45 | def indirection_level(self): |
| 46 | """Return the level of indirection.""" |
| 47 | return self.ty.count("*") + self.ty.count("[") |
| 48 | |
| 49 | def dereferenced_type(self, level=0): |
| 50 | """Return the type after dereferencing.""" |
| 51 | if not level: |
| 52 | level = self.indirection_level() |
| 53 | |
| 54 | deref = self.ty if level else "" |
| 55 | while level > 0: |
| 56 | idx = deref.rfind("[") |
| 57 | if idx < 0: |
| 58 | idx = deref.rfind("*") |
| 59 | if idx < 0: |
| 60 | deref = "" |
| 61 | break |
| 62 | deref = deref[:idx] |
| 63 | level -= 1; |
| 64 | |
| 65 | return deref.rstrip() |
| 66 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 67 | def __repr__(self): |
| 68 | return "Param(\"%s\", \"%s\")" % (self.ty, self.name) |
| 69 | |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 70 | class Proto(object): |
| 71 | """A function prototype.""" |
| 72 | |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 73 | def __init__(self, ret, name, params=[]): |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 74 | # the proto has only a param |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 75 | if not isinstance(params, list): |
| 76 | params = [params] |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 77 | |
| 78 | self.ret = ret |
| 79 | self.name = name |
| 80 | self.params = params |
| 81 | |
| 82 | def c_params(self, need_type=True, need_name=True): |
| 83 | """Return the parameter list in C.""" |
| 84 | if self.params and (need_type or need_name): |
| 85 | if need_type and need_name: |
| 86 | return ", ".join([param.c() for param in self.params]) |
| 87 | elif need_type: |
| 88 | return ", ".join([param.ty for param in self.params]) |
| 89 | else: |
| 90 | return ", ".join([param.name for param in self.params]) |
| 91 | else: |
| 92 | return "void" if need_type else "" |
| 93 | |
| 94 | def c_decl(self, name, attr="", typed=False, need_param_names=True): |
| 95 | """Return a named declaration in C.""" |
| 96 | format_vals = (self.ret, |
| 97 | attr + " " if attr else "", |
| 98 | name, |
| 99 | self.c_params(need_name=need_param_names)) |
| 100 | |
| 101 | if typed: |
| 102 | return "%s (%s*%s)(%s)" % format_vals |
| 103 | else: |
| 104 | return "%s %s%s(%s)" % format_vals |
| 105 | |
Chia-I Wu | af3b555 | 2015-01-04 12:00:01 +0800 | [diff] [blame] | 106 | def c_pretty_decl(self, name, attr=""): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 107 | """Return a named declaration in C, with vulkan.h formatting.""" |
Chia-I Wu | af3b555 | 2015-01-04 12:00:01 +0800 | [diff] [blame] | 108 | plist = [] |
| 109 | for param in self.params: |
| 110 | idx = param.ty.find("[") |
| 111 | if idx < 0: |
| 112 | idx = len(param.ty) |
| 113 | |
| 114 | pad = 44 - idx |
| 115 | if pad <= 0: |
| 116 | pad = 1 |
| 117 | |
| 118 | plist.append(" %s%s%s%s" % (param.ty[:idx], |
| 119 | " " * pad, param.name, param.ty[idx:])) |
| 120 | |
| 121 | return "%s %s%s(\n%s)" % (self.ret, |
| 122 | attr + " " if attr else "", |
| 123 | name, |
| 124 | ",\n".join(plist)) |
| 125 | |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 126 | def c_typedef(self, suffix="", attr=""): |
| 127 | """Return the typedef for the prototype in C.""" |
| 128 | return self.c_decl(self.name + suffix, attr=attr, typed=True) |
| 129 | |
| 130 | def c_func(self, prefix="", attr=""): |
| 131 | """Return the prototype in C.""" |
| 132 | return self.c_decl(prefix + self.name, attr=attr, typed=False) |
| 133 | |
| 134 | def c_call(self): |
| 135 | """Return a call to the prototype in C.""" |
| 136 | return "%s(%s)" % (self.name, self.c_params(need_type=False)) |
| 137 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 138 | def object_in_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 139 | """Return the params that are simple VK objects and are inputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 140 | return [param for param in self.params if param.ty in objects] |
| 141 | |
| 142 | def object_out_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 143 | """Return the params that are simple VK objects and are outputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 144 | return [param for param in self.params |
| 145 | if param.dereferenced_type() in objects] |
| 146 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 147 | def __repr__(self): |
| 148 | param_strs = [] |
| 149 | for param in self.params: |
| 150 | param_strs.append(str(param)) |
| 151 | param_str = " [%s]" % (",\n ".join(param_strs)) |
| 152 | |
| 153 | return "Proto(\"%s\", \"%s\",\n%s)" % \ |
| 154 | (self.ret, self.name, param_str) |
| 155 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 156 | class Extension(object): |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 157 | def __init__(self, name, headers, objects, protos): |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 158 | self.name = name |
| 159 | self.headers = headers |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 160 | self.objects = objects |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 161 | self.protos = protos |
| 162 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 163 | def __repr__(self): |
| 164 | lines = [] |
| 165 | lines.append("Extension(") |
| 166 | lines.append(" name=\"%s\"," % self.name) |
| 167 | lines.append(" headers=[\"%s\"]," % |
| 168 | "\", \"".join(self.headers)) |
| 169 | |
| 170 | lines.append(" objects=[") |
| 171 | for obj in self.objects: |
| 172 | lines.append(" \"%s\"," % obj) |
| 173 | lines.append(" ],") |
| 174 | |
| 175 | lines.append(" protos=[") |
| 176 | for proto in self.protos: |
| 177 | param_lines = str(proto).splitlines() |
| 178 | param_lines[-1] += ",\n" if proto != self.protos[-1] else "," |
| 179 | for p in param_lines: |
| 180 | lines.append(" " + p) |
| 181 | lines.append(" ],") |
| 182 | lines.append(")") |
| 183 | |
| 184 | return "\n".join(lines) |
| 185 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 186 | # VK core API |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 187 | core = Extension( |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 188 | name="VK_CORE", |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame^] | 189 | headers=["vulkan/vulkan.h", "vulkan/vk_debug_report_lunarg.h"], |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 190 | objects=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 191 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 192 | "VkPhysicalDevice", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 193 | "VkDevice", |
| 194 | "VkQueue", |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 195 | "VkSemaphore", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 196 | "VkCommandBuffer", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 197 | "VkFence", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 198 | "VkDeviceMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 199 | "VkBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 200 | "VkImage", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 201 | "VkEvent", |
| 202 | "VkQueryPool", |
| 203 | "VkBufferView", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 204 | "VkImageView", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 205 | "VkShaderModule", |
Tony Barbour | a05dbaa | 2015-07-09 17:31:46 -0600 | [diff] [blame] | 206 | "VkPipelineCache", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 207 | "VkPipelineLayout", |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 208 | "VkRenderPass", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 209 | "VkPipeline", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 210 | "VkDescriptorSetLayout", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 211 | "VkSampler", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 212 | "VkDescriptorPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 213 | "VkDescriptorSet", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 214 | "VkFramebuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 215 | "VkCommandPool", |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 216 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 217 | protos=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 218 | Proto("VkResult", "CreateInstance", |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 219 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 220 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 221 | Param("VkInstance*", "pInstance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 222 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 223 | Proto("void", "DestroyInstance", |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 224 | [Param("VkInstance", "instance"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 225 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 226 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 227 | Proto("VkResult", "EnumeratePhysicalDevices", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 228 | [Param("VkInstance", "instance"), |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 229 | Param("uint32_t*", "pPhysicalDeviceCount"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 230 | Param("VkPhysicalDevice*", "pPhysicalDevices")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 231 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 232 | Proto("void", "GetPhysicalDeviceFeatures", |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 233 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 234 | Param("VkPhysicalDeviceFeatures*", "pFeatures")]), |
| 235 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 236 | Proto("void", "GetPhysicalDeviceFormatProperties", |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 237 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 238 | Param("VkFormat", "format"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 239 | Param("VkFormatProperties*", "pFormatProperties")]), |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 240 | |
Chia-I Wu | 1724104 | 2015-10-31 00:31:16 +0800 | [diff] [blame] | 241 | Proto("VkResult", "GetPhysicalDeviceImageFormatProperties", |
Jon Ashburn | 42540ef | 2015-07-23 18:48:20 -0600 | [diff] [blame] | 242 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 243 | Param("VkFormat", "format"), |
| 244 | Param("VkImageType", "type"), |
| 245 | Param("VkImageTiling", "tiling"), |
| 246 | Param("VkImageUsageFlags", "usage"), |
Courtney Goeltzenleuchter | a22097a | 2015-09-10 13:44:12 -0600 | [diff] [blame] | 247 | Param("VkImageCreateFlags", "flags"), |
Jon Ashburn | 42540ef | 2015-07-23 18:48:20 -0600 | [diff] [blame] | 248 | Param("VkImageFormatProperties*", "pImageFormatProperties")]), |
| 249 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 250 | Proto("void", "GetPhysicalDeviceProperties", |
| 251 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 252 | Param("VkPhysicalDeviceProperties*", "pProperties")]), |
| 253 | |
| 254 | Proto("void", "GetPhysicalDeviceQueueFamilyProperties", |
| 255 | [Param("VkPhysicalDevice", "physicalDevice"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 256 | Param("uint32_t*", "pQueueFamilyPropertyCount"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 257 | Param("VkQueueFamilyProperties*", "pQueueFamilyProperties")]), |
| 258 | |
| 259 | Proto("void", "GetPhysicalDeviceMemoryProperties", |
| 260 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 261 | Param("VkPhysicalDeviceMemoryProperties*", "pMemoryProperties")]), |
| 262 | |
Courtney Goeltzenleuchter | 2d3ba63 | 2015-07-12 14:35:22 -0600 | [diff] [blame] | 263 | Proto("PFN_vkVoidFunction", "GetInstanceProcAddr", |
Jon Ashburn | b0fbe91 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 264 | [Param("VkInstance", "instance"), |
| 265 | Param("const char*", "pName")]), |
| 266 | |
Courtney Goeltzenleuchter | 2d3ba63 | 2015-07-12 14:35:22 -0600 | [diff] [blame] | 267 | Proto("PFN_vkVoidFunction", "GetDeviceProcAddr", |
Jon Ashburn | 8d1b0b5 | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 268 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 269 | Param("const char*", "pName")]), |
Chia-I Wu | f2ffc52 | 2015-01-04 14:51:06 +0800 | [diff] [blame] | 270 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 271 | Proto("VkResult", "CreateDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 272 | [Param("VkPhysicalDevice", "physicalDevice"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 273 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 274 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 275 | Param("VkDevice*", "pDevice")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 276 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 277 | Proto("void", "DestroyDevice", |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 278 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 279 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 280 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 281 | Proto("VkResult", "EnumerateInstanceExtensionProperties", |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 282 | [Param("const char*", "pLayerName"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 283 | Param("uint32_t*", "pPropertyCount"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 284 | Param("VkExtensionProperties*", "pProperties")]), |
| 285 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 286 | Proto("VkResult", "EnumerateDeviceExtensionProperties", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 287 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 288 | Param("const char*", "pLayerName"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 289 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 290 | Param("VkExtensionProperties*", "pProperties")]), |
| 291 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 292 | Proto("VkResult", "EnumerateInstanceLayerProperties", |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 293 | [Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 294 | Param("VkLayerProperties*", "pProperties")]), |
| 295 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 296 | Proto("VkResult", "EnumerateDeviceLayerProperties", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 297 | [Param("VkPhysicalDevice", "physicalDevice"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 298 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 299 | Param("VkLayerProperties*", "pProperties")]), |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 300 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 301 | Proto("void", "GetDeviceQueue", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 302 | [Param("VkDevice", "device"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 303 | Param("uint32_t", "queueFamilyIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 304 | Param("uint32_t", "queueIndex"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 305 | Param("VkQueue*", "pQueue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 306 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 307 | Proto("VkResult", "QueueSubmit", |
| 308 | [Param("VkQueue", "queue"), |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 309 | Param("uint32_t", "submitCount"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 310 | Param("const VkSubmitInfo*", "pSubmits"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 311 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 312 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 313 | Proto("VkResult", "QueueWaitIdle", |
| 314 | [Param("VkQueue", "queue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 315 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 316 | Proto("VkResult", "DeviceWaitIdle", |
| 317 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 318 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 319 | Proto("VkResult", "AllocateMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 320 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 321 | Param("const VkMemoryAllocateInfo*", "pAllocateInfo"), |
| 322 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 323 | Param("VkDeviceMemory*", "pMemory")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 324 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 325 | Proto("void", "FreeMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 326 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 327 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 328 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 329 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 330 | Proto("VkResult", "MapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 331 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 332 | Param("VkDeviceMemory", "memory"), |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 333 | Param("VkDeviceSize", "offset"), |
| 334 | Param("VkDeviceSize", "size"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 335 | Param("VkMemoryMapFlags", "flags"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 336 | Param("void**", "ppData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 337 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 338 | Proto("void", "UnmapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 339 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 340 | Param("VkDeviceMemory", "memory")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 341 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 342 | Proto("VkResult", "FlushMappedMemoryRanges", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 343 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 344 | Param("uint32_t", "memoryRangeCount"), |
| 345 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 346 | |
| 347 | Proto("VkResult", "InvalidateMappedMemoryRanges", |
| 348 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 349 | Param("uint32_t", "memoryRangeCount"), |
| 350 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 351 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 352 | Proto("void", "GetDeviceMemoryCommitment", |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 353 | [Param("VkDevice", "device"), |
| 354 | Param("VkDeviceMemory", "memory"), |
| 355 | Param("VkDeviceSize*", "pCommittedMemoryInBytes")]), |
| 356 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 357 | Proto("VkResult", "BindBufferMemory", |
| 358 | [Param("VkDevice", "device"), |
| 359 | Param("VkBuffer", "buffer"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 360 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 361 | Param("VkDeviceSize", "memoryOffset")]), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 362 | |
| 363 | Proto("VkResult", "BindImageMemory", |
| 364 | [Param("VkDevice", "device"), |
| 365 | Param("VkImage", "image"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 366 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 367 | Param("VkDeviceSize", "memoryOffset")]), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 368 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 369 | Proto("void", "GetBufferMemoryRequirements", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 370 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 371 | Param("VkBuffer", "buffer"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 372 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 373 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 374 | Proto("void", "GetImageMemoryRequirements", |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 375 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 376 | Param("VkImage", "image"), |
| 377 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
| 378 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 379 | Proto("void", "GetImageSparseMemoryRequirements", |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 380 | [Param("VkDevice", "device"), |
| 381 | Param("VkImage", "image"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 382 | Param("uint32_t*", "pSparseMemoryRequirementCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 383 | Param("VkSparseImageMemoryRequirements*", "pSparseMemoryRequirements")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 384 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 385 | Proto("void", "GetPhysicalDeviceSparseImageFormatProperties", |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 386 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 387 | Param("VkFormat", "format"), |
| 388 | Param("VkImageType", "type"), |
Chia-I Wu | 5c17c96 | 2015-10-31 00:31:16 +0800 | [diff] [blame] | 389 | Param("VkSampleCountFlagBits", "samples"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 390 | Param("VkImageUsageFlags", "usage"), |
| 391 | Param("VkImageTiling", "tiling"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 392 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 393 | Param("VkSparseImageFormatProperties*", "pProperties")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 394 | |
Chia-I Wu | 1ff4c3d | 2015-10-26 16:55:27 +0800 | [diff] [blame] | 395 | Proto("VkResult", "QueueBindSparse", |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 396 | [Param("VkQueue", "queue"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 397 | Param("uint32_t", "bindInfoCount"), |
Chia-I Wu | 1ff4c3d | 2015-10-26 16:55:27 +0800 | [diff] [blame] | 398 | Param("const VkBindSparseInfo*", "pBindInfo"), |
| 399 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 400 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 401 | Proto("VkResult", "CreateFence", |
| 402 | [Param("VkDevice", "device"), |
| 403 | Param("const VkFenceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 404 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 405 | Param("VkFence*", "pFence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 406 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 407 | Proto("void", "DestroyFence", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 408 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 409 | Param("VkFence", "fence"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 410 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 411 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 412 | Proto("VkResult", "ResetFences", |
| 413 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 414 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 415 | Param("const VkFence*", "pFences")]), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 416 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 417 | Proto("VkResult", "GetFenceStatus", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 418 | [Param("VkDevice", "device"), |
| 419 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 420 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 421 | Proto("VkResult", "WaitForFences", |
| 422 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 423 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 424 | Param("const VkFence*", "pFences"), |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 425 | Param("VkBool32", "waitAll"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 426 | Param("uint64_t", "timeout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 427 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 428 | Proto("VkResult", "CreateSemaphore", |
| 429 | [Param("VkDevice", "device"), |
| 430 | Param("const VkSemaphoreCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 431 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 432 | Param("VkSemaphore*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 433 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 434 | Proto("void", "DestroySemaphore", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 435 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 436 | Param("VkSemaphore", "semaphore"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 437 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 438 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 439 | Proto("VkResult", "CreateEvent", |
| 440 | [Param("VkDevice", "device"), |
| 441 | Param("const VkEventCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 442 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 443 | Param("VkEvent*", "pEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 444 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 445 | Proto("void", "DestroyEvent", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 446 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 447 | Param("VkEvent", "event"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 448 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 449 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 450 | Proto("VkResult", "GetEventStatus", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 451 | [Param("VkDevice", "device"), |
| 452 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 453 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 454 | Proto("VkResult", "SetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 455 | [Param("VkDevice", "device"), |
| 456 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 457 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 458 | Proto("VkResult", "ResetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 459 | [Param("VkDevice", "device"), |
| 460 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 461 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 462 | Proto("VkResult", "CreateQueryPool", |
| 463 | [Param("VkDevice", "device"), |
| 464 | Param("const VkQueryPoolCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 465 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 466 | Param("VkQueryPool*", "pQueryPool")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 467 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 468 | Proto("void", "DestroyQueryPool", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 469 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 470 | Param("VkQueryPool", "queryPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 471 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 472 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 473 | Proto("VkResult", "GetQueryPoolResults", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 474 | [Param("VkDevice", "device"), |
| 475 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 476 | Param("uint32_t", "startQuery"), |
| 477 | Param("uint32_t", "queryCount"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 478 | Param("size_t", "dataSize"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 479 | Param("void*", "pData"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 480 | Param("VkDeviceSize", "stride"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 481 | Param("VkQueryResultFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 482 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 483 | Proto("VkResult", "CreateBuffer", |
| 484 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 485 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 486 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 487 | Param("VkBuffer*", "pBuffer")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 488 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 489 | Proto("void", "DestroyBuffer", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 490 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 491 | Param("VkBuffer", "buffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 492 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 493 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 494 | Proto("VkResult", "CreateBufferView", |
| 495 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 496 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 497 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 498 | Param("VkBufferView*", "pView")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 499 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 500 | Proto("void", "DestroyBufferView", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 501 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 502 | Param("VkBufferView", "bufferView"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 503 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 504 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 505 | Proto("VkResult", "CreateImage", |
| 506 | [Param("VkDevice", "device"), |
| 507 | Param("const VkImageCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 508 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 509 | Param("VkImage*", "pImage")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 510 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 511 | Proto("void", "DestroyImage", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 512 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 513 | Param("VkImage", "image"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 514 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 515 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 516 | Proto("void", "GetImageSubresourceLayout", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 517 | [Param("VkDevice", "device"), |
| 518 | Param("VkImage", "image"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 519 | Param("const VkImageSubresource*", "pSubresource"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 520 | Param("VkSubresourceLayout*", "pLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 521 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 522 | Proto("VkResult", "CreateImageView", |
| 523 | [Param("VkDevice", "device"), |
| 524 | Param("const VkImageViewCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 525 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 526 | Param("VkImageView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 527 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 528 | Proto("void", "DestroyImageView", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 529 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 530 | Param("VkImageView", "imageView"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 531 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 532 | |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 533 | Proto("VkResult", "CreateShaderModule", |
| 534 | [Param("VkDevice", "device"), |
| 535 | Param("const VkShaderModuleCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 536 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 537 | Param("VkShaderModule*", "pShaderModule")]), |
| 538 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 539 | Proto("void", "DestroyShaderModule", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 540 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 541 | Param("VkShaderModule", "shaderModule"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 542 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 543 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 544 | Proto("VkResult", "CreatePipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 545 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 546 | Param("const VkPipelineCacheCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 547 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 548 | Param("VkPipelineCache*", "pPipelineCache")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 549 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 550 | Proto("void", "DestroyPipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 551 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 552 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 553 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 554 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 555 | Proto("VkResult", "GetPipelineCacheData", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 556 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 557 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | b16facd | 2015-10-26 19:17:06 +0800 | [diff] [blame] | 558 | Param("size_t*", "pDataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 559 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 560 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 561 | Proto("VkResult", "MergePipelineCaches", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 562 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 563 | Param("VkPipelineCache", "dstCache"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 564 | Param("uint32_t", "srcCacheCount"), |
| 565 | Param("const VkPipelineCache*", "pSrcCaches")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 566 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 567 | Proto("VkResult", "CreateGraphicsPipelines", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 568 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 569 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 570 | Param("uint32_t", "createInfoCount"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 571 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfos"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 572 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 573 | Param("VkPipeline*", "pPipelines")]), |
| 574 | |
| 575 | Proto("VkResult", "CreateComputePipelines", |
| 576 | [Param("VkDevice", "device"), |
| 577 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 578 | Param("uint32_t", "createInfoCount"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 579 | Param("const VkComputePipelineCreateInfo*", "pCreateInfos"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 580 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 581 | Param("VkPipeline*", "pPipelines")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 582 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 583 | Proto("void", "DestroyPipeline", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 584 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 585 | Param("VkPipeline", "pipeline"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 586 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 587 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 588 | Proto("VkResult", "CreatePipelineLayout", |
| 589 | [Param("VkDevice", "device"), |
| 590 | Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 591 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 592 | Param("VkPipelineLayout*", "pPipelineLayout")]), |
| 593 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 594 | Proto("void", "DestroyPipelineLayout", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 595 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 596 | Param("VkPipelineLayout", "pipelineLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 597 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 598 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 599 | Proto("VkResult", "CreateSampler", |
| 600 | [Param("VkDevice", "device"), |
| 601 | Param("const VkSamplerCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 602 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 603 | Param("VkSampler*", "pSampler")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 604 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 605 | Proto("void", "DestroySampler", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 606 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 607 | Param("VkSampler", "sampler"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 608 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 609 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 610 | Proto("VkResult", "CreateDescriptorSetLayout", |
| 611 | [Param("VkDevice", "device"), |
| 612 | Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 613 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 614 | Param("VkDescriptorSetLayout*", "pSetLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 615 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 616 | Proto("void", "DestroyDescriptorSetLayout", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 617 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 618 | Param("VkDescriptorSetLayout", "descriptorSetLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 619 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 620 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 621 | Proto("VkResult", "CreateDescriptorPool", |
| 622 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 623 | Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 624 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 625 | Param("VkDescriptorPool*", "pDescriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 626 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 627 | Proto("void", "DestroyDescriptorPool", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 628 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 629 | Param("VkDescriptorPool", "descriptorPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 630 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 631 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 632 | Proto("VkResult", "ResetDescriptorPool", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 633 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 634 | Param("VkDescriptorPool", "descriptorPool"), |
| 635 | Param("VkDescriptorPoolResetFlags", "flags")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 636 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 637 | Proto("VkResult", "AllocateDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 638 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 639 | Param("const VkDescriptorSetAllocateInfo*", "pAllocateInfo"), |
Cody Northrop | 1e4f802 | 2015-08-03 12:47:29 -0600 | [diff] [blame] | 640 | Param("VkDescriptorSet*", "pDescriptorSets")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 641 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 642 | Proto("VkResult", "FreeDescriptorSets", |
| 643 | [Param("VkDevice", "device"), |
| 644 | Param("VkDescriptorPool", "descriptorPool"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 645 | Param("uint32_t", "descriptorSetCount"), |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 646 | Param("const VkDescriptorSet*", "pDescriptorSets")]), |
| 647 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 648 | Proto("void", "UpdateDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 649 | [Param("VkDevice", "device"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 650 | Param("uint32_t", "descriptorWriteCount"), |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 651 | Param("const VkWriteDescriptorSet*", "pDescriptorWrites"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 652 | Param("uint32_t", "descriptorCopyCount"), |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 653 | Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 654 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 655 | Proto("VkResult", "CreateFramebuffer", |
| 656 | [Param("VkDevice", "device"), |
| 657 | Param("const VkFramebufferCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 658 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 659 | Param("VkFramebuffer*", "pFramebuffer")]), |
| 660 | |
| 661 | Proto("void", "DestroyFramebuffer", |
| 662 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 663 | Param("VkFramebuffer", "framebuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 664 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 665 | |
| 666 | Proto("VkResult", "CreateRenderPass", |
| 667 | [Param("VkDevice", "device"), |
| 668 | Param("const VkRenderPassCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 669 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 670 | Param("VkRenderPass*", "pRenderPass")]), |
| 671 | |
| 672 | Proto("void", "DestroyRenderPass", |
| 673 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 674 | Param("VkRenderPass", "renderPass"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 675 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 676 | |
| 677 | Proto("void", "GetRenderAreaGranularity", |
| 678 | [Param("VkDevice", "device"), |
| 679 | Param("VkRenderPass", "renderPass"), |
| 680 | Param("VkExtent2D*", "pGranularity")]), |
| 681 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 682 | Proto("VkResult", "CreateCommandPool", |
| 683 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 684 | Param("const VkCommandPoolCreateInfo*", "pCreateInfo"), |
| 685 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 686 | Param("VkCommandPool*", "pCommandPool")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 687 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 688 | Proto("void", "DestroyCommandPool", |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 689 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 690 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 691 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 692 | |
| 693 | Proto("VkResult", "ResetCommandPool", |
| 694 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 695 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 696 | Param("VkCommandPoolResetFlags", "flags")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 697 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 698 | Proto("VkResult", "AllocateCommandBuffers", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 699 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 700 | Param("const VkCommandBufferAllocateInfo*", "pAllocateInfo"), |
| 701 | Param("VkCommandBuffer*", "pCommandBuffers")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 702 | |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 703 | Proto("void", "FreeCommandBuffers", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 704 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 705 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 706 | Param("uint32_t", "commandBufferCount"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 707 | Param("const VkCommandBuffer*", "pCommandBuffers")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 708 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 709 | Proto("VkResult", "BeginCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 710 | [Param("VkCommandBuffer", "commandBuffer"), |
| 711 | Param("const VkCommandBufferBeginInfo*", "pBeginInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 712 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 713 | Proto("VkResult", "EndCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 714 | [Param("VkCommandBuffer", "commandBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 715 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 716 | Proto("VkResult", "ResetCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 717 | [Param("VkCommandBuffer", "commandBuffer"), |
| 718 | Param("VkCommandBufferResetFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 719 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 720 | Proto("void", "CmdBindPipeline", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 721 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 722 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
| 723 | Param("VkPipeline", "pipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 724 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 725 | Proto("void", "CmdSetViewport", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 726 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 727 | Param("uint32_t", "viewportCount"), |
| 728 | Param("const VkViewport*", "pViewports")]), |
| 729 | |
| 730 | Proto("void", "CmdSetScissor", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 731 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 732 | Param("uint32_t", "scissorCount"), |
| 733 | Param("const VkRect2D*", "pScissors")]), |
| 734 | |
| 735 | Proto("void", "CmdSetLineWidth", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 736 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 737 | Param("float", "lineWidth")]), |
| 738 | |
| 739 | Proto("void", "CmdSetDepthBias", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 740 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 741 | Param("float", "depthBiasConstantFactor"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 742 | Param("float", "depthBiasClamp"), |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 743 | Param("float", "depthBiasSlopeFactor")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 744 | |
| 745 | Proto("void", "CmdSetBlendConstants", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 746 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 2bfb33c | 2015-10-26 17:24:52 +0800 | [diff] [blame] | 747 | Param("const float[4]", "blendConstants")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 748 | |
| 749 | Proto("void", "CmdSetDepthBounds", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 750 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 751 | Param("float", "minDepthBounds"), |
| 752 | Param("float", "maxDepthBounds")]), |
| 753 | |
| 754 | Proto("void", "CmdSetStencilCompareMask", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 755 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 756 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 757 | Param("uint32_t", "compareMask")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 758 | |
| 759 | Proto("void", "CmdSetStencilWriteMask", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 760 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 761 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 762 | Param("uint32_t", "writeMask")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 763 | |
| 764 | Proto("void", "CmdSetStencilReference", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 765 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 766 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 767 | Param("uint32_t", "reference")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 768 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 769 | Proto("void", "CmdBindDescriptorSets", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 770 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 771 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 772 | Param("VkPipelineLayout", "layout"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 773 | Param("uint32_t", "firstSet"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 774 | Param("uint32_t", "descriptorSetCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 775 | Param("const VkDescriptorSet*", "pDescriptorSets"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 776 | Param("uint32_t", "dynamicOffsetCount"), |
| 777 | Param("const uint32_t*", "pDynamicOffsets")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 778 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 779 | Proto("void", "CmdBindIndexBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 780 | [Param("VkCommandBuffer", "commandBuffer"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 781 | Param("VkBuffer", "buffer"), |
| 782 | Param("VkDeviceSize", "offset"), |
| 783 | Param("VkIndexType", "indexType")]), |
| 784 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 785 | Proto("void", "CmdBindVertexBuffers", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 786 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 787 | Param("uint32_t", "startBinding"), |
| 788 | Param("uint32_t", "bindingCount"), |
| 789 | Param("const VkBuffer*", "pBuffers"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 790 | Param("const VkDeviceSize*", "pOffsets")]), |
| 791 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 792 | Proto("void", "CmdDraw", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 793 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 794 | Param("uint32_t", "vertexCount"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 795 | Param("uint32_t", "instanceCount"), |
| 796 | Param("uint32_t", "firstVertex"), |
| 797 | Param("uint32_t", "firstInstance")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 798 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 799 | Proto("void", "CmdDrawIndexed", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 800 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 801 | Param("uint32_t", "indexCount"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 802 | Param("uint32_t", "instanceCount"), |
| 803 | Param("uint32_t", "firstIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 804 | Param("int32_t", "vertexOffset"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 805 | Param("uint32_t", "firstInstance")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 806 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 807 | Proto("void", "CmdDrawIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 808 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 809 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 810 | Param("VkDeviceSize", "offset"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 811 | Param("uint32_t", "drawCount"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 812 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 813 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 814 | Proto("void", "CmdDrawIndexedIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 815 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 816 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 817 | Param("VkDeviceSize", "offset"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 818 | Param("uint32_t", "drawCount"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 819 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 820 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 821 | Proto("void", "CmdDispatch", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 822 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 823 | Param("uint32_t", "x"), |
| 824 | Param("uint32_t", "y"), |
| 825 | Param("uint32_t", "z")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 826 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 827 | Proto("void", "CmdDispatchIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 828 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 829 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 830 | Param("VkDeviceSize", "offset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 831 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 832 | Proto("void", "CmdCopyBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 833 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 834 | Param("VkBuffer", "srcBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 835 | Param("VkBuffer", "dstBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 836 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 837 | Param("const VkBufferCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 838 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 839 | Proto("void", "CmdCopyImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 840 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 841 | Param("VkImage", "srcImage"), |
| 842 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 843 | Param("VkImage", "dstImage"), |
| 844 | Param("VkImageLayout", "dstImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 845 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 846 | Param("const VkImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 847 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 848 | Proto("void", "CmdBlitImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 849 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 850 | Param("VkImage", "srcImage"), |
| 851 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 852 | Param("VkImage", "dstImage"), |
| 853 | Param("VkImageLayout", "dstImageLayout"), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 854 | Param("uint32_t", "regionCount"), |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 855 | Param("const VkImageBlit*", "pRegions"), |
Chia-I Wu | b99df44 | 2015-10-26 16:49:32 +0800 | [diff] [blame] | 856 | Param("VkFilter", "filter")]), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 857 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 858 | Proto("void", "CmdCopyBufferToImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 859 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 860 | Param("VkBuffer", "srcBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 861 | Param("VkImage", "dstImage"), |
| 862 | Param("VkImageLayout", "dstImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 863 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 864 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 865 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 866 | Proto("void", "CmdCopyImageToBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 867 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 868 | Param("VkImage", "srcImage"), |
| 869 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 870 | Param("VkBuffer", "dstBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 871 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 872 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 873 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 874 | Proto("void", "CmdUpdateBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 875 | [Param("VkCommandBuffer", "commandBuffer"), |
| 876 | Param("VkBuffer", "dstBuffer"), |
| 877 | Param("VkDeviceSize", "dstOffset"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 878 | Param("VkDeviceSize", "dataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 879 | Param("const uint32_t*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 880 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 881 | Proto("void", "CmdFillBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 882 | [Param("VkCommandBuffer", "commandBuffer"), |
| 883 | Param("VkBuffer", "dstBuffer"), |
| 884 | Param("VkDeviceSize", "dstOffset"), |
Chia-I Wu | 2bfb33c | 2015-10-26 17:24:52 +0800 | [diff] [blame] | 885 | Param("VkDeviceSize", "size"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 886 | Param("uint32_t", "data")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 887 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 888 | Proto("void", "CmdClearColorImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 889 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 890 | Param("VkImage", "image"), |
| 891 | Param("VkImageLayout", "imageLayout"), |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 892 | Param("const VkClearColorValue*", "pColor"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 893 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 894 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 895 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 896 | Proto("void", "CmdClearDepthStencilImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 897 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 898 | Param("VkImage", "image"), |
| 899 | Param("VkImageLayout", "imageLayout"), |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 900 | Param("const VkClearDepthStencilValue*", "pDepthStencil"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 901 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 902 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 903 | |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 904 | Proto("void", "CmdClearAttachments", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 905 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 906 | Param("uint32_t", "attachmentCount"), |
| 907 | Param("const VkClearAttachment*", "pAttachments"), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 908 | Param("uint32_t", "rectCount"), |
Courtney Goeltzenleuchter | 4ca43f6 | 2015-10-15 18:22:08 -0600 | [diff] [blame] | 909 | Param("const VkClearRect*", "pRects")]), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 910 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 911 | Proto("void", "CmdResolveImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 912 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 913 | Param("VkImage", "srcImage"), |
| 914 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 915 | Param("VkImage", "dstImage"), |
| 916 | Param("VkImageLayout", "dstImageLayout"), |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 917 | Param("uint32_t", "regionCount"), |
| 918 | Param("const VkImageResolve*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 919 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 920 | Proto("void", "CmdSetEvent", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 921 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 922 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 923 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 924 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 925 | Proto("void", "CmdResetEvent", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 926 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 927 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 928 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 929 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 930 | Proto("void", "CmdWaitEvents", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 931 | [Param("VkCommandBuffer", "commandBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 932 | Param("uint32_t", "eventCount"), |
| 933 | Param("const VkEvent*", "pEvents"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 934 | Param("VkPipelineStageFlags", "srcStageMask"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 935 | Param("VkPipelineStageFlags", "dstStageMask"), |
| 936 | Param("uint32_t", "memoryBarrierCount"), |
| 937 | Param("const void* const*", "ppMemoryBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 938 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 939 | Proto("void", "CmdPipelineBarrier", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 940 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame] | 941 | Param("VkPipelineStageFlags", "srcStageMask"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 942 | Param("VkPipelineStageFlags", "dstStageMask"), |
Chia-I Wu | 5353466 | 2015-10-26 17:08:33 +0800 | [diff] [blame] | 943 | Param("VkDependencyFlags", "dependencyFlags"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 944 | Param("uint32_t", "memoryBarrierCount"), |
| 945 | Param("const void* const*", "ppMemoryBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 946 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 947 | Proto("void", "CmdBeginQuery", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 948 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 949 | Param("VkQueryPool", "queryPool"), |
Chia-I Wu | ab83a0e | 2015-10-27 19:00:15 +0800 | [diff] [blame] | 950 | Param("uint32_t", "entry"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 951 | Param("VkQueryControlFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 952 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 953 | Proto("void", "CmdEndQuery", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 954 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 955 | Param("VkQueryPool", "queryPool"), |
Chia-I Wu | ab83a0e | 2015-10-27 19:00:15 +0800 | [diff] [blame] | 956 | Param("uint32_t", "entry")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 957 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 958 | Proto("void", "CmdResetQueryPool", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 959 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 960 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 961 | Param("uint32_t", "startQuery"), |
| 962 | Param("uint32_t", "queryCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 963 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 964 | Proto("void", "CmdWriteTimestamp", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 965 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 51ce5ea | 2015-10-26 19:40:27 +0800 | [diff] [blame] | 966 | Param("VkPipelineStageFlagBits", "pipelineStage"), |
Chia-I Wu | cbe3c9f | 2015-10-26 20:14:54 +0800 | [diff] [blame] | 967 | Param("VkQueryPool", "queryPool"), |
Chia-I Wu | ab83a0e | 2015-10-27 19:00:15 +0800 | [diff] [blame] | 968 | Param("uint32_t", "entry")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 969 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 970 | Proto("void", "CmdCopyQueryPoolResults", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 971 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 972 | Param("VkQueryPool", "queryPool"), |
| 973 | Param("uint32_t", "startQuery"), |
| 974 | Param("uint32_t", "queryCount"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 975 | Param("VkBuffer", "dstBuffer"), |
| 976 | Param("VkDeviceSize", "dstOffset"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 977 | Param("VkDeviceSize", "stride"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 978 | Param("VkQueryResultFlags", "flags")]), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 979 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 980 | Proto("void", "CmdPushConstants", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 981 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 982 | Param("VkPipelineLayout", "layout"), |
| 983 | Param("VkShaderStageFlags", "stageFlags"), |
Chia-I Wu | d50677e | 2015-10-26 20:46:14 +0800 | [diff] [blame] | 984 | Param("uint32_t", "offset"), |
| 985 | Param("uint32_t", "size"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 986 | Param("const void*", "values")]), |
Courtney Goeltzenleuchter | a97e2ea | 2015-07-27 13:47:08 -0600 | [diff] [blame] | 987 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 988 | Proto("void", "CmdBeginRenderPass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 989 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 990 | Param("const VkRenderPassBeginInfo*", "pRenderPassBegin"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 991 | Param("VkSubpassContents", "contents")]), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 992 | |
| 993 | Proto("void", "CmdNextSubpass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 994 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 995 | Param("VkSubpassContents", "contents")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 996 | |
| 997 | Proto("void", "CmdEndRenderPass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 998 | [Param("VkCommandBuffer", "commandBuffer")]), |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 999 | |
| 1000 | Proto("void", "CmdExecuteCommands", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1001 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1002 | Param("uint32_t", "commandBuffersCount"), |
| 1003 | Param("const VkCommandBuffer*", "pCommandBuffers")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1004 | ], |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 1005 | ) |
| 1006 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1007 | ext_khr_swapchain = Extension( |
| 1008 | name="VK_EXT_KHR_swapchain", |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame^] | 1009 | headers=["vulkan/vk_ext_khr_swapchain.h"], |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1010 | objects=[], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1011 | protos=[ |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1012 | Proto("VkResult", "GetPhysicalDeviceSurfaceSupportKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1013 | [Param("VkPhysicalDevice", "physicalDevice"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1014 | Param("uint32_t", "queueFamilyIndex"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1015 | Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1016 | Param("VkBool32*", "pSupported")]), |
| 1017 | ], |
| 1018 | ) |
| 1019 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1020 | ext_khr_device_swapchain = Extension( |
| 1021 | name="VK_EXT_KHR_device_swapchain", |
| 1022 | headers=["vk_ext_khr_device_swapchain.h"], |
| 1023 | objects=["VkSwapchainKHR"], |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1024 | protos=[ |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1025 | Proto("VkResult", "GetSurfacePropertiesKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1026 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1027 | Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"), |
| 1028 | Param("VkSurfacePropertiesKHR*", "pSurfaceProperties")]), |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1029 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1030 | Proto("VkResult", "GetSurfaceFormatsKHR", |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1031 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1032 | Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"), |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1033 | Param("uint32_t*", "pCount"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1034 | Param("VkSurfaceFormatKHR*", "pSurfaceFormats")]), |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1035 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1036 | Proto("VkResult", "GetSurfacePresentModesKHR", |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1037 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1038 | Param("const VkSurfaceDescriptionKHR*", "pSurfaceDescription"), |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1039 | Param("uint32_t*", "pCount"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1040 | Param("VkPresentModeKHR*", "pPresentModes")]), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1041 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1042 | Proto("VkResult", "CreateSwapchainKHR", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1043 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1044 | Param("const VkSwapchainCreateInfoKHR*", "pCreateInfo"), |
| 1045 | Param("VkSwapchainKHR*", "pSwapchain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1046 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1047 | Proto("VkResult", "DestroySwapchainKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1048 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1049 | Param("VkSwapchainKHR", "swapchain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1050 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1051 | Proto("VkResult", "GetSwapchainImagesKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1052 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1053 | Param("VkSwapchainKHR", "swapchain"), |
Ian Elliott | fe14cda | 2015-08-06 17:05:06 -0600 | [diff] [blame] | 1054 | Param("uint32_t*", "pCount"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1055 | Param("VkImage*", "pSwapchainImages")]), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1056 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1057 | Proto("VkResult", "AcquireNextImageKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1058 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1059 | Param("VkSwapchainKHR", "swapchain"), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1060 | Param("uint64_t", "timeout"), |
| 1061 | Param("VkSemaphore", "semaphore"), |
| 1062 | Param("uint32_t*", "pImageIndex")]), |
| 1063 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1064 | Proto("VkResult", "QueuePresentKHR", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1065 | [Param("VkQueue", "queue"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1066 | Param("VkPresentInfoKHR*", "pPresentInfo")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1067 | ], |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1068 | ) |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1069 | debug_report_lunarg = Extension( |
| 1070 | name="VK_DEBUG_REPORT_LunarG", |
| 1071 | headers=["vk_debug_report_lunarg.h"], |
| 1072 | objects=[ |
| 1073 | "VkDbgMsgCallback", |
| 1074 | ], |
| 1075 | protos=[ |
| 1076 | Proto("VkResult", "DbgCreateMsgCallback", |
| 1077 | [Param("VkInstance", "instance"), |
| 1078 | Param("VkFlags", "msgFlags"), |
| 1079 | Param("const PFN_vkDbgMsgCallback", "pfnMsgCallback"), |
| 1080 | Param("void*", "pUserData"), |
| 1081 | Param("VkDbgMsgCallback*", "pMsgCallback")]), |
| 1082 | |
| 1083 | Proto("VkResult", "DbgDestroyMsgCallback", |
| 1084 | [Param("VkInstance", "instance"), |
| 1085 | Param("VkDbgMsgCallback", "msgCallback")]), |
| 1086 | ], |
| 1087 | ) |
Tobin Ehlis | d1aa3b2 | 2015-08-27 17:41:42 -0600 | [diff] [blame] | 1088 | debug_marker_lunarg = Extension( |
| 1089 | name="VK_DEBUG_MARKER_LunarG", |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame^] | 1090 | headers=["vulkan/vk_debug_marker_lunarg.h"], |
Tobin Ehlis | d1aa3b2 | 2015-08-27 17:41:42 -0600 | [diff] [blame] | 1091 | objects=[], |
| 1092 | protos=[ |
| 1093 | Proto("void", "CmdDbgMarkerBegin", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1094 | [Param("VkCommandBuffer", "commandBuffer"), |
Tobin Ehlis | d1aa3b2 | 2015-08-27 17:41:42 -0600 | [diff] [blame] | 1095 | Param("const char*", "pMarker")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1096 | |
Tobin Ehlis | d1aa3b2 | 2015-08-27 17:41:42 -0600 | [diff] [blame] | 1097 | Proto("void", "CmdDbgMarkerEnd", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1098 | [Param("VkCommandBuffer", "commandBuffer")]), |
Tobin Ehlis | d1aa3b2 | 2015-08-27 17:41:42 -0600 | [diff] [blame] | 1099 | |
| 1100 | Proto("VkResult", "DbgSetObjectTag", |
| 1101 | [Param("VkDevice", "device"), |
| 1102 | Param("VkDbgObjectType", "objType"), |
| 1103 | Param("uint64_t", "object"), |
| 1104 | Param("size_t", "tagSize"), |
| 1105 | Param("const void*", "pTag")]), |
| 1106 | |
| 1107 | Proto("VkResult", "DbgSetObjectName", |
| 1108 | [Param("VkDevice", "device"), |
| 1109 | Param("VkDbgObjectType", "objType"), |
| 1110 | Param("uint64_t", "object"), |
| 1111 | Param("size_t", "nameSize"), |
| 1112 | Param("const char*", "pName")]), |
| 1113 | ], |
| 1114 | ) |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1115 | extensions = [core, ext_khr_swapchain, ext_khr_device_swapchain] |
| 1116 | extensions_all = [core, ext_khr_swapchain, ext_khr_device_swapchain, debug_report_lunarg, debug_marker_lunarg] |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1117 | object_dispatch_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1118 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1119 | "VkPhysicalDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1120 | "VkDevice", |
| 1121 | "VkQueue", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1122 | "VkCommandBuffer", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1123 | ] |
| 1124 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1125 | object_non_dispatch_list = [ |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1126 | "VkCommandPool", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1127 | "VkFence", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1128 | "VkDeviceMemory", |
| 1129 | "VkBuffer", |
| 1130 | "VkImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1131 | "VkSemaphore", |
| 1132 | "VkEvent", |
| 1133 | "VkQueryPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1134 | "VkBufferView", |
| 1135 | "VkImageView", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1136 | "VkShaderModule", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1137 | "VkPipelineCache", |
| 1138 | "VkPipelineLayout", |
| 1139 | "VkPipeline", |
| 1140 | "VkDescriptorSetLayout", |
| 1141 | "VkSampler", |
| 1142 | "VkDescriptorPool", |
| 1143 | "VkDescriptorSet", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1144 | "VkRenderPass", |
| 1145 | "VkFramebuffer", |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1146 | "VkSwapchainKHR", |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1147 | "VkDbgMsgCallback", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1148 | ] |
| 1149 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1150 | object_type_list = object_dispatch_list + object_non_dispatch_list |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1151 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1152 | headers = [] |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1153 | objects = [] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1154 | protos = [] |
| 1155 | for ext in extensions: |
| 1156 | headers.extend(ext.headers) |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1157 | objects.extend(ext.objects) |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1158 | protos.extend(ext.protos) |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1159 | |
Chia-I Wu | 9a4ceb1 | 2015-01-01 14:45:58 +0800 | [diff] [blame] | 1160 | proto_names = [proto.name for proto in protos] |
Chia-I Wu | 900a257 | 2014-08-01 14:44:16 +0800 | [diff] [blame] | 1161 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1162 | def parse_vk_h(filename): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1163 | # read object and protoype typedefs |
| 1164 | object_lines = [] |
| 1165 | proto_lines = [] |
| 1166 | with open(filename, "r") as fp: |
| 1167 | for line in fp: |
| 1168 | line = line.strip() |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1169 | if line.startswith("VK_DEFINE"): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1170 | begin = line.find("(") + 1 |
| 1171 | end = line.find(",") |
| 1172 | # extract the object type |
| 1173 | object_lines.append(line[begin:end]) |
| 1174 | if line.startswith("typedef") and line.endswith(");"): |
Chia-I Wu | 901e3d0 | 2015-10-26 18:48:24 +0800 | [diff] [blame] | 1175 | if "*PFN_vkVoidFunction" in line: |
| 1176 | continue |
| 1177 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1178 | # drop leading "typedef " and trailing ");" |
| 1179 | proto_lines.append(line[8:-2]) |
| 1180 | |
| 1181 | # parse proto_lines to protos |
| 1182 | protos = [] |
| 1183 | for line in proto_lines: |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1184 | first, rest = line.split(" (VKAPI *PFN_vk") |
| 1185 | second, third = rest.split(")(") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1186 | |
| 1187 | # get the return type, no space before "*" |
| 1188 | proto_ret = "*".join([t.rstrip() for t in first.split("*")]) |
| 1189 | |
| 1190 | # get the name |
| 1191 | proto_name = second.strip() |
| 1192 | |
| 1193 | # get the list of params |
| 1194 | param_strs = third.split(", ") |
| 1195 | params = [] |
| 1196 | for s in param_strs: |
| 1197 | ty, name = s.rsplit(" ", 1) |
| 1198 | |
| 1199 | # no space before "*" |
| 1200 | ty = "*".join([t.rstrip() for t in ty.split("*")]) |
| 1201 | # attach [] to ty |
| 1202 | idx = name.rfind("[") |
| 1203 | if idx >= 0: |
| 1204 | ty += name[idx:] |
| 1205 | name = name[:idx] |
| 1206 | |
| 1207 | params.append(Param(ty, name)) |
| 1208 | |
| 1209 | protos.append(Proto(proto_ret, proto_name, params)) |
| 1210 | |
| 1211 | # make them an extension and print |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1212 | ext = Extension("VK_CORE", |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame^] | 1213 | headers=["vulkan/vulkan.h", "vk_debug_report_lunarg.h"], |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1214 | objects=object_lines, |
| 1215 | protos=protos) |
| 1216 | print("core =", str(ext)) |
| 1217 | |
| 1218 | print("") |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1219 | print("typedef struct VkLayerDispatchTable_") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1220 | print("{") |
| 1221 | for proto in ext.protos: |
Chia-I Wu | 901e3d0 | 2015-10-26 18:48:24 +0800 | [diff] [blame] | 1222 | print(" PFN_vk%s %s;" % (proto.name, proto.name)) |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1223 | print("} VkLayerDispatchTable;") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1224 | |
| 1225 | if __name__ == "__main__": |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame^] | 1226 | parse_vk_h("include/vulkan/vulkan.h") |