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