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