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"], |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 185 | objects=[ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 186 | "VK_INSTANCE", |
| 187 | "VK_PHYSICAL_GPU", |
| 188 | "VK_BASE_OBJECT", |
| 189 | "VK_DEVICE", |
| 190 | "VK_QUEUE", |
| 191 | "VK_GPU_MEMORY", |
| 192 | "VK_OBJECT", |
| 193 | "VK_BUFFER", |
| 194 | "VK_BUFFER_VIEW", |
| 195 | "VK_IMAGE", |
| 196 | "VK_IMAGE_VIEW", |
| 197 | "VK_COLOR_ATTACHMENT_VIEW", |
| 198 | "VK_DEPTH_STENCIL_VIEW", |
| 199 | "VK_SHADER", |
| 200 | "VK_PIPELINE", |
| 201 | "VK_SAMPLER", |
| 202 | "VK_DESCRIPTOR_SET", |
| 203 | "VK_DESCRIPTOR_SET_LAYOUT", |
| 204 | "VK_DESCRIPTOR_SET_LAYOUT_CHAIN", |
| 205 | "VK_DESCRIPTOR_POOL", |
| 206 | "VK_DYNAMIC_STATE_OBJECT", |
| 207 | "VK_DYNAMIC_VP_STATE_OBJECT", |
| 208 | "VK_DYNAMIC_RS_STATE_OBJECT", |
| 209 | "VK_DYNAMIC_CB_STATE_OBJECT", |
| 210 | "VK_DYNAMIC_DS_STATE_OBJECT", |
| 211 | "VK_CMD_BUFFER", |
| 212 | "VK_FENCE", |
| 213 | "VK_SEMAPHORE", |
| 214 | "VK_EVENT", |
| 215 | "VK_QUERY_POOL", |
| 216 | "VK_FRAMEBUFFER", |
| 217 | "VK_RENDER_PASS", |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 218 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 219 | protos=[ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 220 | Proto("VK_RESULT", "CreateInstance", |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame^] | 221 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 222 | Param("VK_INSTANCE*", "pInstance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 223 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 224 | Proto("VK_RESULT", "DestroyInstance", |
| 225 | [Param("VK_INSTANCE", "instance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 226 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 227 | Proto("VK_RESULT", "EnumerateGpus", |
| 228 | [Param("VK_INSTANCE", "instance"), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 229 | Param("uint32_t", "maxGpus"), |
| 230 | Param("uint32_t*", "pGpuCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 231 | Param("VK_PHYSICAL_GPU*", "pGpus")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 232 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 233 | Proto("VK_RESULT", "GetGpuInfo", |
| 234 | [Param("VK_PHYSICAL_GPU", "gpu"), |
| 235 | Param("VK_PHYSICAL_GPU_INFO_TYPE", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 236 | Param("size_t*", "pDataSize"), |
| 237 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 238 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 239 | Proto("void*", "GetProcAddr", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 240 | [Param("VK_PHYSICAL_GPU", "gpu"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 241 | Param("const char*", "pName")]), |
Chia-I Wu | f2ffc52 | 2015-01-04 14:51:06 +0800 | [diff] [blame] | 242 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 243 | Proto("VK_RESULT", "CreateDevice", |
| 244 | [Param("VK_PHYSICAL_GPU", "gpu"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame^] | 245 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 246 | Param("VK_DEVICE*", "pDevice")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 247 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 248 | Proto("VK_RESULT", "DestroyDevice", |
| 249 | [Param("VK_DEVICE", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 250 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 251 | Proto("VK_RESULT", "GetExtensionSupport", |
| 252 | [Param("VK_PHYSICAL_GPU", "gpu"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 253 | Param("const char*", "pExtName")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 254 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 255 | Proto("VK_RESULT", "EnumerateLayers", |
| 256 | [Param("VK_PHYSICAL_GPU", "gpu"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 257 | Param("size_t", "maxLayerCount"), |
| 258 | Param("size_t", "maxStringSize"), |
| 259 | Param("size_t*", "pOutLayerCount"), |
| 260 | Param("char* const*", "pOutLayers"), |
| 261 | Param("void*", "pReserved")]), |
Jon Ashburn | f7bcf9b | 2014-10-15 15:30:23 -0600 | [diff] [blame] | 262 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 263 | Proto("VK_RESULT", "GetDeviceQueue", |
| 264 | [Param("VK_DEVICE", "device"), |
Courtney Goeltzenleuchter | 18248e6 | 2015-03-05 18:09:39 -0700 | [diff] [blame] | 265 | Param("uint32_t", "queueNodeIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 266 | Param("uint32_t", "queueIndex"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 267 | Param("VK_QUEUE*", "pQueue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 268 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 269 | Proto("VK_RESULT", "QueueSubmit", |
| 270 | [Param("VK_QUEUE", "queue"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 271 | Param("uint32_t", "cmdBufferCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 272 | Param("const VK_CMD_BUFFER*", "pCmdBuffers"), |
| 273 | Param("VK_FENCE", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 274 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 275 | Proto("VK_RESULT", "QueueAddMemReference", |
| 276 | [Param("VK_QUEUE", "queue"), |
| 277 | Param("VK_GPU_MEMORY", "mem")]), |
Courtney Goeltzenleuchter | d3fb955 | 2015-04-02 13:39:07 -0600 | [diff] [blame] | 278 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 279 | Proto("VK_RESULT", "QueueRemoveMemReference", |
| 280 | [Param("VK_QUEUE", "queue"), |
| 281 | Param("VK_GPU_MEMORY", "mem")]), |
Courtney Goeltzenleuchter | d3fb955 | 2015-04-02 13:39:07 -0600 | [diff] [blame] | 282 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 283 | Proto("VK_RESULT", "QueueWaitIdle", |
| 284 | [Param("VK_QUEUE", "queue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 285 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 286 | Proto("VK_RESULT", "DeviceWaitIdle", |
| 287 | [Param("VK_DEVICE", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 288 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 289 | Proto("VK_RESULT", "AllocMemory", |
| 290 | [Param("VK_DEVICE", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame^] | 291 | Param("const VkMemoryAllocInfo*", "pAllocInfo"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 292 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 293 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 294 | Proto("VK_RESULT", "FreeMemory", |
| 295 | [Param("VK_GPU_MEMORY", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 296 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 297 | Proto("VK_RESULT", "SetMemoryPriority", |
| 298 | [Param("VK_GPU_MEMORY", "mem"), |
| 299 | Param("VK_MEMORY_PRIORITY", "priority")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 300 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 301 | Proto("VK_RESULT", "MapMemory", |
| 302 | [Param("VK_GPU_MEMORY", "mem"), |
| 303 | Param("VK_FLAGS", "flags"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 304 | Param("void**", "ppData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 305 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 306 | Proto("VK_RESULT", "UnmapMemory", |
| 307 | [Param("VK_GPU_MEMORY", "mem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 308 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 309 | Proto("VK_RESULT", "PinSystemMemory", |
| 310 | [Param("VK_DEVICE", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 311 | Param("const void*", "pSysMem"), |
| 312 | Param("size_t", "memSize"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 313 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 314 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 315 | Proto("VK_RESULT", "GetMultiGpuCompatibility", |
| 316 | [Param("VK_PHYSICAL_GPU", "gpu0"), |
| 317 | Param("VK_PHYSICAL_GPU", "gpu1"), |
| 318 | Param("VK_GPU_COMPATIBILITY_INFO*", "pInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 319 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 320 | Proto("VK_RESULT", "OpenSharedMemory", |
| 321 | [Param("VK_DEVICE", "device"), |
| 322 | Param("const VK_MEMORY_OPEN_INFO*", "pOpenInfo"), |
| 323 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 324 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 325 | Proto("VK_RESULT", "OpenSharedSemaphore", |
| 326 | [Param("VK_DEVICE", "device"), |
| 327 | Param("const VK_SEMAPHORE_OPEN_INFO*", "pOpenInfo"), |
| 328 | Param("VK_SEMAPHORE*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 329 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 330 | Proto("VK_RESULT", "OpenPeerMemory", |
| 331 | [Param("VK_DEVICE", "device"), |
| 332 | Param("const VK_PEER_MEMORY_OPEN_INFO*", "pOpenInfo"), |
| 333 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 334 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 335 | Proto("VK_RESULT", "OpenPeerImage", |
| 336 | [Param("VK_DEVICE", "device"), |
| 337 | Param("const VK_PEER_IMAGE_OPEN_INFO*", "pOpenInfo"), |
| 338 | Param("VK_IMAGE*", "pImage"), |
| 339 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 340 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 341 | Proto("VK_RESULT", "DestroyObject", |
| 342 | [Param("VK_OBJECT", "object")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 343 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 344 | Proto("VK_RESULT", "GetObjectInfo", |
| 345 | [Param("VK_BASE_OBJECT", "object"), |
| 346 | Param("VK_OBJECT_INFO_TYPE", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 347 | Param("size_t*", "pDataSize"), |
| 348 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 349 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 350 | Proto("VK_RESULT", "BindObjectMemory", |
| 351 | [Param("VK_OBJECT", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 352 | Param("uint32_t", "allocationIdx"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 353 | Param("VK_GPU_MEMORY", "mem"), |
| 354 | Param("VK_GPU_SIZE", "offset")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 355 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 356 | Proto("VK_RESULT", "BindObjectMemoryRange", |
| 357 | [Param("VK_OBJECT", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 358 | Param("uint32_t", "allocationIdx"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 359 | Param("VK_GPU_SIZE", "rangeOffset"), |
| 360 | Param("VK_GPU_SIZE", "rangeSize"), |
| 361 | Param("VK_GPU_MEMORY", "mem"), |
| 362 | Param("VK_GPU_SIZE", "memOffset")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 363 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 364 | Proto("VK_RESULT", "BindImageMemoryRange", |
| 365 | [Param("VK_IMAGE", "image"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 366 | Param("uint32_t", "allocationIdx"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 367 | Param("const VK_IMAGE_MEMORY_BIND_INFO*", "bindInfo"), |
| 368 | Param("VK_GPU_MEMORY", "mem"), |
| 369 | Param("VK_GPU_SIZE", "memOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 370 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 371 | Proto("VK_RESULT", "CreateFence", |
| 372 | [Param("VK_DEVICE", "device"), |
| 373 | Param("const VK_FENCE_CREATE_INFO*", "pCreateInfo"), |
| 374 | Param("VK_FENCE*", "pFence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 375 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 376 | Proto("VK_RESULT", "ResetFences", |
| 377 | [Param("VK_DEVICE", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 378 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 379 | Param("VK_FENCE*", "pFences")]), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 380 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 381 | Proto("VK_RESULT", "GetFenceStatus", |
| 382 | [Param("VK_FENCE", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 383 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 384 | Proto("VK_RESULT", "WaitForFences", |
| 385 | [Param("VK_DEVICE", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 386 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 387 | Param("const VK_FENCE*", "pFences"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 388 | Param("bool32_t", "waitAll"), |
| 389 | Param("uint64_t", "timeout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 390 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 391 | Proto("VK_RESULT", "CreateSemaphore", |
| 392 | [Param("VK_DEVICE", "device"), |
| 393 | Param("const VK_SEMAPHORE_CREATE_INFO*", "pCreateInfo"), |
| 394 | Param("VK_SEMAPHORE*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 395 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 396 | Proto("VK_RESULT", "QueueSignalSemaphore", |
| 397 | [Param("VK_QUEUE", "queue"), |
| 398 | Param("VK_SEMAPHORE", "semaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 399 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 400 | Proto("VK_RESULT", "QueueWaitSemaphore", |
| 401 | [Param("VK_QUEUE", "queue"), |
| 402 | Param("VK_SEMAPHORE", "semaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 403 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 404 | Proto("VK_RESULT", "CreateEvent", |
| 405 | [Param("VK_DEVICE", "device"), |
| 406 | Param("const VK_EVENT_CREATE_INFO*", "pCreateInfo"), |
| 407 | Param("VK_EVENT*", "pEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 408 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 409 | Proto("VK_RESULT", "GetEventStatus", |
| 410 | [Param("VK_EVENT", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 411 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 412 | Proto("VK_RESULT", "SetEvent", |
| 413 | [Param("VK_EVENT", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 414 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 415 | Proto("VK_RESULT", "ResetEvent", |
| 416 | [Param("VK_EVENT", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 417 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 418 | Proto("VK_RESULT", "CreateQueryPool", |
| 419 | [Param("VK_DEVICE", "device"), |
| 420 | Param("const VK_QUERY_POOL_CREATE_INFO*", "pCreateInfo"), |
| 421 | Param("VK_QUERY_POOL*", "pQueryPool")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 422 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 423 | Proto("VK_RESULT", "GetQueryPoolResults", |
| 424 | [Param("VK_QUERY_POOL", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 425 | Param("uint32_t", "startQuery"), |
| 426 | Param("uint32_t", "queryCount"), |
| 427 | Param("size_t*", "pDataSize"), |
| 428 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 429 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 430 | Proto("VK_RESULT", "GetFormatInfo", |
| 431 | [Param("VK_DEVICE", "device"), |
| 432 | Param("VK_FORMAT", "format"), |
| 433 | Param("VK_FORMAT_INFO_TYPE", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 434 | Param("size_t*", "pDataSize"), |
| 435 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 436 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 437 | Proto("VK_RESULT", "CreateBuffer", |
| 438 | [Param("VK_DEVICE", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame^] | 439 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 440 | Param("VK_BUFFER*", "pBuffer")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 441 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 442 | Proto("VK_RESULT", "CreateBufferView", |
| 443 | [Param("VK_DEVICE", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame^] | 444 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 445 | Param("VK_BUFFER_VIEW*", "pView")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 446 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 447 | Proto("VK_RESULT", "CreateImage", |
| 448 | [Param("VK_DEVICE", "device"), |
| 449 | Param("const VK_IMAGE_CREATE_INFO*", "pCreateInfo"), |
| 450 | Param("VK_IMAGE*", "pImage")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 451 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 452 | Proto("VK_RESULT", "GetImageSubresourceInfo", |
| 453 | [Param("VK_IMAGE", "image"), |
| 454 | Param("const VK_IMAGE_SUBRESOURCE*", "pSubresource"), |
| 455 | Param("VK_SUBRESOURCE_INFO_TYPE", "infoType"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 456 | Param("size_t*", "pDataSize"), |
| 457 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 458 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 459 | Proto("VK_RESULT", "CreateImageView", |
| 460 | [Param("VK_DEVICE", "device"), |
| 461 | Param("const VK_IMAGE_VIEW_CREATE_INFO*", "pCreateInfo"), |
| 462 | Param("VK_IMAGE_VIEW*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 463 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 464 | Proto("VK_RESULT", "CreateColorAttachmentView", |
| 465 | [Param("VK_DEVICE", "device"), |
| 466 | Param("const VK_COLOR_ATTACHMENT_VIEW_CREATE_INFO*", "pCreateInfo"), |
| 467 | Param("VK_COLOR_ATTACHMENT_VIEW*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 468 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 469 | Proto("VK_RESULT", "CreateDepthStencilView", |
| 470 | [Param("VK_DEVICE", "device"), |
| 471 | Param("const VK_DEPTH_STENCIL_VIEW_CREATE_INFO*", "pCreateInfo"), |
| 472 | Param("VK_DEPTH_STENCIL_VIEW*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 473 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 474 | Proto("VK_RESULT", "CreateShader", |
| 475 | [Param("VK_DEVICE", "device"), |
| 476 | Param("const VK_SHADER_CREATE_INFO*", "pCreateInfo"), |
| 477 | Param("VK_SHADER*", "pShader")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 478 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 479 | Proto("VK_RESULT", "CreateGraphicsPipeline", |
| 480 | [Param("VK_DEVICE", "device"), |
| 481 | Param("const VK_GRAPHICS_PIPELINE_CREATE_INFO*", "pCreateInfo"), |
| 482 | Param("VK_PIPELINE*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 483 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 484 | Proto("VK_RESULT", "CreateGraphicsPipelineDerivative", |
| 485 | [Param("VK_DEVICE", "device"), |
| 486 | Param("const VK_GRAPHICS_PIPELINE_CREATE_INFO*", "pCreateInfo"), |
| 487 | Param("VK_PIPELINE", "basePipeline"), |
| 488 | Param("VK_PIPELINE*", "pPipeline")]), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 489 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 490 | Proto("VK_RESULT", "CreateComputePipeline", |
| 491 | [Param("VK_DEVICE", "device"), |
| 492 | Param("const VK_COMPUTE_PIPELINE_CREATE_INFO*", "pCreateInfo"), |
| 493 | Param("VK_PIPELINE*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 494 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 495 | Proto("VK_RESULT", "StorePipeline", |
| 496 | [Param("VK_PIPELINE", "pipeline"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 497 | Param("size_t*", "pDataSize"), |
| 498 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 499 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 500 | Proto("VK_RESULT", "LoadPipeline", |
| 501 | [Param("VK_DEVICE", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 502 | Param("size_t", "dataSize"), |
| 503 | Param("const void*", "pData"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 504 | Param("VK_PIPELINE*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 505 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 506 | Proto("VK_RESULT", "LoadPipelineDerivative", |
| 507 | [Param("VK_DEVICE", "device"), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 508 | Param("size_t", "dataSize"), |
| 509 | Param("const void*", "pData"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 510 | Param("VK_PIPELINE", "basePipeline"), |
| 511 | Param("VK_PIPELINE*", "pPipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 512 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 513 | Proto("VK_RESULT", "CreateSampler", |
| 514 | [Param("VK_DEVICE", "device"), |
| 515 | Param("const VK_SAMPLER_CREATE_INFO*", "pCreateInfo"), |
| 516 | Param("VK_SAMPLER*", "pSampler")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 517 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 518 | Proto("VK_RESULT", "CreateDescriptorSetLayout", |
| 519 | [Param("VK_DEVICE", "device"), |
| 520 | Param("const VK_DESCRIPTOR_SET_LAYOUT_CREATE_INFO*", "pCreateInfo"), |
| 521 | Param("VK_DESCRIPTOR_SET_LAYOUT*", "pSetLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 522 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 523 | Proto("VK_RESULT", "CreateDescriptorSetLayoutChain", |
| 524 | [Param("VK_DEVICE", "device"), |
Chia-I Wu | 41126e5 | 2015-03-26 15:27:55 +0800 | [diff] [blame] | 525 | Param("uint32_t", "setLayoutArrayCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 526 | Param("const VK_DESCRIPTOR_SET_LAYOUT*", "pSetLayoutArray"), |
| 527 | Param("VK_DESCRIPTOR_SET_LAYOUT_CHAIN*", "pLayoutChain")]), |
Chia-I Wu | 41126e5 | 2015-03-26 15:27:55 +0800 | [diff] [blame] | 528 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 529 | Proto("VK_RESULT", "BeginDescriptorPoolUpdate", |
| 530 | [Param("VK_DEVICE", "device"), |
| 531 | Param("VK_DESCRIPTOR_UPDATE_MODE", "updateMode")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 532 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 533 | Proto("VK_RESULT", "EndDescriptorPoolUpdate", |
| 534 | [Param("VK_DEVICE", "device"), |
| 535 | Param("VK_CMD_BUFFER", "cmd")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 536 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 537 | Proto("VK_RESULT", "CreateDescriptorPool", |
| 538 | [Param("VK_DEVICE", "device"), |
| 539 | Param("VK_DESCRIPTOR_POOL_USAGE", "poolUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 540 | Param("uint32_t", "maxSets"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 541 | Param("const VK_DESCRIPTOR_POOL_CREATE_INFO*", "pCreateInfo"), |
| 542 | Param("VK_DESCRIPTOR_POOL*", "pDescriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 543 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 544 | Proto("VK_RESULT", "ResetDescriptorPool", |
| 545 | [Param("VK_DESCRIPTOR_POOL", "descriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 546 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 547 | Proto("VK_RESULT", "AllocDescriptorSets", |
| 548 | [Param("VK_DESCRIPTOR_POOL", "descriptorPool"), |
| 549 | Param("VK_DESCRIPTOR_SET_USAGE", "setUsage"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 550 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 551 | Param("const VK_DESCRIPTOR_SET_LAYOUT*", "pSetLayouts"), |
| 552 | Param("VK_DESCRIPTOR_SET*", "pDescriptorSets"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 553 | Param("uint32_t*", "pCount")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 554 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 555 | Proto("void", "ClearDescriptorSets", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 556 | [Param("VK_DESCRIPTOR_POOL", "descriptorPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 557 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 558 | Param("const VK_DESCRIPTOR_SET*", "pDescriptorSets")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 559 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 560 | Proto("void", "UpdateDescriptors", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 561 | [Param("VK_DESCRIPTOR_SET", "descriptorSet"), |
Chia-I Wu | 41126e5 | 2015-03-26 15:27:55 +0800 | [diff] [blame] | 562 | Param("uint32_t", "updateCount"), |
| 563 | Param("const void**", "ppUpdateArray")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 564 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 565 | Proto("VK_RESULT", "CreateDynamicViewportState", |
| 566 | [Param("VK_DEVICE", "device"), |
| 567 | Param("const VK_DYNAMIC_VP_STATE_CREATE_INFO*", "pCreateInfo"), |
| 568 | Param("VK_DYNAMIC_VP_STATE_OBJECT*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 569 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 570 | Proto("VK_RESULT", "CreateDynamicRasterState", |
| 571 | [Param("VK_DEVICE", "device"), |
| 572 | Param("const VK_DYNAMIC_RS_STATE_CREATE_INFO*", "pCreateInfo"), |
| 573 | Param("VK_DYNAMIC_RS_STATE_OBJECT*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 574 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 575 | Proto("VK_RESULT", "CreateDynamicColorBlendState", |
| 576 | [Param("VK_DEVICE", "device"), |
| 577 | Param("const VK_DYNAMIC_CB_STATE_CREATE_INFO*", "pCreateInfo"), |
| 578 | Param("VK_DYNAMIC_CB_STATE_OBJECT*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 579 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 580 | Proto("VK_RESULT", "CreateDynamicDepthStencilState", |
| 581 | [Param("VK_DEVICE", "device"), |
| 582 | Param("const VK_DYNAMIC_DS_STATE_CREATE_INFO*", "pCreateInfo"), |
| 583 | Param("VK_DYNAMIC_DS_STATE_OBJECT*", "pState")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 584 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 585 | Proto("VK_RESULT", "CreateCommandBuffer", |
| 586 | [Param("VK_DEVICE", "device"), |
| 587 | Param("const VK_CMD_BUFFER_CREATE_INFO*", "pCreateInfo"), |
| 588 | Param("VK_CMD_BUFFER*", "pCmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 589 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 590 | Proto("VK_RESULT", "BeginCommandBuffer", |
| 591 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 592 | Param("const VK_CMD_BUFFER_BEGIN_INFO*", "pBeginInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 593 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 594 | Proto("VK_RESULT", "EndCommandBuffer", |
| 595 | [Param("VK_CMD_BUFFER", "cmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 596 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 597 | Proto("VK_RESULT", "ResetCommandBuffer", |
| 598 | [Param("VK_CMD_BUFFER", "cmdBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 599 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 600 | Proto("void", "CmdBindPipeline", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 601 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 602 | Param("VK_PIPELINE_BIND_POINT", "pipelineBindPoint"), |
| 603 | Param("VK_PIPELINE", "pipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 604 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 605 | Proto("void", "CmdBindDynamicStateObject", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 606 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 607 | Param("VK_STATE_BIND_POINT", "stateBindPoint"), |
| 608 | Param("VK_DYNAMIC_STATE_OBJECT", "state")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 609 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 610 | Proto("void", "CmdBindDescriptorSets", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 611 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 612 | Param("VK_PIPELINE_BIND_POINT", "pipelineBindPoint"), |
| 613 | Param("VK_DESCRIPTOR_SET_LAYOUT_CHAIN", "layoutChain"), |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 614 | Param("uint32_t", "layoutChainSlot"), |
| 615 | Param("uint32_t", "count"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 616 | Param("const VK_DESCRIPTOR_SET*", "pDescriptorSets"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 617 | Param("const uint32_t*", "pUserData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 618 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 619 | Proto("void", "CmdBindVertexBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 620 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 621 | Param("VK_BUFFER", "buffer"), |
| 622 | Param("VK_GPU_SIZE", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 623 | Param("uint32_t", "binding")]), |
Chia-I Wu | 7a42e12 | 2014-11-08 10:48:20 +0800 | [diff] [blame] | 624 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 625 | Proto("void", "CmdBindIndexBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 626 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 627 | Param("VK_BUFFER", "buffer"), |
| 628 | Param("VK_GPU_SIZE", "offset"), |
| 629 | Param("VK_INDEX_TYPE", "indexType")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 630 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 631 | Proto("void", "CmdDraw", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 632 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 633 | Param("uint32_t", "firstVertex"), |
| 634 | Param("uint32_t", "vertexCount"), |
| 635 | Param("uint32_t", "firstInstance"), |
| 636 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 637 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 638 | Proto("void", "CmdDrawIndexed", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 639 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 640 | Param("uint32_t", "firstIndex"), |
| 641 | Param("uint32_t", "indexCount"), |
| 642 | Param("int32_t", "vertexOffset"), |
| 643 | Param("uint32_t", "firstInstance"), |
| 644 | Param("uint32_t", "instanceCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 645 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 646 | Proto("void", "CmdDrawIndirect", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 647 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 648 | Param("VK_BUFFER", "buffer"), |
| 649 | Param("VK_GPU_SIZE", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 650 | Param("uint32_t", "count"), |
| 651 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 652 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 653 | Proto("void", "CmdDrawIndexedIndirect", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 654 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 655 | Param("VK_BUFFER", "buffer"), |
| 656 | Param("VK_GPU_SIZE", "offset"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 657 | Param("uint32_t", "count"), |
| 658 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 659 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 660 | Proto("void", "CmdDispatch", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 661 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 662 | Param("uint32_t", "x"), |
| 663 | Param("uint32_t", "y"), |
| 664 | Param("uint32_t", "z")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 665 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 666 | Proto("void", "CmdDispatchIndirect", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 667 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 668 | Param("VK_BUFFER", "buffer"), |
| 669 | Param("VK_GPU_SIZE", "offset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 670 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 671 | Proto("void", "CmdCopyBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 672 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 673 | Param("VK_BUFFER", "srcBuffer"), |
| 674 | Param("VK_BUFFER", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 675 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 676 | Param("const VK_BUFFER_COPY*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 677 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 678 | Proto("void", "CmdCopyImage", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 679 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 680 | Param("VK_IMAGE", "srcImage"), |
| 681 | Param("VK_IMAGE_LAYOUT", "srcImageLayout"), |
| 682 | Param("VK_IMAGE", "destImage"), |
| 683 | Param("VK_IMAGE_LAYOUT", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 684 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 685 | Param("const VK_IMAGE_COPY*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 686 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 687 | Proto("void", "CmdBlitImage", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 688 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 689 | Param("VK_IMAGE", "srcImage"), |
| 690 | Param("VK_IMAGE_LAYOUT", "srcImageLayout"), |
| 691 | Param("VK_IMAGE", "destImage"), |
| 692 | Param("VK_IMAGE_LAYOUT", "destImageLayout"), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 693 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 694 | Param("const VK_IMAGE_BLIT*", "pRegions")]), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 695 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 696 | Proto("void", "CmdCopyBufferToImage", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 697 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 698 | Param("VK_BUFFER", "srcBuffer"), |
| 699 | Param("VK_IMAGE", "destImage"), |
| 700 | Param("VK_IMAGE_LAYOUT", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 701 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 702 | Param("const VK_BUFFER_IMAGE_COPY*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 703 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 704 | Proto("void", "CmdCopyImageToBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 705 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 706 | Param("VK_IMAGE", "srcImage"), |
| 707 | Param("VK_IMAGE_LAYOUT", "srcImageLayout"), |
| 708 | Param("VK_BUFFER", "destBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 709 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 710 | Param("const VK_BUFFER_IMAGE_COPY*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 711 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 712 | Proto("void", "CmdCloneImageData", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 713 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 714 | Param("VK_IMAGE", "srcImage"), |
| 715 | Param("VK_IMAGE_LAYOUT", "srcImageLayout"), |
| 716 | Param("VK_IMAGE", "destImage"), |
| 717 | Param("VK_IMAGE_LAYOUT", "destImageLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 718 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 719 | Proto("void", "CmdUpdateBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 720 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 721 | Param("VK_BUFFER", "destBuffer"), |
| 722 | Param("VK_GPU_SIZE", "destOffset"), |
| 723 | Param("VK_GPU_SIZE", "dataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 724 | Param("const uint32_t*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 725 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 726 | Proto("void", "CmdFillBuffer", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 727 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 728 | Param("VK_BUFFER", "destBuffer"), |
| 729 | Param("VK_GPU_SIZE", "destOffset"), |
| 730 | Param("VK_GPU_SIZE", "fillSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 731 | Param("uint32_t", "data")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 732 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 733 | Proto("void", "CmdClearColorImage", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 734 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 735 | Param("VK_IMAGE", "image"), |
| 736 | Param("VK_IMAGE_LAYOUT", "imageLayout"), |
| 737 | Param("VK_CLEAR_COLOR", "color"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 738 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 739 | Param("const VK_IMAGE_SUBRESOURCE_RANGE*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 740 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 741 | Proto("void", "CmdClearDepthStencil", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 742 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 743 | Param("VK_IMAGE", "image"), |
| 744 | Param("VK_IMAGE_LAYOUT", "imageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 745 | Param("float", "depth"), |
| 746 | Param("uint32_t", "stencil"), |
| 747 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 748 | Param("const VK_IMAGE_SUBRESOURCE_RANGE*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 749 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 750 | Proto("void", "CmdResolveImage", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 751 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 752 | Param("VK_IMAGE", "srcImage"), |
| 753 | Param("VK_IMAGE_LAYOUT", "srcImageLayout"), |
| 754 | Param("VK_IMAGE", "destImage"), |
| 755 | Param("VK_IMAGE_LAYOUT", "destImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 756 | Param("uint32_t", "rectCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 757 | Param("const VK_IMAGE_RESOLVE*", "pRects")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 758 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 759 | Proto("void", "CmdSetEvent", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 760 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 761 | Param("VK_EVENT", "event"), |
| 762 | Param("VK_PIPE_EVENT", "pipeEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 763 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 764 | Proto("void", "CmdResetEvent", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 765 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 766 | Param("VK_EVENT", "event"), |
| 767 | Param("VK_PIPE_EVENT", "pipeEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 768 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 769 | Proto("void", "CmdWaitEvents", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 770 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 771 | Param("const VK_EVENT_WAIT_INFO*", "pWaitInfo")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 772 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 773 | Proto("void", "CmdPipelineBarrier", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 774 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 775 | Param("const VK_PIPELINE_BARRIER*", "pBarrier")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 776 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 777 | Proto("void", "CmdBeginQuery", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 778 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 779 | Param("VK_QUERY_POOL", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 780 | Param("uint32_t", "slot"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 781 | Param("VK_FLAGS", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 782 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 783 | Proto("void", "CmdEndQuery", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 784 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 785 | Param("VK_QUERY_POOL", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 786 | Param("uint32_t", "slot")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 787 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 788 | Proto("void", "CmdResetQueryPool", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 789 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 790 | Param("VK_QUERY_POOL", "queryPool"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 791 | Param("uint32_t", "startQuery"), |
| 792 | Param("uint32_t", "queryCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 793 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 794 | Proto("void", "CmdWriteTimestamp", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 795 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 796 | Param("VK_TIMESTAMP_TYPE", "timestampType"), |
| 797 | Param("VK_BUFFER", "destBuffer"), |
| 798 | Param("VK_GPU_SIZE", "destOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 799 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 800 | Proto("void", "CmdInitAtomicCounters", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 801 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 802 | Param("VK_PIPELINE_BIND_POINT", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 803 | Param("uint32_t", "startCounter"), |
| 804 | Param("uint32_t", "counterCount"), |
| 805 | Param("const uint32_t*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 806 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 807 | Proto("void", "CmdLoadAtomicCounters", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 808 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 809 | Param("VK_PIPELINE_BIND_POINT", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 810 | Param("uint32_t", "startCounter"), |
| 811 | Param("uint32_t", "counterCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 812 | Param("VK_BUFFER", "srcBuffer"), |
| 813 | Param("VK_GPU_SIZE", "srcOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 814 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 815 | Proto("void", "CmdSaveAtomicCounters", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 816 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 817 | Param("VK_PIPELINE_BIND_POINT", "pipelineBindPoint"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 818 | Param("uint32_t", "startCounter"), |
| 819 | Param("uint32_t", "counterCount"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 820 | Param("VK_BUFFER", "destBuffer"), |
| 821 | Param("VK_GPU_SIZE", "destOffset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 822 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 823 | Proto("VK_RESULT", "CreateFramebuffer", |
| 824 | [Param("VK_DEVICE", "device"), |
| 825 | Param("const VK_FRAMEBUFFER_CREATE_INFO*", "pCreateInfo"), |
| 826 | Param("VK_FRAMEBUFFER*", "pFramebuffer")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 827 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 828 | Proto("VK_RESULT", "CreateRenderPass", |
| 829 | [Param("VK_DEVICE", "device"), |
| 830 | Param("const VK_RENDER_PASS_CREATE_INFO*", "pCreateInfo"), |
| 831 | Param("VK_RENDER_PASS*", "pRenderPass")]), |
Jeremy Hayes | d65ae08 | 2015-01-14 16:17:08 -0700 | [diff] [blame] | 832 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 833 | Proto("void", "CmdBeginRenderPass", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 834 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 835 | Param("const VK_RENDER_PASS_BEGIN*", "pRenderPassBegin")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 836 | |
| 837 | Proto("void", "CmdEndRenderPass", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 838 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
| 839 | Param("VK_RENDER_PASS", "renderPass")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 840 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 841 | Proto("VK_RESULT", "DbgSetValidationLevel", |
| 842 | [Param("VK_DEVICE", "device"), |
| 843 | Param("VK_VALIDATION_LEVEL", "validationLevel")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 844 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 845 | Proto("VK_RESULT", "DbgRegisterMsgCallback", |
| 846 | [Param("VK_INSTANCE", "instance"), |
| 847 | Param("VK_DBG_MSG_CALLBACK_FUNCTION", "pfnMsgCallback"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 848 | Param("void*", "pUserData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 849 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 850 | Proto("VK_RESULT", "DbgUnregisterMsgCallback", |
| 851 | [Param("VK_INSTANCE", "instance"), |
| 852 | Param("VK_DBG_MSG_CALLBACK_FUNCTION", "pfnMsgCallback")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 853 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 854 | Proto("VK_RESULT", "DbgSetMessageFilter", |
| 855 | [Param("VK_DEVICE", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 856 | Param("int32_t", "msgCode"), |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 857 | Param("VK_DBG_MSG_FILTER", "filter")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 858 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 859 | Proto("VK_RESULT", "DbgSetObjectTag", |
| 860 | [Param("VK_BASE_OBJECT", "object"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 861 | Param("size_t", "tagSize"), |
| 862 | Param("const void*", "pTag")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 863 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 864 | Proto("VK_RESULT", "DbgSetGlobalOption", |
| 865 | [Param("VK_INSTANCE", "instance"), |
| 866 | Param("VK_DBG_GLOBAL_OPTION", "dbgOption"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 867 | Param("size_t", "dataSize"), |
| 868 | Param("const void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 869 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 870 | Proto("VK_RESULT", "DbgSetDeviceOption", |
| 871 | [Param("VK_DEVICE", "device"), |
| 872 | Param("VK_DBG_DEVICE_OPTION", "dbgOption"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 873 | Param("size_t", "dataSize"), |
| 874 | Param("const void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 875 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 876 | Proto("void", "CmdDbgMarkerBegin", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 877 | [Param("VK_CMD_BUFFER", "cmdBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 878 | Param("const char*", "pMarker")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 879 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 880 | Proto("void", "CmdDbgMarkerEnd", |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 881 | [Param("VK_CMD_BUFFER", "cmdBuffer")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 882 | ], |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 883 | ) |
| 884 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 885 | wsi_x11 = Extension( |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 886 | name="VK_WSI_X11", |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 887 | headers=["vkWsiX11Ext.h"], |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 888 | objects=[], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 889 | protos=[ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 890 | Proto("VK_RESULT", "WsiX11AssociateConnection", |
| 891 | [Param("VK_PHYSICAL_GPU", "gpu"), |
| 892 | Param("const VK_WSI_X11_CONNECTION_INFO*", "pConnectionInfo")]), |
Chia-I Wu | 6bdf019 | 2014-09-13 13:36:06 +0800 | [diff] [blame] | 893 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 894 | Proto("VK_RESULT", "WsiX11GetMSC", |
| 895 | [Param("VK_DEVICE", "device"), |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 896 | Param("xcb_window_t", "window"), |
| 897 | Param("xcb_randr_crtc_t", "crtc"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 898 | Param("uint64_t*", "pMsc")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 899 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 900 | Proto("VK_RESULT", "WsiX11CreatePresentableImage", |
| 901 | [Param("VK_DEVICE", "device"), |
| 902 | Param("const VK_WSI_X11_PRESENTABLE_IMAGE_CREATE_INFO*", "pCreateInfo"), |
| 903 | Param("VK_IMAGE*", "pImage"), |
| 904 | Param("VK_GPU_MEMORY*", "pMem")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 905 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 906 | Proto("VK_RESULT", "WsiX11QueuePresent", |
| 907 | [Param("VK_QUEUE", "queue"), |
| 908 | Param("const VK_WSI_X11_PRESENT_INFO*", "pPresentInfo"), |
| 909 | Param("VK_FENCE", "fence")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 910 | ], |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 911 | ) |
| 912 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 913 | extensions = [core, wsi_x11] |
| 914 | |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 915 | object_root_list = [ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 916 | "VK_INSTANCE", |
| 917 | "VK_PHYSICAL_GPU", |
| 918 | "VK_BASE_OBJECT" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 919 | ] |
| 920 | |
| 921 | object_base_list = [ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 922 | "VK_DEVICE", |
| 923 | "VK_QUEUE", |
| 924 | "VK_GPU_MEMORY", |
| 925 | "VK_OBJECT" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 926 | ] |
| 927 | |
| 928 | object_list = [ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 929 | "VK_BUFFER", |
| 930 | "VK_BUFFER_VIEW", |
| 931 | "VK_IMAGE", |
| 932 | "VK_IMAGE_VIEW", |
| 933 | "VK_COLOR_ATTACHMENT_VIEW", |
| 934 | "VK_DEPTH_STENCIL_VIEW", |
| 935 | "VK_SHADER", |
| 936 | "VK_PIPELINE", |
| 937 | "VK_SAMPLER", |
| 938 | "VK_DESCRIPTOR_SET", |
| 939 | "VK_DESCRIPTOR_SET_LAYOUT", |
| 940 | "VK_DESCRIPTOR_SET_LAYOUT_CHAIN", |
| 941 | "VK_DESCRIPTOR_POOL", |
| 942 | "VK_DYNAMIC_STATE_OBJECT", |
| 943 | "VK_CMD_BUFFER", |
| 944 | "VK_FENCE", |
| 945 | "VK_SEMAPHORE", |
| 946 | "VK_EVENT", |
| 947 | "VK_QUERY_POOL", |
| 948 | "VK_FRAMEBUFFER", |
| 949 | "VK_RENDER_PASS" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 950 | ] |
| 951 | |
| 952 | object_dynamic_state_list = [ |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 953 | "VK_DYNAMIC_VP_STATE_OBJECT", |
| 954 | "VK_DYNAMIC_RS_STATE_OBJECT", |
| 955 | "VK_DYNAMIC_CB_STATE_OBJECT", |
| 956 | "VK_DYNAMIC_DS_STATE_OBJECT" |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 957 | ] |
| 958 | |
| 959 | object_type_list = object_root_list + object_base_list + object_list + object_dynamic_state_list |
| 960 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 961 | object_parent_list = ["VK_BASE_OBJECT", "VK_OBJECT", "VK_DYNAMIC_STATE_OBJECT"] |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 962 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 963 | headers = [] |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 964 | objects = [] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 965 | protos = [] |
| 966 | for ext in extensions: |
| 967 | headers.extend(ext.headers) |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 968 | objects.extend(ext.objects) |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 969 | protos.extend(ext.protos) |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 970 | |
Chia-I Wu | 9a4ceb1 | 2015-01-01 14:45:58 +0800 | [diff] [blame] | 971 | proto_names = [proto.name for proto in protos] |
Chia-I Wu | 900a257 | 2014-08-01 14:44:16 +0800 | [diff] [blame] | 972 | |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 973 | def parse_vk_h(filename): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 974 | # read object and protoype typedefs |
| 975 | object_lines = [] |
| 976 | proto_lines = [] |
| 977 | with open(filename, "r") as fp: |
| 978 | for line in fp: |
| 979 | line = line.strip() |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 980 | if line.startswith("VK_DEFINE"): |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 981 | begin = line.find("(") + 1 |
| 982 | end = line.find(",") |
| 983 | # extract the object type |
| 984 | object_lines.append(line[begin:end]) |
| 985 | if line.startswith("typedef") and line.endswith(");"): |
| 986 | # drop leading "typedef " and trailing ");" |
| 987 | proto_lines.append(line[8:-2]) |
| 988 | |
| 989 | # parse proto_lines to protos |
| 990 | protos = [] |
| 991 | for line in proto_lines: |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 992 | first, rest = line.split(" (VKAPI *vk") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 993 | second, third = rest.split("Type)(") |
| 994 | |
| 995 | # get the return type, no space before "*" |
| 996 | proto_ret = "*".join([t.rstrip() for t in first.split("*")]) |
| 997 | |
| 998 | # get the name |
| 999 | proto_name = second.strip() |
| 1000 | |
| 1001 | # get the list of params |
| 1002 | param_strs = third.split(", ") |
| 1003 | params = [] |
| 1004 | for s in param_strs: |
| 1005 | ty, name = s.rsplit(" ", 1) |
| 1006 | |
| 1007 | # no space before "*" |
| 1008 | ty = "*".join([t.rstrip() for t in ty.split("*")]) |
| 1009 | # attach [] to ty |
| 1010 | idx = name.rfind("[") |
| 1011 | if idx >= 0: |
| 1012 | ty += name[idx:] |
| 1013 | name = name[:idx] |
| 1014 | |
| 1015 | params.append(Param(ty, name)) |
| 1016 | |
| 1017 | protos.append(Proto(proto_ret, proto_name, params)) |
| 1018 | |
| 1019 | # make them an extension and print |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1020 | ext = Extension("VK_CORE", |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1021 | headers=["vulkan.h", "vkDbg.h"], |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1022 | objects=object_lines, |
| 1023 | protos=protos) |
| 1024 | print("core =", str(ext)) |
| 1025 | |
| 1026 | print("") |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1027 | print("typedef struct _VK_LAYER_DISPATCH_TABLE") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1028 | print("{") |
| 1029 | for proto in ext.protos: |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 1030 | print(" vk%sType %s;" % (proto.name, proto.name)) |
| 1031 | print("} VK_LAYER_DISPATCH_TABLE;") |
Chia-I Wu | 509a412 | 2015-01-04 14:08:46 +0800 | [diff] [blame] | 1032 | |
| 1033 | if __name__ == "__main__": |
Courtney Goeltzenleuchter | f53c3cb | 2015-04-14 14:55:44 -0600 | [diff] [blame] | 1034 | parse_vk_h("include/vulkan.h") |