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 | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 184 | headers=["vulkan.h", "vkDbg.h"], |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 185 | |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 186 | objects=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 187 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 188 | "VkPhysicalDevice", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 189 | "VkBaseObject", |
| 190 | "VkDevice", |
| 191 | "VkQueue", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 192 | "VkDeviceMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 193 | "VkObject", |
| 194 | "VkBuffer", |
| 195 | "VkBufferView", |
| 196 | "VkImage", |
| 197 | "VkImageView", |
| 198 | "VkColorAttachmentView", |
| 199 | "VkDepthStencilView", |
| 200 | "VkShader", |
| 201 | "VkPipeline", |
| 202 | "VkSampler", |
| 203 | "VkDescriptorSet", |
| 204 | "VkDescriptorSetLayout", |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 205 | "VkPipelineLayout", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 206 | "VkDescriptorPool", |
| 207 | "VkDynamicStateObject", |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 208 | "VkDynamicVpState", |
| 209 | "VkDynamicRsState", |
| 210 | "VkDynamicCbState", |
| 211 | "VkDynamicDsState", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 212 | "VkCmdBuffer", |
| 213 | "VkFence", |
| 214 | "VkSemaphore", |
| 215 | "VkEvent", |
| 216 | "VkQueryPool", |
| 217 | "VkFramebuffer", |
| 218 | "VkRenderPass", |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 219 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 220 | protos=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 221 | Proto("VkResult", "CreateInstance", |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 222 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 223 | Param("VkInstance*", "pInstance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 224 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 225 | Proto("VkResult", "DestroyInstance", |
| 226 | [Param("VkInstance", "instance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 227 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 228 | Proto("VkResult", "EnumeratePhysicalDevices", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 229 | [Param("VkInstance", "instance"), |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 230 | Param("uint32_t*", "pPhysicalDeviceCount"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 231 | Param("VkPhysicalDevice*", "pPhysicalDevices")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 232 | |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 233 | Proto("VkResult", "GetPhysicalDeviceInfo", |
| 234 | [Param("VkPhysicalDevice", "gpu"), |
| 235 | Param("VkPhysicalDeviceInfoType", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 236 | Param("size_t*", "pDataSize"), |
| 237 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 238 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 239 | Proto("void*", "GetProcAddr", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 240 | [Param("VkPhysicalDevice", "gpu"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 241 | Param("const char*", "pName")]), |
Chia-I Wu | f2ffc52 | 2015-01-04 14:51:06 +0800 | [diff] [blame] | 242 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 243 | Proto("VkResult", "CreateDevice", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 244 | [Param("VkPhysicalDevice", "gpu"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 245 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 246 | Param("VkDevice*", "pDevice")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 247 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 248 | Proto("VkResult", "DestroyDevice", |
| 249 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 250 | |
Jon Ashburn | 9fd4cc4 | 2015-04-10 14:33:07 -0600 | [diff] [blame] | 251 | Proto("VkResult", "GetGlobalExtensionInfo", |
| 252 | [Param("VkExtensionInfoType", "infoType"), |
| 253 | Param("uint32_t", "extensionIndex"), |
| 254 | Param("size_t*", "pDataSize"), |
| 255 | Param("void*", "pData")]), |
| 256 | |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 257 | Proto("VkResult", "GetPhysicalDeviceExtensionInfo", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 258 | [Param("VkPhysicalDevice", "gpu"), |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 259 | Param("VkExtensionInfoType", "infoType"), |
| 260 | Param("uint32_t", "extensionIndex"), |
| 261 | Param("size_t*", "pDataSize"), |
| 262 | Param("void*", "pData")]), |
| 263 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 264 | Proto("VkResult", "EnumerateLayers", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 265 | [Param("VkPhysicalDevice", "gpu"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 266 | Param("size_t", "maxLayerCount"), |
| 267 | Param("size_t", "maxStringSize"), |
| 268 | Param("size_t*", "pOutLayerCount"), |
| 269 | Param("char* const*", "pOutLayers"), |
| 270 | Param("void*", "pReserved")]), |
Jon Ashburn | f7bcf9b | 2014-10-15 15:30:23 -0600 | [diff] [blame] | 271 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 272 | Proto("VkResult", "GetDeviceQueue", |
| 273 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 18248e6 | 2015-03-05 18:09:39 -0700 | [diff] [blame] | 274 | Param("uint32_t", "queueNodeIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 275 | Param("uint32_t", "queueIndex"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 276 | Param("VkQueue*", "pQueue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 277 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 278 | Proto("VkResult", "QueueSubmit", |
| 279 | [Param("VkQueue", "queue"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 280 | Param("uint32_t", "cmdBufferCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 281 | Param("const VkCmdBuffer*", "pCmdBuffers"), |
| 282 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 283 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 284 | Proto("VkResult", "QueueAddMemReferences", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 285 | [Param("VkQueue", "queue"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 286 | Param("uint32_t", "count"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 287 | Param("const VkDeviceMemory*", "pMems")]), |
Courtney Goeltzenleuchter | d3fb955 | 2015-04-02 13:39:07 -0600 | [diff] [blame] | 288 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 289 | Proto("VkResult", "QueueRemoveMemReferences", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 290 | [Param("VkQueue", "queue"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 291 | Param("uint32_t", "count"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 292 | Param("const VkDeviceMemory*", "pMems")]), |
Courtney Goeltzenleuchter | d3fb955 | 2015-04-02 13:39:07 -0600 | [diff] [blame] | 293 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 294 | Proto("VkResult", "QueueWaitIdle", |
| 295 | [Param("VkQueue", "queue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 296 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 297 | Proto("VkResult", "DeviceWaitIdle", |
| 298 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 299 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 300 | Proto("VkResult", "AllocMemory", |
| 301 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 302 | Param("const VkMemoryAllocInfo*", "pAllocInfo"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 303 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 304 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 305 | Proto("VkResult", "FreeMemory", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 306 | [Param("VkDeviceMemory", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 307 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 308 | Proto("VkResult", "SetMemoryPriority", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 309 | [Param("VkDeviceMemory", "mem"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 310 | Param("VkMemoryPriority", "priority")]), |
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", "MapMemory", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 313 | [Param("VkDeviceMemory", "mem"), |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 314 | Param("VkDeviceSize", "offset"), |
| 315 | Param("VkDeviceSize", "size"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 316 | Param("VkFlags", "flags"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 317 | Param("void**", "ppData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 318 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 319 | Proto("VkResult", "UnmapMemory", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 320 | [Param("VkDeviceMemory", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 321 | |
Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 322 | Proto("VkResult", "FlushMappedMemory", |
| 323 | [Param("VkDeviceMemory", "mem"), |
| 324 | Param("VkDeviceSize", "offset"), |
| 325 | Param("VkDeviceSize", "size")]), |
| 326 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 327 | Proto("VkResult", "PinSystemMemory", |
| 328 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 329 | Param("const void*", "pSysMem"), |
| 330 | Param("size_t", "memSize"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 331 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 332 | |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 333 | Proto("VkResult", "GetMultiDeviceCompatibility", |
| 334 | [Param("VkPhysicalDevice", "gpu0"), |
| 335 | Param("VkPhysicalDevice", "gpu1"), |
| 336 | Param("VkPhysicalDeviceCompatibilityInfo*", "pInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 337 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 338 | Proto("VkResult", "OpenSharedMemory", |
| 339 | [Param("VkDevice", "device"), |
| 340 | Param("const VkMemoryOpenInfo*", "pOpenInfo"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 341 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 342 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 343 | Proto("VkResult", "OpenSharedSemaphore", |
| 344 | [Param("VkDevice", "device"), |
| 345 | Param("const VkSemaphoreOpenInfo*", "pOpenInfo"), |
| 346 | Param("VkSemaphore*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 347 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 348 | Proto("VkResult", "OpenPeerMemory", |
| 349 | [Param("VkDevice", "device"), |
| 350 | Param("const VkPeerMemoryOpenInfo*", "pOpenInfo"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 351 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 352 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 353 | Proto("VkResult", "OpenPeerImage", |
| 354 | [Param("VkDevice", "device"), |
| 355 | Param("const VkPeerImageOpenInfo*", "pOpenInfo"), |
| 356 | Param("VkImage*", "pImage"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 357 | Param("VkDeviceMemory*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 358 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 359 | Proto("VkResult", "DestroyObject", |
| 360 | [Param("VkObject", "object")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 361 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 362 | Proto("VkResult", "GetObjectInfo", |
| 363 | [Param("VkBaseObject", "object"), |
| 364 | Param("VkObjectInfoType", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 365 | Param("size_t*", "pDataSize"), |
| 366 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 367 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 368 | Proto("VkResult", "QueueBindObjectMemory", |
| 369 | [Param("VkQueue", "queue"), |
| 370 | Param("VkObject", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 371 | Param("uint32_t", "allocationIdx"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 372 | Param("VkDeviceMemory", "mem"), |
| 373 | Param("VkDeviceSize", "offset")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 374 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 375 | Proto("VkResult", "QueueBindObjectMemoryRange", |
| 376 | [Param("VkQueue", "queue"), |
| 377 | Param("VkObject", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 378 | Param("uint32_t", "allocationIdx"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 379 | Param("VkDeviceSize", "rangeOffset"), |
| 380 | Param("VkDeviceSize", "rangeSize"), |
| 381 | Param("VkDeviceMemory", "mem"), |
| 382 | Param("VkDeviceSize", "memOffset")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 383 | |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 384 | Proto("VkResult", "QueueBindImageMemoryRange", |
| 385 | [Param("VkQueue", "queue"), |
| 386 | Param("VkImage", "image"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 387 | Param("uint32_t", "allocationIdx"), |
Jeremy Hayes | af0d72c | 2015-04-15 15:20:03 -0600 | [diff] [blame] | 388 | Param("const VkImageMemoryBindInfo*", "pBindInfo"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 389 | Param("VkDeviceMemory", "mem"), |
| 390 | Param("VkDeviceSize", "memOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 391 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 392 | Proto("VkResult", "CreateFence", |
| 393 | [Param("VkDevice", "device"), |
| 394 | Param("const VkFenceCreateInfo*", "pCreateInfo"), |
| 395 | Param("VkFence*", "pFence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 396 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 397 | Proto("VkResult", "ResetFences", |
| 398 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 399 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 400 | Param("VkFence*", "pFences")]), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 401 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 402 | Proto("VkResult", "GetFenceStatus", |
| 403 | [Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 404 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 405 | Proto("VkResult", "WaitForFences", |
| 406 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 407 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 408 | Param("const VkFence*", "pFences"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 409 | Param("bool32_t", "waitAll"), |
| 410 | Param("uint64_t", "timeout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 411 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 412 | Proto("VkResult", "CreateSemaphore", |
| 413 | [Param("VkDevice", "device"), |
| 414 | Param("const VkSemaphoreCreateInfo*", "pCreateInfo"), |
| 415 | Param("VkSemaphore*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 416 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 417 | Proto("VkResult", "QueueSignalSemaphore", |
| 418 | [Param("VkQueue", "queue"), |
| 419 | Param("VkSemaphore", "semaphore")]), |
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", "QueueWaitSemaphore", |
| 422 | [Param("VkQueue", "queue"), |
| 423 | Param("VkSemaphore", "semaphore")]), |
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", "CreateEvent", |
| 426 | [Param("VkDevice", "device"), |
| 427 | Param("const VkEventCreateInfo*", "pCreateInfo"), |
| 428 | Param("VkEvent*", "pEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 429 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 430 | Proto("VkResult", "GetEventStatus", |
| 431 | [Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 432 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 433 | Proto("VkResult", "SetEvent", |
| 434 | [Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 435 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 436 | Proto("VkResult", "ResetEvent", |
| 437 | [Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 438 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 439 | Proto("VkResult", "CreateQueryPool", |
| 440 | [Param("VkDevice", "device"), |
| 441 | Param("const VkQueryPoolCreateInfo*", "pCreateInfo"), |
| 442 | Param("VkQueryPool*", "pQueryPool")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 443 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 444 | Proto("VkResult", "GetQueryPoolResults", |
| 445 | [Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 446 | Param("uint32_t", "startQuery"), |
| 447 | Param("uint32_t", "queryCount"), |
| 448 | Param("size_t*", "pDataSize"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 449 | Param("void*", "pData"), |
| 450 | Param("VkQueryResultFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 451 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 452 | Proto("VkResult", "GetFormatInfo", |
| 453 | [Param("VkDevice", "device"), |
| 454 | Param("VkFormat", "format"), |
| 455 | Param("VkFormatInfoType", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 456 | Param("size_t*", "pDataSize"), |
| 457 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 458 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 459 | Proto("VkResult", "CreateBuffer", |
| 460 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 461 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 462 | Param("VkBuffer*", "pBuffer")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 463 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 464 | Proto("VkResult", "CreateBufferView", |
| 465 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 466 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 467 | Param("VkBufferView*", "pView")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 468 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 469 | Proto("VkResult", "CreateImage", |
| 470 | [Param("VkDevice", "device"), |
| 471 | Param("const VkImageCreateInfo*", "pCreateInfo"), |
| 472 | Param("VkImage*", "pImage")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 473 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 474 | Proto("VkResult", "GetImageSubresourceInfo", |
| 475 | [Param("VkImage", "image"), |
| 476 | Param("const VkImageSubresource*", "pSubresource"), |
| 477 | Param("VkSubresourceInfoType", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 478 | Param("size_t*", "pDataSize"), |
| 479 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 480 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 481 | Proto("VkResult", "CreateImageView", |
| 482 | [Param("VkDevice", "device"), |
| 483 | Param("const VkImageViewCreateInfo*", "pCreateInfo"), |
| 484 | Param("VkImageView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 485 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 486 | Proto("VkResult", "CreateColorAttachmentView", |
| 487 | [Param("VkDevice", "device"), |
| 488 | Param("const VkColorAttachmentViewCreateInfo*", "pCreateInfo"), |
| 489 | Param("VkColorAttachmentView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 490 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 491 | Proto("VkResult", "CreateDepthStencilView", |
| 492 | [Param("VkDevice", "device"), |
| 493 | Param("const VkDepthStencilViewCreateInfo*", "pCreateInfo"), |
| 494 | Param("VkDepthStencilView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 495 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 496 | Proto("VkResult", "CreateShader", |
| 497 | [Param("VkDevice", "device"), |
| 498 | Param("const VkShaderCreateInfo*", "pCreateInfo"), |
| 499 | Param("VkShader*", "pShader")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 500 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 501 | Proto("VkResult", "CreateGraphicsPipeline", |
| 502 | [Param("VkDevice", "device"), |
| 503 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfo"), |
| 504 | Param("VkPipeline*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 505 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 506 | Proto("VkResult", "CreateGraphicsPipelineDerivative", |
| 507 | [Param("VkDevice", "device"), |
| 508 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfo"), |
| 509 | Param("VkPipeline", "basePipeline"), |
| 510 | Param("VkPipeline*", "pPipeline")]), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 511 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 512 | Proto("VkResult", "CreateComputePipeline", |
| 513 | [Param("VkDevice", "device"), |
| 514 | Param("const VkComputePipelineCreateInfo*", "pCreateInfo"), |
| 515 | Param("VkPipeline*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 516 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 517 | Proto("VkResult", "StorePipeline", |
| 518 | [Param("VkPipeline", "pipeline"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 519 | Param("size_t*", "pDataSize"), |
| 520 | Param("void*", "pData")]), |
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", "LoadPipeline", |
| 523 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 524 | Param("size_t", "dataSize"), |
| 525 | Param("const void*", "pData"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 526 | Param("VkPipeline*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 527 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 528 | Proto("VkResult", "LoadPipelineDerivative", |
| 529 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 530 | Param("size_t", "dataSize"), |
| 531 | Param("const void*", "pData"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 532 | Param("VkPipeline", "basePipeline"), |
| 533 | Param("VkPipeline*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 534 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 535 | Proto("VkResult", "CreatePipelineLayout", |
| 536 | [Param("VkDevice", "device"), |
| 537 | Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"), |
| 538 | Param("VkPipelineLayout*", "pPipelineLayout")]), |
| 539 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 540 | Proto("VkResult", "CreateSampler", |
| 541 | [Param("VkDevice", "device"), |
| 542 | Param("const VkSamplerCreateInfo*", "pCreateInfo"), |
| 543 | Param("VkSampler*", "pSampler")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 544 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 545 | Proto("VkResult", "CreateDescriptorSetLayout", |
| 546 | [Param("VkDevice", "device"), |
| 547 | Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"), |
| 548 | Param("VkDescriptorSetLayout*", "pSetLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 549 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 550 | Proto("VkResult", "BeginDescriptorPoolUpdate", |
| 551 | [Param("VkDevice", "device"), |
| 552 | Param("VkDescriptorUpdateMode", "updateMode")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 553 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 554 | Proto("VkResult", "EndDescriptorPoolUpdate", |
| 555 | [Param("VkDevice", "device"), |
| 556 | Param("VkCmdBuffer", "cmd")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 557 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 558 | Proto("VkResult", "CreateDescriptorPool", |
| 559 | [Param("VkDevice", "device"), |
| 560 | Param("VkDescriptorPoolUsage", "poolUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 561 | Param("uint32_t", "maxSets"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 562 | Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"), |
| 563 | Param("VkDescriptorPool*", "pDescriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 564 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 565 | Proto("VkResult", "ResetDescriptorPool", |
| 566 | [Param("VkDescriptorPool", "descriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 567 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 568 | Proto("VkResult", "AllocDescriptorSets", |
| 569 | [Param("VkDescriptorPool", "descriptorPool"), |
| 570 | Param("VkDescriptorSetUsage", "setUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 571 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 572 | Param("const VkDescriptorSetLayout*", "pSetLayouts"), |
| 573 | Param("VkDescriptorSet*", "pDescriptorSets"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 574 | Param("uint32_t*", "pCount")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 575 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 576 | Proto("void", "ClearDescriptorSets", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 577 | [Param("VkDescriptorPool", "descriptorPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 578 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 579 | Param("const VkDescriptorSet*", "pDescriptorSets")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 580 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 581 | Proto("void", "UpdateDescriptors", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 582 | [Param("VkDescriptorSet", "descriptorSet"), |
Chia-I Wu | 41126e5 | 2015-03-26 15:27:55 +0800 | [diff] [blame] | 583 | Param("uint32_t", "updateCount"), |
| 584 | Param("const void**", "ppUpdateArray")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 585 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 586 | Proto("VkResult", "CreateDynamicViewportState", |
| 587 | [Param("VkDevice", "device"), |
| 588 | Param("const VkDynamicVpStateCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 589 | Param("VkDynamicVpState*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 590 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 591 | Proto("VkResult", "CreateDynamicRasterState", |
| 592 | [Param("VkDevice", "device"), |
| 593 | Param("const VkDynamicRsStateCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 594 | Param("VkDynamicRsState*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 595 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 596 | Proto("VkResult", "CreateDynamicColorBlendState", |
| 597 | [Param("VkDevice", "device"), |
| 598 | Param("const VkDynamicCbStateCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 599 | Param("VkDynamicCbState*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 600 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 601 | Proto("VkResult", "CreateDynamicDepthStencilState", |
| 602 | [Param("VkDevice", "device"), |
| 603 | Param("const VkDynamicDsStateCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 604 | Param("VkDynamicDsState*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 605 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 606 | Proto("VkResult", "CreateCommandBuffer", |
| 607 | [Param("VkDevice", "device"), |
| 608 | Param("const VkCmdBufferCreateInfo*", "pCreateInfo"), |
| 609 | Param("VkCmdBuffer*", "pCmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 610 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 611 | Proto("VkResult", "BeginCommandBuffer", |
| 612 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 613 | Param("const VkCmdBufferBeginInfo*", "pBeginInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 614 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 615 | Proto("VkResult", "EndCommandBuffer", |
| 616 | [Param("VkCmdBuffer", "cmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 617 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 618 | Proto("VkResult", "ResetCommandBuffer", |
| 619 | [Param("VkCmdBuffer", "cmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 620 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 621 | Proto("void", "CmdBindPipeline", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 622 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 623 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
| 624 | Param("VkPipeline", "pipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 625 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 626 | Proto("void", "CmdBindDynamicStateObject", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 627 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 628 | Param("VkStateBindPoint", "stateBindPoint"), |
| 629 | Param("VkDynamicStateObject", "state")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 630 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 631 | Proto("void", "CmdBindDescriptorSets", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 632 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 633 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 634 | Param("uint32_t", "firstSet"), |
| 635 | Param("uint32_t", "setCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 636 | Param("const VkDescriptorSet*", "pDescriptorSets"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 637 | Param("uint32_t", "dynamicOffsetCount"), |
| 638 | Param("const uint32_t*", "pDynamicOffsets")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 639 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 640 | Proto("void", "CmdBindVertexBuffers", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 641 | [Param("VkCmdBuffer", "cmdBuffer"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 642 | Param("uint32_t", "startBinding"), |
| 643 | Param("uint32_t", "bindingCount"), |
| 644 | Param("const VkBuffer*", "pBuffers"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 645 | Param("const VkDeviceSize*", "pOffsets")]), |
| 646 | |
Chia-I Wu | 7a42e12 | 2014-11-08 10:48:20 +0800 | [diff] [blame] | 647 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 648 | Proto("void", "CmdBindIndexBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 649 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 650 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 651 | Param("VkDeviceSize", "offset"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 652 | Param("VkIndexType", "indexType")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 653 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 654 | Proto("void", "CmdDraw", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 655 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 656 | Param("uint32_t", "firstVertex"), |
| 657 | Param("uint32_t", "vertexCount"), |
| 658 | Param("uint32_t", "firstInstance"), |
| 659 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 660 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 661 | Proto("void", "CmdDrawIndexed", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 662 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 663 | Param("uint32_t", "firstIndex"), |
| 664 | Param("uint32_t", "indexCount"), |
| 665 | Param("int32_t", "vertexOffset"), |
| 666 | Param("uint32_t", "firstInstance"), |
| 667 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 668 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 669 | Proto("void", "CmdDrawIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 670 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 671 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 672 | Param("VkDeviceSize", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 673 | Param("uint32_t", "count"), |
| 674 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 675 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 676 | Proto("void", "CmdDrawIndexedIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 677 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 678 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 679 | Param("VkDeviceSize", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 680 | Param("uint32_t", "count"), |
| 681 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 682 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 683 | Proto("void", "CmdDispatch", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 684 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 685 | Param("uint32_t", "x"), |
| 686 | Param("uint32_t", "y"), |
| 687 | Param("uint32_t", "z")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 688 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 689 | Proto("void", "CmdDispatchIndirect", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 690 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 691 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 692 | Param("VkDeviceSize", "offset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 693 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 694 | Proto("void", "CmdCopyBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 695 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 696 | Param("VkBuffer", "srcBuffer"), |
| 697 | Param("VkBuffer", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 698 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 699 | Param("const VkBufferCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 700 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 701 | Proto("void", "CmdCopyImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 702 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 703 | Param("VkImage", "srcImage"), |
| 704 | Param("VkImageLayout", "srcImageLayout"), |
| 705 | Param("VkImage", "destImage"), |
| 706 | Param("VkImageLayout", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 707 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 708 | Param("const VkImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 709 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 710 | Proto("void", "CmdBlitImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 711 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 712 | Param("VkImage", "srcImage"), |
| 713 | Param("VkImageLayout", "srcImageLayout"), |
| 714 | Param("VkImage", "destImage"), |
| 715 | Param("VkImageLayout", "destImageLayout"), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 716 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 717 | Param("const VkImageBlit*", "pRegions")]), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 718 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 719 | Proto("void", "CmdCopyBufferToImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 720 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 721 | Param("VkBuffer", "srcBuffer"), |
| 722 | Param("VkImage", "destImage"), |
| 723 | Param("VkImageLayout", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 724 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 725 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 726 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 727 | Proto("void", "CmdCopyImageToBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 728 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 729 | Param("VkImage", "srcImage"), |
| 730 | Param("VkImageLayout", "srcImageLayout"), |
| 731 | Param("VkBuffer", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 732 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 733 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 734 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 735 | Proto("void", "CmdCloneImageData", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 736 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 737 | Param("VkImage", "srcImage"), |
| 738 | Param("VkImageLayout", "srcImageLayout"), |
| 739 | Param("VkImage", "destImage"), |
| 740 | Param("VkImageLayout", "destImageLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 741 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 742 | Proto("void", "CmdUpdateBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 743 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 744 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 745 | Param("VkDeviceSize", "destOffset"), |
| 746 | Param("VkDeviceSize", "dataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 747 | Param("const uint32_t*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 748 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 749 | Proto("void", "CmdFillBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 750 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 751 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 752 | Param("VkDeviceSize", "destOffset"), |
| 753 | Param("VkDeviceSize", "fillSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 754 | Param("uint32_t", "data")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 755 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 756 | Proto("void", "CmdClearColorImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 757 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 758 | Param("VkImage", "image"), |
| 759 | Param("VkImageLayout", "imageLayout"), |
| 760 | Param("VkClearColor", "color"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 761 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 762 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 763 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 764 | Proto("void", "CmdClearDepthStencil", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 765 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 766 | Param("VkImage", "image"), |
| 767 | Param("VkImageLayout", "imageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 768 | Param("float", "depth"), |
| 769 | Param("uint32_t", "stencil"), |
| 770 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 771 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 772 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 773 | Proto("void", "CmdResolveImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 774 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 775 | Param("VkImage", "srcImage"), |
| 776 | Param("VkImageLayout", "srcImageLayout"), |
| 777 | Param("VkImage", "destImage"), |
| 778 | Param("VkImageLayout", "destImageLayout"), |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 779 | Param("uint32_t", "regionCount"), |
| 780 | Param("const VkImageResolve*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 781 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 782 | Proto("void", "CmdSetEvent", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 783 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 784 | Param("VkEvent", "event"), |
| 785 | Param("VkPipeEvent", "pipeEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 786 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 787 | Proto("void", "CmdResetEvent", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 788 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 789 | Param("VkEvent", "event"), |
| 790 | Param("VkPipeEvent", "pipeEvent")]), |
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", "CmdWaitEvents", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 793 | [Param("VkCmdBuffer", "cmdBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 794 | Param("VkWaitEvent", "waitEvent"), |
| 795 | Param("uint32_t", "eventCount"), |
| 796 | Param("const VkEvent*", "pEvents"), |
| 797 | Param("uint32_t", "memBarrierCount"), |
| 798 | Param("const void**", "ppMemBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 799 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 800 | Proto("void", "CmdPipelineBarrier", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 801 | [Param("VkCmdBuffer", "cmdBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 802 | Param("VkWaitEvent", "waitEvent"), |
| 803 | Param("uint32_t", "pipeEventCount"), |
| 804 | Param("const VkPipeEvent*", "pPipeEvents"), |
| 805 | Param("uint32_t", "memBarrierCount"), |
| 806 | Param("const void**", "ppMemBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 807 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 808 | Proto("void", "CmdBeginQuery", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 809 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 810 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 811 | Param("uint32_t", "slot"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 812 | Param("VkFlags", "flags")]), |
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", "CmdEndQuery", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 815 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 816 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 817 | Param("uint32_t", "slot")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 818 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 819 | Proto("void", "CmdResetQueryPool", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 820 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 821 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 822 | Param("uint32_t", "startQuery"), |
| 823 | Param("uint32_t", "queryCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 824 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 825 | Proto("void", "CmdWriteTimestamp", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 826 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 827 | Param("VkTimestampType", "timestampType"), |
| 828 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 829 | Param("VkDeviceSize", "destOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 830 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 831 | Proto("void", "CmdCopyQueryPoolResults", |
| 832 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 833 | Param("VkQueryPool", "queryPool"), |
| 834 | Param("uint32_t", "startQuery"), |
| 835 | Param("uint32_t", "queryCount"), |
| 836 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 837 | Param("VkDeviceSize", "destOffset"), |
| 838 | Param("VkDeviceSize", "destStride"), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 839 | Param("VkFlags", "flags")]), |
| 840 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 841 | Proto("void", "CmdInitAtomicCounters", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 842 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 843 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 844 | Param("uint32_t", "startCounter"), |
| 845 | Param("uint32_t", "counterCount"), |
| 846 | Param("const uint32_t*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 847 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 848 | Proto("void", "CmdLoadAtomicCounters", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 849 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 850 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 851 | Param("uint32_t", "startCounter"), |
| 852 | Param("uint32_t", "counterCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 853 | Param("VkBuffer", "srcBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 854 | Param("VkDeviceSize", "srcOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 855 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 856 | Proto("void", "CmdSaveAtomicCounters", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 857 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 858 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 859 | Param("uint32_t", "startCounter"), |
| 860 | Param("uint32_t", "counterCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 861 | Param("VkBuffer", "destBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 862 | Param("VkDeviceSize", "destOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 863 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 864 | Proto("VkResult", "CreateFramebuffer", |
| 865 | [Param("VkDevice", "device"), |
| 866 | Param("const VkFramebufferCreateInfo*", "pCreateInfo"), |
| 867 | Param("VkFramebuffer*", "pFramebuffer")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 868 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 869 | Proto("VkResult", "CreateRenderPass", |
| 870 | [Param("VkDevice", "device"), |
| 871 | Param("const VkRenderPassCreateInfo*", "pCreateInfo"), |
| 872 | Param("VkRenderPass*", "pRenderPass")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 873 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 874 | Proto("void", "CmdBeginRenderPass", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 875 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 876 | Param("const VkRenderPassBegin*", "pRenderPassBegin")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 877 | |
| 878 | Proto("void", "CmdEndRenderPass", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 879 | [Param("VkCmdBuffer", "cmdBuffer"), |
| 880 | Param("VkRenderPass", "renderPass")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 881 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 882 | Proto("VkResult", "DbgSetValidationLevel", |
| 883 | [Param("VkDevice", "device"), |
| 884 | Param("VkValidationLevel", "validationLevel")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 885 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 886 | Proto("VkResult", "DbgRegisterMsgCallback", |
| 887 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 888 | Param("VK_DBG_MSG_CALLBACK_FUNCTION", "pfnMsgCallback"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 889 | Param("void*", "pUserData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 890 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 891 | Proto("VkResult", "DbgUnregisterMsgCallback", |
| 892 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 893 | Param("VK_DBG_MSG_CALLBACK_FUNCTION", "pfnMsgCallback")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 894 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 895 | Proto("VkResult", "DbgSetMessageFilter", |
| 896 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 897 | Param("int32_t", "msgCode"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 898 | Param("VK_DBG_MSG_FILTER", "filter")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 899 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 900 | Proto("VkResult", "DbgSetObjectTag", |
| 901 | [Param("VkBaseObject", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 902 | Param("size_t", "tagSize"), |
| 903 | Param("const void*", "pTag")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 904 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 905 | Proto("VkResult", "DbgSetGlobalOption", |
| 906 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 907 | Param("VK_DBG_GLOBAL_OPTION", "dbgOption"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 908 | Param("size_t", "dataSize"), |
| 909 | Param("const void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 910 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 911 | Proto("VkResult", "DbgSetDeviceOption", |
| 912 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 913 | Param("VK_DBG_DEVICE_OPTION", "dbgOption"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 914 | Param("size_t", "dataSize"), |
| 915 | Param("const void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 916 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 917 | Proto("void", "CmdDbgMarkerBegin", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 918 | [Param("VkCmdBuffer", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 919 | Param("const char*", "pMarker")]), |
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", "CmdDbgMarkerEnd", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 922 | [Param("VkCmdBuffer", "cmdBuffer")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 923 | ], |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 924 | ) |
| 925 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 926 | wsi_lunarg = Extension( |
| 927 | name="VK_WSI_LunarG", |
| 928 | headers=["vk_wsi_lunarg.h"], |
| 929 | objects=[ |
| 930 | "VkDisplayWSI", |
| 931 | "VkSwapChainWSI", |
| 932 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 933 | protos=[ |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 934 | Proto("VkResult", "GetDisplayInfoWSI", |
| 935 | [Param("VkDisplayWSI", "display"), |
| 936 | Param("VkDisplayInfoTypeWSI", "infoType"), |
| 937 | Param("size_t*", "pDataSize"), |
| 938 | Param("void*", "pData")]), |
Chia-I Wu | 6bdf019 | 2014-09-13 13:36:06 +0800 | [diff] [blame] | 939 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 940 | Proto("VkResult", "CreateSwapChainWSI", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 941 | [Param("VkDevice", "device"), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 942 | Param("const VkSwapChainCreateInfoWSI*", "pCreateInfo"), |
| 943 | Param("VkSwapChainWSI*", "pSwapChain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 944 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 945 | Proto("VkResult", "DestroySwapChainWSI", |
| 946 | [Param("VkSwapChainWSI", "swapChain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 947 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 948 | Proto("VkResult", "GetSwapChainInfoWSI", |
| 949 | [Param("VkSwapChainWSI", "swapChain"), |
| 950 | Param("VkSwapChainInfoTypeWSI", "infoType"), |
| 951 | Param("size_t*", "pDataSize"), |
| 952 | Param("void*", "pData")]), |
| 953 | |
| 954 | Proto("VkResult", "QueuePresentWSI", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 955 | [Param("VkQueue", "queue"), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 956 | Param("const VkPresentInfoWSI*", "pPresentInfo")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 957 | ], |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 958 | ) |
| 959 | |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 960 | extensions = [core, wsi_lunarg] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 961 | |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 962 | object_root_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 963 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 964 | "VkPhysicalDevice", |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame^] | 965 | "VkBaseObject", |
| 966 | "VkDisplayWSI", |
| 967 | "VkSwapChainWSI", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 968 | ] |
| 969 | |
| 970 | object_base_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 971 | "VkDevice", |
| 972 | "VkQueue", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 973 | "VkDeviceMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 974 | "VkObject" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 975 | ] |
| 976 | |
| 977 | object_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 978 | "VkBuffer", |
| 979 | "VkBufferView", |
| 980 | "VkImage", |
| 981 | "VkImageView", |
| 982 | "VkColorAttachmentView", |
| 983 | "VkDepthStencilView", |
| 984 | "VkShader", |
| 985 | "VkPipeline", |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 986 | "VkPipelineLayout", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 987 | "VkSampler", |
| 988 | "VkDescriptorSet", |
| 989 | "VkDescriptorSetLayout", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 990 | "VkDescriptorPool", |
| 991 | "VkDynamicStateObject", |
| 992 | "VkCmdBuffer", |
| 993 | "VkFence", |
| 994 | "VkSemaphore", |
| 995 | "VkEvent", |
| 996 | "VkQueryPool", |
| 997 | "VkFramebuffer", |
| 998 | "VkRenderPass" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 999 | ] |
| 1000 | |
| 1001 | object_dynamic_state_list = [ |
Courtney Goeltzenleuchter | 502744a | 2015-04-10 16:24:50 -0600 | [diff] [blame] | 1002 | "VkDynamicVpState", |
| 1003 | "VkDynamicRsState", |
| 1004 | "VkDynamicCbState", |
| 1005 | "VkDynamicDsState" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1006 | ] |
| 1007 | |
| 1008 | object_type_list = object_root_list + object_base_list + object_list + object_dynamic_state_list |
| 1009 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1010 | object_parent_list = ["VkBaseObject", "VkObject", "VkDynamicStateObject"] |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1011 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1012 | headers = [] |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1013 | objects = [] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1014 | protos = [] |
| 1015 | for ext in extensions: |
| 1016 | headers.extend(ext.headers) |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1017 | objects.extend(ext.objects) |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1018 | protos.extend(ext.protos) |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1019 | |
Chia-I Wu | 9a4ceb1 | 2015-01-01 14:45:58 +0800 | [diff] [blame] | 1020 | proto_names = [proto.name for proto in protos] |
Chia-I Wu | 900a257 | 2014-08-01 14:44:16 +0800 | [diff] [blame] | 1021 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1022 | def parse_vk_h(filename): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1023 | # read object and protoype typedefs |
| 1024 | object_lines = [] |
| 1025 | proto_lines = [] |
| 1026 | with open(filename, "r") as fp: |
| 1027 | for line in fp: |
| 1028 | line = line.strip() |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1029 | if line.startswith("VK_DEFINE"): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1030 | begin = line.find("(") + 1 |
| 1031 | end = line.find(",") |
| 1032 | # extract the object type |
| 1033 | object_lines.append(line[begin:end]) |
| 1034 | if line.startswith("typedef") and line.endswith(");"): |
| 1035 | # drop leading "typedef " and trailing ");" |
| 1036 | proto_lines.append(line[8:-2]) |
| 1037 | |
| 1038 | # parse proto_lines to protos |
| 1039 | protos = [] |
| 1040 | for line in proto_lines: |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1041 | first, rest = line.split(" (VKAPI *PFN_vk") |
| 1042 | second, third = rest.split(")(") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1043 | |
| 1044 | # get the return type, no space before "*" |
| 1045 | proto_ret = "*".join([t.rstrip() for t in first.split("*")]) |
| 1046 | |
| 1047 | # get the name |
| 1048 | proto_name = second.strip() |
| 1049 | |
| 1050 | # get the list of params |
| 1051 | param_strs = third.split(", ") |
| 1052 | params = [] |
| 1053 | for s in param_strs: |
| 1054 | ty, name = s.rsplit(" ", 1) |
| 1055 | |
| 1056 | # no space before "*" |
| 1057 | ty = "*".join([t.rstrip() for t in ty.split("*")]) |
| 1058 | # attach [] to ty |
| 1059 | idx = name.rfind("[") |
| 1060 | if idx >= 0: |
| 1061 | ty += name[idx:] |
| 1062 | name = name[:idx] |
| 1063 | |
| 1064 | params.append(Param(ty, name)) |
| 1065 | |
| 1066 | protos.append(Proto(proto_ret, proto_name, params)) |
| 1067 | |
| 1068 | # make them an extension and print |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1069 | ext = Extension("VK_CORE", |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1070 | headers=["vulkan.h", "vkDbg.h"], |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1071 | objects=object_lines, |
| 1072 | protos=protos) |
| 1073 | print("core =", str(ext)) |
| 1074 | |
| 1075 | print("") |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1076 | print("typedef struct VkLayerDispatchTable_") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1077 | print("{") |
| 1078 | for proto in ext.protos: |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1079 | print(" vk%sType %s;" % (proto.name, proto.name)) |
Jon Ashburn | bacb0f5 | 2015-04-06 10:58:22 -0600 | [diff] [blame] | 1080 | print("} VkLayerDispatchTable;") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1081 | |
| 1082 | if __name__ == "__main__": |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1083 | parse_vk_h("include/vulkan.h") |