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