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 | |
| 3 | # Copyright (C) 2014 LunarG, Inc. |
| 4 | # |
| 5 | # Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | # copy of this software and associated documentation files (the "Software"), |
| 7 | # to deal in the Software without restriction, including without limitation |
| 8 | # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 9 | # and/or sell copies of the Software, and to permit persons to whom the |
| 10 | # Software is furnished to do so, subject to the following conditions: |
| 11 | # |
| 12 | # The above copyright notice and this permission notice shall be included |
| 13 | # in all copies or substantial portions of the Software. |
| 14 | # |
| 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 18 | # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 20 | # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 21 | # DEALINGS IN THE SOFTWARE. |
| 22 | |
| 23 | class Param(object): |
| 24 | """A function parameter.""" |
| 25 | |
| 26 | def __init__(self, ty, name): |
| 27 | self.ty = ty |
| 28 | self.name = name |
| 29 | |
| 30 | def c(self): |
| 31 | """Return the parameter in C.""" |
| 32 | idx = self.ty.find("[") |
| 33 | |
| 34 | # arrays have a different syntax |
| 35 | if idx >= 0: |
| 36 | return "%s %s%s" % (self.ty[:idx], self.name, self.ty[idx:]) |
| 37 | else: |
| 38 | return "%s %s" % (self.ty, self.name) |
| 39 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 40 | def indirection_level(self): |
| 41 | """Return the level of indirection.""" |
| 42 | return self.ty.count("*") + self.ty.count("[") |
| 43 | |
| 44 | def dereferenced_type(self, level=0): |
| 45 | """Return the type after dereferencing.""" |
| 46 | if not level: |
| 47 | level = self.indirection_level() |
| 48 | |
| 49 | deref = self.ty if level else "" |
| 50 | while level > 0: |
| 51 | idx = deref.rfind("[") |
| 52 | if idx < 0: |
| 53 | idx = deref.rfind("*") |
| 54 | if idx < 0: |
| 55 | deref = "" |
| 56 | break |
| 57 | deref = deref[:idx] |
| 58 | level -= 1; |
| 59 | |
| 60 | return deref.rstrip() |
| 61 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 62 | def __repr__(self): |
| 63 | return "Param(\"%s\", \"%s\")" % (self.ty, self.name) |
| 64 | |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 65 | class Proto(object): |
| 66 | """A function prototype.""" |
| 67 | |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 68 | def __init__(self, ret, name, params=[]): |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 69 | # the proto has only a param |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 70 | if not isinstance(params, list): |
| 71 | params = [params] |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 72 | |
| 73 | self.ret = ret |
| 74 | self.name = name |
| 75 | self.params = params |
| 76 | |
| 77 | def c_params(self, need_type=True, need_name=True): |
| 78 | """Return the parameter list in C.""" |
| 79 | if self.params and (need_type or need_name): |
| 80 | if need_type and need_name: |
| 81 | return ", ".join([param.c() for param in self.params]) |
| 82 | elif need_type: |
| 83 | return ", ".join([param.ty for param in self.params]) |
| 84 | else: |
| 85 | return ", ".join([param.name for param in self.params]) |
| 86 | else: |
| 87 | return "void" if need_type else "" |
| 88 | |
| 89 | def c_decl(self, name, attr="", typed=False, need_param_names=True): |
| 90 | """Return a named declaration in C.""" |
| 91 | format_vals = (self.ret, |
| 92 | attr + " " if attr else "", |
| 93 | name, |
| 94 | self.c_params(need_name=need_param_names)) |
| 95 | |
| 96 | if typed: |
| 97 | return "%s (%s*%s)(%s)" % format_vals |
| 98 | else: |
| 99 | return "%s %s%s(%s)" % format_vals |
| 100 | |
Chia-I Wu | af3b555 | 2015-01-04 12:00:01 +0800 | [diff] [blame] | 101 | def c_pretty_decl(self, name, attr=""): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 102 | """Return a named declaration in C, with vulkan.h formatting.""" |
Chia-I Wu | af3b555 | 2015-01-04 12:00:01 +0800 | [diff] [blame] | 103 | plist = [] |
| 104 | for param in self.params: |
| 105 | idx = param.ty.find("[") |
| 106 | if idx < 0: |
| 107 | idx = len(param.ty) |
| 108 | |
| 109 | pad = 44 - idx |
| 110 | if pad <= 0: |
| 111 | pad = 1 |
| 112 | |
| 113 | plist.append(" %s%s%s%s" % (param.ty[:idx], |
| 114 | " " * pad, param.name, param.ty[idx:])) |
| 115 | |
| 116 | return "%s %s%s(\n%s)" % (self.ret, |
| 117 | attr + " " if attr else "", |
| 118 | name, |
| 119 | ",\n".join(plist)) |
| 120 | |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 121 | def c_typedef(self, suffix="", attr=""): |
| 122 | """Return the typedef for the prototype in C.""" |
| 123 | return self.c_decl(self.name + suffix, attr=attr, typed=True) |
| 124 | |
| 125 | def c_func(self, prefix="", attr=""): |
| 126 | """Return the prototype in C.""" |
| 127 | return self.c_decl(prefix + self.name, attr=attr, typed=False) |
| 128 | |
| 129 | def c_call(self): |
| 130 | """Return a call to the prototype in C.""" |
| 131 | return "%s(%s)" % (self.name, self.c_params(need_type=False)) |
| 132 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 133 | def object_in_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 134 | """Return the params that are simple VK objects and are inputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 135 | return [param for param in self.params if param.ty in objects] |
| 136 | |
| 137 | def object_out_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 138 | """Return the params that are simple VK objects and are outputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 139 | return [param for param in self.params |
| 140 | if param.dereferenced_type() in objects] |
| 141 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 142 | def __repr__(self): |
| 143 | param_strs = [] |
| 144 | for param in self.params: |
| 145 | param_strs.append(str(param)) |
| 146 | param_str = " [%s]" % (",\n ".join(param_strs)) |
| 147 | |
| 148 | return "Proto(\"%s\", \"%s\",\n%s)" % \ |
| 149 | (self.ret, self.name, param_str) |
| 150 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 151 | class Extension(object): |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 152 | def __init__(self, name, headers, objects, protos): |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 153 | self.name = name |
| 154 | self.headers = headers |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 155 | self.objects = objects |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 156 | self.protos = protos |
| 157 | |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 158 | def __repr__(self): |
| 159 | lines = [] |
| 160 | lines.append("Extension(") |
| 161 | lines.append(" name=\"%s\"," % self.name) |
| 162 | lines.append(" headers=[\"%s\"]," % |
| 163 | "\", \"".join(self.headers)) |
| 164 | |
| 165 | lines.append(" objects=[") |
| 166 | for obj in self.objects: |
| 167 | lines.append(" \"%s\"," % obj) |
| 168 | lines.append(" ],") |
| 169 | |
| 170 | lines.append(" protos=[") |
| 171 | for proto in self.protos: |
| 172 | param_lines = str(proto).splitlines() |
| 173 | param_lines[-1] += ",\n" if proto != self.protos[-1] else "," |
| 174 | for p in param_lines: |
| 175 | lines.append(" " + p) |
| 176 | lines.append(" ],") |
| 177 | lines.append(")") |
| 178 | |
| 179 | return "\n".join(lines) |
| 180 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 181 | # VK core API |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 182 | core = Extension( |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 183 | name="VK_CORE", |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 184 | headers=["vulkan.h", "vk_debug_report_lunarg.h"], |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 185 | objects=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 186 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 187 | "VkPhysicalDevice", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 188 | "VkDevice", |
| 189 | "VkQueue", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 190 | "VkCmdBuffer", |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 191 | "VkCmdPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 192 | "VkFence", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 193 | "VkDeviceMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 194 | "VkBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 195 | "VkImage", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 196 | "VkSemaphore", |
| 197 | "VkEvent", |
| 198 | "VkQueryPool", |
| 199 | "VkBufferView", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 200 | "VkImageView", |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 201 | "VkAttachmentView", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 202 | "VkShaderModule", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 203 | "VkShader", |
Tony Barbour | a05dbaa | 2015-07-09 17:31:46 -0600 | [diff] [blame] | 204 | "VkPipelineCache", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 205 | "VkPipelineLayout", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 206 | "VkPipeline", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 207 | "VkDescriptorSetLayout", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 208 | "VkSampler", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 209 | "VkDescriptorPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 210 | "VkDescriptorSet", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 211 | "VkDynamicViewportState", |
| 212 | "VkDynamicRasterState", |
| 213 | "VkDynamicColorBlendState", |
| 214 | "VkDynamicDepthStencilState", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 215 | "VkRenderPass", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 216 | "VkFramebuffer", |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 217 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 218 | protos=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 219 | Proto("VkResult", "CreateInstance", |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 220 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
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 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 223 | Proto("VkResult", "DestroyInstance", |
| 224 | [Param("VkInstance", "instance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 225 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 226 | Proto("VkResult", "EnumeratePhysicalDevices", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 227 | [Param("VkInstance", "instance"), |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 228 | Param("uint32_t*", "pPhysicalDeviceCount"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 229 | Param("VkPhysicalDevice*", "pPhysicalDevices")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 230 | |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 231 | Proto("VkResult", "GetPhysicalDeviceFeatures", |
| 232 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 233 | Param("VkPhysicalDeviceFeatures*", "pFeatures")]), |
| 234 | |
Courtney Goeltzenleuchter | 2caec86 | 2015-07-12 12:52:09 -0600 | [diff] [blame] | 235 | Proto("VkResult", "GetPhysicalDeviceFormatProperties", |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 236 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 237 | Param("VkFormat", "format"), |
| 238 | Param("VkFormatProperties*", "pFormatInfo")]), |
| 239 | |
| 240 | Proto("VkResult", "GetPhysicalDeviceLimits", |
| 241 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 242 | Param("VkPhysicalDeviceLimits*", "pLimits")]), |
| 243 | |
Jon Ashburn | b0fbe91 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 244 | Proto("void*", "GetInstanceProcAddr", |
| 245 | [Param("VkInstance", "instance"), |
| 246 | Param("const char*", "pName")]), |
| 247 | |
Jon Ashburn | 8d1b0b5 | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 248 | Proto("void*", "GetDeviceProcAddr", |
| 249 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 250 | Param("const char*", "pName")]), |
Chia-I Wu | f2ffc52 | 2015-01-04 14:51:06 +0800 | [diff] [blame] | 251 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 252 | Proto("VkResult", "CreateDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 253 | [Param("VkPhysicalDevice", "physicalDevice"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 254 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 255 | Param("VkDevice*", "pDevice")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 256 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 257 | Proto("VkResult", "DestroyDevice", |
| 258 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 259 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 260 | Proto("VkResult", "GetPhysicalDeviceProperties", |
| 261 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 262 | Param("VkPhysicalDeviceProperties*", "pProperties")]), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 263 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 264 | Proto("VkResult", "GetPhysicalDeviceQueueCount", |
| 265 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 266 | Param("uint32_t*", "pCount")]), |
| 267 | |
| 268 | Proto("VkResult", "GetPhysicalDeviceQueueProperties", |
| 269 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 270 | Param("uint32_t", "count"), |
| 271 | Param("VkPhysicalDeviceQueueProperties*", "pQueueProperties")]), |
| 272 | |
| 273 | Proto("VkResult", "GetPhysicalDeviceMemoryProperties", |
| 274 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 275 | Param("VkPhysicalDeviceMemoryProperties*", "pMemoryProperties")]), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 276 | |
| 277 | Proto("VkResult", "GetGlobalExtensionProperties", |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 278 | [Param("const char*", "pLayerName"), |
| 279 | Param("uint32_t*", "pCount"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 280 | Param("VkExtensionProperties*", "pProperties")]), |
| 281 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 282 | Proto("VkResult", "GetPhysicalDeviceExtensionProperties", |
| 283 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 284 | Param("const char*", "pLayerName"), |
| 285 | Param("uint32_t", "*pCount"), |
| 286 | Param("VkExtensionProperties*", "pProperties")]), |
| 287 | |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 288 | Proto("VkResult", "GetGlobalLayerProperties", |
| 289 | [Param("uint32_t*", "pCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 290 | Param("VkLayerProperties*", "pProperties")]), |
| 291 | |
| 292 | Proto("VkResult", "GetPhysicalDeviceLayerProperties", |
| 293 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 294 | Param("uint32_t", "*pCount"), |
| 295 | Param("VkLayerProperties*", "pProperties")]), |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 296 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 297 | Proto("VkResult", "GetDeviceQueue", |
| 298 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 18248e6 | 2015-03-05 18:09:39 -0700 | [diff] [blame] | 299 | Param("uint32_t", "queueNodeIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 300 | Param("uint32_t", "queueIndex"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 301 | Param("VkQueue*", "pQueue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 302 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 303 | Proto("VkResult", "QueueSubmit", |
| 304 | [Param("VkQueue", "queue"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 305 | Param("uint32_t", "cmdBufferCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 306 | Param("const VkCmdBuffer*", "pCmdBuffers"), |
| 307 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 308 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 309 | Proto("VkResult", "QueueWaitIdle", |
| 310 | [Param("VkQueue", "queue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 311 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 312 | Proto("VkResult", "DeviceWaitIdle", |
| 313 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 314 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 315 | Proto("VkResult", "AllocMemory", |
| 316 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 317 | Param("const VkMemoryAllocInfo*", "pAllocInfo"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 318 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 319 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 320 | Proto("VkResult", "FreeMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 321 | [Param("VkDevice", "device"), |
| 322 | Param("VkDeviceMemory", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 323 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 324 | Proto("VkResult", "MapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 325 | [Param("VkDevice", "device"), |
| 326 | Param("VkDeviceMemory", "mem"), |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 327 | Param("VkDeviceSize", "offset"), |
| 328 | Param("VkDeviceSize", "size"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 329 | Param("VkMemoryMapFlags", "flags"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 330 | Param("void**", "ppData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 331 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 332 | Proto("VkResult", "UnmapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 333 | [Param("VkDevice", "device"), |
| 334 | Param("VkDeviceMemory", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 335 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 336 | Proto("VkResult", "FlushMappedMemoryRanges", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 337 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 338 | Param("uint32_t", "memRangeCount"), |
| 339 | Param("const VkMappedMemoryRange*", "pMemRanges")]), |
| 340 | |
| 341 | Proto("VkResult", "InvalidateMappedMemoryRanges", |
| 342 | [Param("VkDevice", "device"), |
| 343 | Param("uint32_t", "memRangeCount"), |
| 344 | Param("const VkMappedMemoryRange*", "pMemRanges")]), |
Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 345 | |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 346 | Proto("VkResult", "GetDeviceMemoryCommitment", |
| 347 | [Param("VkDevice", "device"), |
| 348 | Param("VkDeviceMemory", "memory"), |
| 349 | Param("VkDeviceSize*", "pCommittedMemoryInBytes")]), |
| 350 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 351 | Proto("VkResult", "BindBufferMemory", |
| 352 | [Param("VkDevice", "device"), |
| 353 | Param("VkBuffer", "buffer"), |
| 354 | Param("VkDeviceMemory", "mem"), |
| 355 | Param("VkDeviceSize", "memOffset")]), |
| 356 | |
| 357 | Proto("VkResult", "BindImageMemory", |
| 358 | [Param("VkDevice", "device"), |
| 359 | Param("VkImage", "image"), |
| 360 | Param("VkDeviceMemory", "mem"), |
| 361 | Param("VkDeviceSize", "memOffset")]), |
| 362 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 363 | Proto("VkResult", "GetBufferMemoryRequirements", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 364 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 365 | Param("VkBuffer", "buffer"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 366 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 367 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 368 | Proto("VkResult", "GetImageMemoryRequirements", |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 369 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 370 | Param("VkImage", "image"), |
| 371 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
| 372 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 373 | Proto("VkResult", "GetImageSparseMemoryRequirements", |
| 374 | [Param("VkDevice", "device"), |
| 375 | Param("VkImage", "image"), |
| 376 | Param("uint32_t*", "pNumRequirements"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 377 | Param("VkSparseImageMemoryRequirements*", "pSparseMemoryRequirements")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 378 | |
| 379 | Proto("VkResult", "GetPhysicalDeviceSparseImageFormatProperties", |
| 380 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 381 | Param("VkFormat", "format"), |
| 382 | Param("VkImageType", "type"), |
| 383 | Param("uint32_t", "samples"), |
| 384 | Param("VkImageUsageFlags", "usage"), |
| 385 | Param("VkImageTiling", "tiling"), |
| 386 | Param("uint32_t*", "pNumProperties"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 387 | Param("VkSparseImageFormatProperties*", "pProperties")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 388 | |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 389 | Proto("VkResult", "QueueBindSparseBufferMemory", |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 390 | [Param("VkQueue", "queue"), |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 391 | Param("VkBuffer", "buffer"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 392 | Param("uint32_t", "numBindings"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 393 | Param("const VkSparseMemoryBindInfo*", "pBindInfo")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 394 | |
| 395 | Proto("VkResult", "QueueBindSparseImageOpaqueMemory", |
| 396 | [Param("VkQueue", "queue"), |
| 397 | Param("VkImage", "image"), |
| 398 | Param("uint32_t", "numBindings"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 399 | Param("const VkSparseMemoryBindInfo*", "pBindInfo")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 400 | |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 401 | Proto("VkResult", "QueueBindSparseImageMemory", |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 402 | [Param("VkQueue", "queue"), |
| 403 | Param("VkImage", "image"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 404 | Param("uint32_t", "numBindings"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 405 | Param("const VkSparseImageMemoryBindInfo*", "pBindInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 406 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 407 | Proto("VkResult", "CreateFence", |
| 408 | [Param("VkDevice", "device"), |
| 409 | Param("const VkFenceCreateInfo*", "pCreateInfo"), |
| 410 | Param("VkFence*", "pFence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 411 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 412 | Proto("VkResult", "DestroyFence", |
| 413 | [Param("VkDevice", "device"), |
| 414 | Param("VkFence", "fence")]), |
| 415 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 416 | Proto("VkResult", "ResetFences", |
| 417 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 418 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 419 | Param("const VkFence*", "pFences")]), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 420 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 421 | Proto("VkResult", "GetFenceStatus", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 422 | [Param("VkDevice", "device"), |
| 423 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 424 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 425 | Proto("VkResult", "WaitForFences", |
| 426 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 427 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 428 | Param("const VkFence*", "pFences"), |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 429 | Param("VkBool32", "waitAll"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 430 | Param("uint64_t", "timeout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 431 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 432 | Proto("VkResult", "CreateSemaphore", |
| 433 | [Param("VkDevice", "device"), |
| 434 | Param("const VkSemaphoreCreateInfo*", "pCreateInfo"), |
| 435 | Param("VkSemaphore*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 436 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 437 | Proto("VkResult", "DestroySemaphore", |
| 438 | [Param("VkDevice", "device"), |
| 439 | Param("VkSemaphore", "semaphore")]), |
| 440 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 441 | Proto("VkResult", "QueueSignalSemaphore", |
| 442 | [Param("VkQueue", "queue"), |
| 443 | Param("VkSemaphore", "semaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 444 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 445 | Proto("VkResult", "QueueWaitSemaphore", |
| 446 | [Param("VkQueue", "queue"), |
| 447 | Param("VkSemaphore", "semaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 448 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 449 | Proto("VkResult", "CreateEvent", |
| 450 | [Param("VkDevice", "device"), |
| 451 | Param("const VkEventCreateInfo*", "pCreateInfo"), |
| 452 | Param("VkEvent*", "pEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 453 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 454 | Proto("VkResult", "DestroyEvent", |
| 455 | [Param("VkDevice", "device"), |
| 456 | Param("VkEvent", "event")]), |
| 457 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 458 | Proto("VkResult", "GetEventStatus", |
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", "SetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 463 | [Param("VkDevice", "device"), |
| 464 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 465 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 466 | Proto("VkResult", "ResetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 467 | [Param("VkDevice", "device"), |
| 468 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 469 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 470 | Proto("VkResult", "CreateQueryPool", |
| 471 | [Param("VkDevice", "device"), |
| 472 | Param("const VkQueryPoolCreateInfo*", "pCreateInfo"), |
| 473 | Param("VkQueryPool*", "pQueryPool")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 474 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 475 | Proto("VkResult", "DestroyQueryPool", |
| 476 | [Param("VkDevice", "device"), |
| 477 | Param("VkQueryPool", "queryPool")]), |
| 478 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 479 | Proto("VkResult", "GetQueryPoolResults", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 480 | [Param("VkDevice", "device"), |
| 481 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 482 | Param("uint32_t", "startQuery"), |
| 483 | Param("uint32_t", "queryCount"), |
| 484 | Param("size_t*", "pDataSize"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 485 | Param("void*", "pData"), |
| 486 | Param("VkQueryResultFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 487 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 488 | Proto("VkResult", "CreateBuffer", |
| 489 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 490 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 491 | Param("VkBuffer*", "pBuffer")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 492 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 493 | Proto("VkResult", "DestroyBuffer", |
| 494 | [Param("VkDevice", "device"), |
| 495 | Param("VkBuffer", "buffer")]), |
| 496 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 497 | Proto("VkResult", "CreateBufferView", |
| 498 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 499 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 500 | Param("VkBufferView*", "pView")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 501 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 502 | Proto("VkResult", "DestroyBufferView", |
| 503 | [Param("VkDevice", "device"), |
| 504 | Param("VkBufferView", "bufferView")]), |
| 505 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 506 | Proto("VkResult", "CreateImage", |
| 507 | [Param("VkDevice", "device"), |
| 508 | Param("const VkImageCreateInfo*", "pCreateInfo"), |
| 509 | Param("VkImage*", "pImage")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 510 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 511 | Proto("VkResult", "DestroyImage", |
| 512 | [Param("VkDevice", "device"), |
| 513 | Param("VkImage", "image")]), |
| 514 | |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 515 | Proto("VkResult", "GetImageSubresourceLayout", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 516 | [Param("VkDevice", "device"), |
| 517 | Param("VkImage", "image"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 518 | Param("const VkImageSubresource*", "pSubresource"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 519 | Param("VkSubresourceLayout*", "pLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 520 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 521 | Proto("VkResult", "CreateImageView", |
| 522 | [Param("VkDevice", "device"), |
| 523 | Param("const VkImageViewCreateInfo*", "pCreateInfo"), |
| 524 | Param("VkImageView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 525 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 526 | Proto("VkResult", "DestroyImageView", |
| 527 | [Param("VkDevice", "device"), |
| 528 | Param("VkImageView", "imageView")]), |
| 529 | |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 530 | Proto("VkResult", "CreateAttachmentView", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 531 | [Param("VkDevice", "device"), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 532 | Param("const VkAttachmentViewCreateInfo*", "pCreateInfo"), |
| 533 | Param("VkAttachmentView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 534 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 535 | Proto("VkResult", "DestroyAttachmentView", |
| 536 | [Param("VkDevice", "device"), |
| 537 | Param("VkAttachmentView", "attachmentView")]), |
| 538 | |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 539 | Proto("VkResult", "CreateShaderModule", |
| 540 | [Param("VkDevice", "device"), |
| 541 | Param("const VkShaderModuleCreateInfo*", "pCreateInfo"), |
| 542 | Param("VkShaderModule*", "pShaderModule")]), |
| 543 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 544 | Proto("VkResult", "DestroyShaderModule", |
| 545 | [Param("VkDevice", "device"), |
| 546 | Param("VkShaderModule", "shaderModule")]), |
| 547 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 548 | Proto("VkResult", "CreateShader", |
| 549 | [Param("VkDevice", "device"), |
| 550 | Param("const VkShaderCreateInfo*", "pCreateInfo"), |
| 551 | Param("VkShader*", "pShader")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 552 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 553 | Proto("VkResult", "DestroyShader", |
| 554 | [Param("VkDevice", "device"), |
| 555 | Param("VkShader", "shader")]), |
| 556 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 557 | Proto("VkResult", "CreatePipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 558 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 559 | Param("const VkPipelineCacheCreateInfo*", "pCreateInfo"), |
| 560 | Param("VkPipelineCache*", "pPipelineCache")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 561 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 562 | Proto("VkResult", "DestroyPipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 563 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 564 | Param("VkPipelineCache", "pipelineCache")]), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 565 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 566 | Proto("size_t", "GetPipelineCacheSize", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 567 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 568 | Param("VkPipelineCache", "pipelineCache")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 569 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 570 | Proto("VkResult", "GetPipelineCacheData", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 571 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 572 | Param("VkPipelineCache", "pipelineCache"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 573 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 574 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 575 | Proto("VkResult", "MergePipelineCaches", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 576 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 577 | Param("VkPipelineCache", "destCache"), |
| 578 | Param("uint32_t", "srcCacheCount"), |
| 579 | Param("const VkPipelineCache*", "pSrcCaches")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 580 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 581 | Proto("VkResult", "CreateGraphicsPipelines", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 582 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 583 | Param("VkPipelineCache", "pipelineCache"), |
| 584 | Param("uint32_t", "count"), |
| 585 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfos"), |
| 586 | Param("VkPipeline*", "pPipelines")]), |
| 587 | |
| 588 | Proto("VkResult", "CreateComputePipelines", |
| 589 | [Param("VkDevice", "device"), |
| 590 | Param("VkPipelineCache", "pipelineCache"), |
| 591 | Param("uint32_t", "count"), |
| 592 | Param("const VkComputePipelineCreateInfo*", "pCreateInfos"), |
| 593 | Param("VkPipeline*", "pPipelines")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 594 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 595 | Proto("VkResult", "DestroyPipeline", |
| 596 | [Param("VkDevice", "device"), |
| 597 | Param("VkPipeline", "pipeline")]), |
| 598 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 599 | Proto("VkResult", "CreatePipelineLayout", |
| 600 | [Param("VkDevice", "device"), |
| 601 | Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"), |
| 602 | Param("VkPipelineLayout*", "pPipelineLayout")]), |
| 603 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 604 | Proto("VkResult", "DestroyPipelineLayout", |
| 605 | [Param("VkDevice", "device"), |
| 606 | Param("VkPipelineLayout", "pipelineLayout")]), |
| 607 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 608 | Proto("VkResult", "CreateSampler", |
| 609 | [Param("VkDevice", "device"), |
| 610 | Param("const VkSamplerCreateInfo*", "pCreateInfo"), |
| 611 | Param("VkSampler*", "pSampler")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 612 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 613 | Proto("VkResult", "DestroySampler", |
| 614 | [Param("VkDevice", "device"), |
| 615 | Param("VkSampler", "sampler")]), |
| 616 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 617 | Proto("VkResult", "CreateDescriptorSetLayout", |
| 618 | [Param("VkDevice", "device"), |
| 619 | Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"), |
| 620 | Param("VkDescriptorSetLayout*", "pSetLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 621 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 622 | Proto("VkResult", "DestroyDescriptorSetLayout", |
| 623 | [Param("VkDevice", "device"), |
| 624 | Param("VkDescriptorSetLayout", "descriptorSetLayout")]), |
| 625 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 626 | Proto("VkResult", "CreateDescriptorPool", |
| 627 | [Param("VkDevice", "device"), |
| 628 | Param("VkDescriptorPoolUsage", "poolUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 629 | Param("uint32_t", "maxSets"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 630 | Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"), |
| 631 | Param("VkDescriptorPool*", "pDescriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 632 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 633 | Proto("VkResult", "DestroyDescriptorPool", |
| 634 | [Param("VkDevice", "device"), |
| 635 | Param("VkDescriptorPool", "descriptorPool")]), |
| 636 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 637 | Proto("VkResult", "ResetDescriptorPool", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 638 | [Param("VkDevice", "device"), |
| 639 | Param("VkDescriptorPool", "descriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 640 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 641 | Proto("VkResult", "AllocDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 642 | [Param("VkDevice", "device"), |
| 643 | Param("VkDescriptorPool", "descriptorPool"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 644 | Param("VkDescriptorSetUsage", "setUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 645 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 646 | Param("const VkDescriptorSetLayout*", "pSetLayouts"), |
| 647 | Param("VkDescriptorSet*", "pDescriptorSets"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 648 | Param("uint32_t*", "pCount")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 649 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 650 | Proto("VkResult", "FreeDescriptorSets", |
| 651 | [Param("VkDevice", "device"), |
| 652 | Param("VkDescriptorPool", "descriptorPool"), |
| 653 | Param("uint32_t", "count"), |
| 654 | Param("const VkDescriptorSet*", "pDescriptorSets")]), |
| 655 | |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 656 | Proto("VkResult", "UpdateDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 657 | [Param("VkDevice", "device"), |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 658 | Param("uint32_t", "writeCount"), |
| 659 | Param("const VkWriteDescriptorSet*", "pDescriptorWrites"), |
| 660 | Param("uint32_t", "copyCount"), |
| 661 | Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 662 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 663 | Proto("VkResult", "CreateDynamicViewportState", |
| 664 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 665 | Param("const VkDynamicViewportStateCreateInfo*", "pCreateInfo"), |
| 666 | Param("VkDynamicViewportState*", "pState")]), |
| 667 | |
| 668 | Proto("VkResult", "DestroyDynamicViewportState", |
| 669 | [Param("VkDevice", "device"), |
| 670 | Param("VkDynamicViewportState", "dynamicViewportState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 671 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 672 | Proto("VkResult", "CreateDynamicRasterState", |
| 673 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 674 | Param("const VkDynamicRasterStateCreateInfo*", "pCreateInfo"), |
| 675 | Param("VkDynamicRasterState*", "pState")]), |
| 676 | |
| 677 | Proto("VkResult", "DestroyDynamicRasterState", |
| 678 | [Param("VkDevice", "device"), |
| 679 | Param("VkDynamicRasterState", "dynamicRasterState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 680 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 681 | Proto("VkResult", "CreateDynamicColorBlendState", |
| 682 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 683 | Param("const VkDynamicColorBlendStateCreateInfo*", "pCreateInfo"), |
| 684 | Param("VkDynamicColorBlendState*", "pState")]), |
| 685 | |
| 686 | Proto("VkResult", "DestroyDynamicColorBlendState", |
| 687 | [Param("VkDevice", "device"), |
| 688 | Param("VkDynamicColorBlendState", "dynamicColorBlendState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 689 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 690 | Proto("VkResult", "CreateDynamicDepthStencilState", |
| 691 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 692 | Param("const VkDynamicDepthStencilStateCreateInfo*", "pCreateInfo"), |
| 693 | Param("VkDynamicDepthStencilState*", "pState")]), |
| 694 | |
| 695 | Proto("VkResult", "DestroyDynamicDepthStencilState", |
| 696 | [Param("VkDevice", "device"), |
| 697 | Param("VkDynamicDepthStencilState", "dynamicDepthStencilState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 698 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 699 | Proto("VkResult", "CreateCommandPool", |
| 700 | [Param("VkDevice", "device"), |
| 701 | Param("const VkCmdPoolCreateInfo*", "pCreateInfo"), |
| 702 | Param("VkCmdPool*", "pCmdPool")]), |
| 703 | |
| 704 | Proto("VkResult", "DestroyCommandPool", |
| 705 | [Param("VkDevice", "device"), |
| 706 | Param("VkCmdPool", "cmdPool")]), |
| 707 | |
| 708 | Proto("VkResult", "ResetCommandPool", |
| 709 | [Param("VkDevice", "device"), |
| 710 | Param("VkCmdPool", "cmdPool"), |
| 711 | Param("VkCmdPoolResetFlags", "flags")]), |
| 712 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 713 | Proto("VkResult", "CreateCommandBuffer", |
| 714 | [Param("VkDevice", "device"), |
| 715 | Param("const VkCmdBufferCreateInfo*", "pCreateInfo"), |
| 716 | Param("VkCmdBuffer*", "pCmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 717 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 718 | Proto("VkResult", "DestroyCommandBuffer", |
| 719 | [Param("VkDevice", "device"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 720 | Param("VkCmdBuffer", "commandBuffer")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 721 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 722 | Proto("VkResult", "BeginCommandBuffer", |
| 723 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 724 | Param("const VkCmdBufferBeginInfo*", "pBeginInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 725 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 726 | Proto("VkResult", "EndCommandBuffer", |
| 727 | [Param("VkCmdBuffer", "cmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 728 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 729 | Proto("VkResult", "ResetCommandBuffer", |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 730 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 731 | Param("VkCmdBufferResetFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 732 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 733 | Proto("void", "CmdBindPipeline", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 734 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 735 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
| 736 | Param("VkPipeline", "pipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 737 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 738 | Proto("void", "CmdBindDynamicViewportState", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 739 | [Param("VkCmdBuffer", "cmdBuffer"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 740 | Param("VkDynamicViewportState", "dynamicViewportState")]), |
| 741 | |
| 742 | Proto("void", "CmdBindDynamicRasterState", |
| 743 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 744 | Param("VkDynamicRasterState", "dynamicRasterState")]), |
| 745 | |
| 746 | Proto("void", "CmdBindDynamicColorBlendState", |
| 747 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 748 | Param("VkDynamicColorBlendState", "dynamicColorBlendState")]), |
| 749 | |
| 750 | Proto("void", "CmdBindDynamicDepthStencilState", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 751 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 752 | Param("VkDynamicDepthStencilState", "dynamicDepthStencilState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 753 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 754 | Proto("void", "CmdBindDescriptorSets", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 755 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 756 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 757 | Param("VkPipelineLayout", "layout"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 758 | Param("uint32_t", "firstSet"), |
| 759 | Param("uint32_t", "setCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 760 | Param("const VkDescriptorSet*", "pDescriptorSets"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 761 | Param("uint32_t", "dynamicOffsetCount"), |
| 762 | Param("const uint32_t*", "pDynamicOffsets")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 763 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 764 | Proto("void", "CmdBindIndexBuffer", |
| 765 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 766 | Param("VkBuffer", "buffer"), |
| 767 | Param("VkDeviceSize", "offset"), |
| 768 | Param("VkIndexType", "indexType")]), |
| 769 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 770 | Proto("void", "CmdBindVertexBuffers", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 771 | [Param("VkCmdBuffer", "cmdBuffer"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 772 | Param("uint32_t", "startBinding"), |
| 773 | Param("uint32_t", "bindingCount"), |
| 774 | Param("const VkBuffer*", "pBuffers"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 775 | Param("const VkDeviceSize*", "pOffsets")]), |
| 776 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 777 | Proto("void", "CmdDraw", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 778 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 779 | Param("uint32_t", "firstVertex"), |
| 780 | Param("uint32_t", "vertexCount"), |
| 781 | Param("uint32_t", "firstInstance"), |
| 782 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 783 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 784 | Proto("void", "CmdDrawIndexed", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 785 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 786 | Param("uint32_t", "firstIndex"), |
| 787 | Param("uint32_t", "indexCount"), |
| 788 | Param("int32_t", "vertexOffset"), |
| 789 | Param("uint32_t", "firstInstance"), |
| 790 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 791 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 792 | Proto("void", "CmdDrawIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 793 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 794 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 795 | Param("VkDeviceSize", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 796 | Param("uint32_t", "count"), |
| 797 | Param("uint32_t", "stride")]), |
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", "CmdDrawIndexedIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 800 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 801 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 802 | Param("VkDeviceSize", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 803 | Param("uint32_t", "count"), |
| 804 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 805 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 806 | Proto("void", "CmdDispatch", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 807 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 808 | Param("uint32_t", "x"), |
| 809 | Param("uint32_t", "y"), |
| 810 | Param("uint32_t", "z")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 811 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 812 | Proto("void", "CmdDispatchIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 813 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 814 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 815 | Param("VkDeviceSize", "offset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 816 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 817 | Proto("void", "CmdCopyBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 818 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 819 | Param("VkBuffer", "srcBuffer"), |
| 820 | Param("VkBuffer", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 821 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 822 | Param("const VkBufferCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 823 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 824 | Proto("void", "CmdCopyImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 825 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 826 | Param("VkImage", "srcImage"), |
| 827 | Param("VkImageLayout", "srcImageLayout"), |
| 828 | Param("VkImage", "destImage"), |
| 829 | Param("VkImageLayout", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 830 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 831 | Param("const VkImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 832 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 833 | Proto("void", "CmdBlitImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 834 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 835 | Param("VkImage", "srcImage"), |
| 836 | Param("VkImageLayout", "srcImageLayout"), |
| 837 | Param("VkImage", "destImage"), |
| 838 | Param("VkImageLayout", "destImageLayout"), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 839 | Param("uint32_t", "regionCount"), |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 840 | Param("const VkImageBlit*", "pRegions"), |
| 841 | Param("VkTexFilter", "filter")]), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 842 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 843 | Proto("void", "CmdCopyBufferToImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 844 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 845 | Param("VkBuffer", "srcBuffer"), |
| 846 | Param("VkImage", "destImage"), |
| 847 | Param("VkImageLayout", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 848 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 849 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 850 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 851 | Proto("void", "CmdCopyImageToBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 852 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 853 | Param("VkImage", "srcImage"), |
| 854 | Param("VkImageLayout", "srcImageLayout"), |
| 855 | Param("VkBuffer", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 856 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 857 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 858 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 859 | Proto("void", "CmdUpdateBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 860 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 861 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 862 | Param("VkDeviceSize", "destOffset"), |
| 863 | Param("VkDeviceSize", "dataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 864 | Param("const uint32_t*", "pData")]), |
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", "CmdFillBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 867 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 868 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 869 | Param("VkDeviceSize", "destOffset"), |
| 870 | Param("VkDeviceSize", "fillSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 871 | Param("uint32_t", "data")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 872 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 873 | Proto("void", "CmdClearColorImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 874 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 875 | Param("VkImage", "image"), |
| 876 | Param("VkImageLayout", "imageLayout"), |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 877 | Param("const VkClearColorValue*", "pColor"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 878 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 879 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 880 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 881 | Proto("void", "CmdClearDepthStencilImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 882 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 883 | Param("VkImage", "image"), |
| 884 | Param("VkImageLayout", "imageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 885 | Param("float", "depth"), |
| 886 | Param("uint32_t", "stencil"), |
| 887 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 888 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 889 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 890 | Proto("void", "CmdClearColorAttachment", |
| 891 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 892 | Param("uint32_t", "colorAttachment"), |
| 893 | Param("VkImageLayout", "imageLayout"), |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 894 | Param("const VkClearColorValue*", "pColor"), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 895 | Param("uint32_t", "rectCount"), |
| 896 | Param("const VkRect3D*", "pRects")]), |
| 897 | |
| 898 | Proto("void", "CmdClearDepthStencilAttachment", |
| 899 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 900 | Param("VkImageAspectFlags", "imageAspectMask"), |
| 901 | Param("VkImageLayout", "imageLayout"), |
| 902 | Param("float", "depth"), |
| 903 | Param("uint32_t", "stencil"), |
| 904 | Param("uint32_t", "rectCount"), |
| 905 | Param("const VkRect3D*", "pRects")]), |
| 906 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 907 | Proto("void", "CmdResolveImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 908 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 909 | Param("VkImage", "srcImage"), |
| 910 | Param("VkImageLayout", "srcImageLayout"), |
| 911 | Param("VkImage", "destImage"), |
| 912 | Param("VkImageLayout", "destImageLayout"), |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 913 | Param("uint32_t", "regionCount"), |
| 914 | Param("const VkImageResolve*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 915 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 916 | Proto("void", "CmdSetEvent", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 917 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 918 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 919 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 920 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 921 | Proto("void", "CmdResetEvent", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 922 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 923 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 924 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 925 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 926 | Proto("void", "CmdWaitEvents", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 927 | [Param("VkCmdBuffer", "cmdBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 928 | Param("uint32_t", "eventCount"), |
| 929 | Param("const VkEvent*", "pEvents"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 930 | Param("VkPipelineStageFlags", "sourceStageMask"), |
| 931 | Param("VkPipelineStageFlags", "destStageMask"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 932 | Param("uint32_t", "memBarrierCount"), |
Courtney Goeltzenleuchter | dbd2032 | 2015-07-12 12:58:58 -0600 | [diff] [blame] | 933 | Param("const void* const*", "ppMemBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 934 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 935 | Proto("void", "CmdPipelineBarrier", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 936 | [Param("VkCmdBuffer", "cmdBuffer"), |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame^] | 937 | Param("VkPipelineStageFlags", "srcStageMask"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 938 | Param("VkPipelineStageFlags", "destStageMask"), |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 939 | Param("VkBool32", "byRegion"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 940 | Param("uint32_t", "memBarrierCount"), |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame^] | 941 | Param("const void* const*", "ppMemBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 942 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 943 | Proto("void", "CmdBeginQuery", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 944 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 945 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 946 | Param("uint32_t", "slot"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 947 | Param("VkQueryControlFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 948 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 949 | Proto("void", "CmdEndQuery", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 950 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 951 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 952 | Param("uint32_t", "slot")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 953 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 954 | Proto("void", "CmdResetQueryPool", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 955 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 956 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 957 | Param("uint32_t", "startQuery"), |
| 958 | Param("uint32_t", "queryCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 959 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 960 | Proto("void", "CmdWriteTimestamp", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 961 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 962 | Param("VkTimestampType", "timestampType"), |
| 963 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 964 | Param("VkDeviceSize", "destOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 965 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 966 | Proto("void", "CmdCopyQueryPoolResults", |
| 967 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 968 | Param("VkQueryPool", "queryPool"), |
| 969 | Param("uint32_t", "startQuery"), |
| 970 | Param("uint32_t", "queryCount"), |
| 971 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 972 | Param("VkDeviceSize", "destOffset"), |
| 973 | Param("VkDeviceSize", "destStride"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 974 | Param("VkQueryResultFlags", "flags")]), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 975 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 976 | Proto("VkResult", "CreateFramebuffer", |
| 977 | [Param("VkDevice", "device"), |
| 978 | Param("const VkFramebufferCreateInfo*", "pCreateInfo"), |
| 979 | Param("VkFramebuffer*", "pFramebuffer")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 980 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 981 | Proto("VkResult", "DestroyFramebuffer", |
| 982 | [Param("VkDevice", "device"), |
| 983 | Param("VkFramebuffer", "framebuffer")]), |
| 984 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 985 | Proto("VkResult", "CreateRenderPass", |
| 986 | [Param("VkDevice", "device"), |
| 987 | Param("const VkRenderPassCreateInfo*", "pCreateInfo"), |
| 988 | Param("VkRenderPass*", "pRenderPass")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 989 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 990 | Proto("VkResult", "DestroyRenderPass", |
| 991 | [Param("VkDevice", "device"), |
| 992 | Param("VkRenderPass", "renderPass")]), |
| 993 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 994 | Proto("void", "CmdBeginRenderPass", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 995 | [Param("VkCmdBuffer", "cmdBuffer"), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 996 | Param("const VkRenderPassBeginInfo*", "pRenderPassBegin"), |
| 997 | Param("VkRenderPassContents", "contents")]), |
| 998 | |
| 999 | Proto("void", "CmdNextSubpass", |
| 1000 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 1001 | Param("VkRenderPassContents", "contents")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 1002 | |
| 1003 | Proto("void", "CmdEndRenderPass", |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 1004 | [Param("VkCmdBuffer", "cmdBuffer")]), |
| 1005 | |
| 1006 | Proto("void", "CmdExecuteCommands", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1007 | [Param("VkCmdBuffer", "cmdBuffer"), |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 1008 | Param("uint32_t", "cmdBuffersCount"), |
| 1009 | Param("const VkCmdBuffer*", "pCmdBuffers")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1010 | ], |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 1011 | ) |
| 1012 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1013 | wsi_lunarg = Extension( |
| 1014 | name="VK_WSI_LunarG", |
| 1015 | headers=["vk_wsi_lunarg.h"], |
| 1016 | objects=[ |
| 1017 | "VkDisplayWSI", |
| 1018 | "VkSwapChainWSI", |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1019 | "VkDbgMsgCallback", |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1020 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1021 | protos=[ |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1022 | Proto("VkResult", "CreateSwapChainWSI", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1023 | [Param("VkDevice", "device"), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1024 | Param("const VkSwapChainCreateInfoWSI*", "pCreateInfo"), |
| 1025 | Param("VkSwapChainWSI*", "pSwapChain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1026 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1027 | Proto("VkResult", "DestroySwapChainWSI", |
| 1028 | [Param("VkSwapChainWSI", "swapChain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1029 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1030 | Proto("VkResult", "GetSwapChainInfoWSI", |
| 1031 | [Param("VkSwapChainWSI", "swapChain"), |
| 1032 | Param("VkSwapChainInfoTypeWSI", "infoType"), |
| 1033 | Param("size_t*", "pDataSize"), |
| 1034 | Param("void*", "pData")]), |
| 1035 | |
| 1036 | Proto("VkResult", "QueuePresentWSI", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1037 | [Param("VkQueue", "queue"), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1038 | Param("const VkPresentInfoWSI*", "pPresentInfo")]), |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1039 | |
| 1040 | # Proto("VkResult", "DbgCreateMsgCallback", |
| 1041 | # [Param("VkInstance", "instance"), |
| 1042 | # Param("VkFlags", "msgFlags"), |
| 1043 | # Param("PFN_vkDbgMsgCallback", "pfnMsgCallback"), |
| 1044 | # Param("void*", "pUserData"), |
| 1045 | # Param("VkDbgMsgCallback*", "pMsgCallback")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1046 | ], |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1047 | ) |
| 1048 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1049 | extensions = [core, wsi_lunarg] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1050 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1051 | object_dispatch_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1052 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1053 | "VkPhysicalDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1054 | "VkDevice", |
| 1055 | "VkQueue", |
| 1056 | "VkCmdBuffer", |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1057 | "VkDisplayWSI", |
| 1058 | "VkSwapChainWSI", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1059 | ] |
| 1060 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1061 | object_non_dispatch_list = [ |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1062 | "VkCmdPool", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1063 | "VkFence", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1064 | "VkDeviceMemory", |
| 1065 | "VkBuffer", |
| 1066 | "VkImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1067 | "VkSemaphore", |
| 1068 | "VkEvent", |
| 1069 | "VkQueryPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1070 | "VkBufferView", |
| 1071 | "VkImageView", |
| 1072 | "VkAttachmentView", |
| 1073 | "VkShaderModule", |
| 1074 | "VkShader", |
| 1075 | "VkPipelineCache", |
| 1076 | "VkPipelineLayout", |
| 1077 | "VkPipeline", |
| 1078 | "VkDescriptorSetLayout", |
| 1079 | "VkSampler", |
| 1080 | "VkDescriptorPool", |
| 1081 | "VkDescriptorSet", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1082 | "VkDynamicViewportState", |
| 1083 | "VkDynamicRasterState", |
| 1084 | "VkDynamicColorBlendState", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1085 | "VkDynamicDepthStencilState", |
| 1086 | "VkRenderPass", |
| 1087 | "VkFramebuffer", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1088 | ] |
| 1089 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1090 | object_type_list = object_dispatch_list + object_non_dispatch_list |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1091 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1092 | headers = [] |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1093 | objects = [] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1094 | protos = [] |
| 1095 | for ext in extensions: |
| 1096 | headers.extend(ext.headers) |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1097 | objects.extend(ext.objects) |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1098 | protos.extend(ext.protos) |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1099 | |
Chia-I Wu | 9a4ceb1 | 2015-01-01 14:45:58 +0800 | [diff] [blame] | 1100 | proto_names = [proto.name for proto in protos] |
Chia-I Wu | 900a257 | 2014-08-01 14:44:16 +0800 | [diff] [blame] | 1101 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1102 | def parse_vk_h(filename): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1103 | # read object and protoype typedefs |
| 1104 | object_lines = [] |
| 1105 | proto_lines = [] |
| 1106 | with open(filename, "r") as fp: |
| 1107 | for line in fp: |
| 1108 | line = line.strip() |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1109 | if line.startswith("VK_DEFINE"): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1110 | begin = line.find("(") + 1 |
| 1111 | end = line.find(",") |
| 1112 | # extract the object type |
| 1113 | object_lines.append(line[begin:end]) |
| 1114 | if line.startswith("typedef") and line.endswith(");"): |
| 1115 | # drop leading "typedef " and trailing ");" |
| 1116 | proto_lines.append(line[8:-2]) |
| 1117 | |
| 1118 | # parse proto_lines to protos |
| 1119 | protos = [] |
| 1120 | for line in proto_lines: |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1121 | first, rest = line.split(" (VKAPI *PFN_vk") |
| 1122 | second, third = rest.split(")(") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1123 | |
| 1124 | # get the return type, no space before "*" |
| 1125 | proto_ret = "*".join([t.rstrip() for t in first.split("*")]) |
| 1126 | |
| 1127 | # get the name |
| 1128 | proto_name = second.strip() |
| 1129 | |
| 1130 | # get the list of params |
| 1131 | param_strs = third.split(", ") |
| 1132 | params = [] |
| 1133 | for s in param_strs: |
| 1134 | ty, name = s.rsplit(" ", 1) |
| 1135 | |
| 1136 | # no space before "*" |
| 1137 | ty = "*".join([t.rstrip() for t in ty.split("*")]) |
| 1138 | # attach [] to ty |
| 1139 | idx = name.rfind("[") |
| 1140 | if idx >= 0: |
| 1141 | ty += name[idx:] |
| 1142 | name = name[:idx] |
| 1143 | |
| 1144 | params.append(Param(ty, name)) |
| 1145 | |
| 1146 | protos.append(Proto(proto_ret, proto_name, params)) |
| 1147 | |
| 1148 | # make them an extension and print |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1149 | ext = Extension("VK_CORE", |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 1150 | headers=["vulkan.h", "vk_debug_report_lunarg.h"], |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1151 | objects=object_lines, |
| 1152 | protos=protos) |
| 1153 | print("core =", str(ext)) |
| 1154 | |
| 1155 | print("") |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1156 | print("typedef struct VkLayerDispatchTable_") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1157 | print("{") |
| 1158 | for proto in ext.protos: |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1159 | print(" vk%sType %s;" % (proto.name, proto.name)) |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1160 | print("} VkLayerDispatchTable;") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1161 | |
| 1162 | if __name__ == "__main__": |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1163 | parse_vk_h("include/vulkan.h") |