Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1 | " ""VK API description""" |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 2 | |
Karl Schultz | 8e42f40 | 2016-02-02 19:32:33 -0700 | [diff] [blame] | 3 | # Copyright (c) 2015-2016 The Khronos Group Inc. |
| 4 | # Copyright (c) 2015-2016 Valve Corporation |
| 5 | # Copyright (c) 2015-2016 LunarG, Inc. |
| 6 | # Copyright (c) 2015-2016 Google Inc. |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 7 | # |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 11 | # |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 13 | # |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
Courtney Goeltzenleuchter | 0555952 | 2015-10-30 11:14:30 -0600 | [diff] [blame] | 19 | # |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 20 | # Author: Chia-I Wu <olv@lunarg.com> |
| 21 | # Author: Jon Ashburn <jon@lunarg.com> |
Courtney Goeltzenleuchter | 0555952 | 2015-10-30 11:14:30 -0600 | [diff] [blame] | 22 | # Author: Courtney Goeltzenleuchter <courtney@LunarG.com> |
| 23 | # Author: Tobin Ehlis <tobin@lunarg.com> |
| 24 | # Author: Tony Barbour <tony@LunarG.com> |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 25 | # Author: Gwan-gyeong Mun <kk.moon@samsung.com> |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 26 | |
| 27 | class Param(object): |
| 28 | """A function parameter.""" |
| 29 | |
| 30 | def __init__(self, ty, name): |
| 31 | self.ty = ty |
| 32 | self.name = name |
| 33 | |
| 34 | def c(self): |
| 35 | """Return the parameter in C.""" |
| 36 | idx = self.ty.find("[") |
| 37 | |
| 38 | # arrays have a different syntax |
| 39 | if idx >= 0: |
| 40 | return "%s %s%s" % (self.ty[:idx], self.name, self.ty[idx:]) |
| 41 | else: |
| 42 | return "%s %s" % (self.ty, self.name) |
| 43 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 44 | def indirection_level(self): |
| 45 | """Return the level of indirection.""" |
| 46 | return self.ty.count("*") + self.ty.count("[") |
| 47 | |
| 48 | def dereferenced_type(self, level=0): |
| 49 | """Return the type after dereferencing.""" |
| 50 | if not level: |
| 51 | level = self.indirection_level() |
| 52 | |
| 53 | deref = self.ty if level else "" |
| 54 | while level > 0: |
| 55 | idx = deref.rfind("[") |
| 56 | if idx < 0: |
| 57 | idx = deref.rfind("*") |
| 58 | if idx < 0: |
| 59 | deref = "" |
| 60 | break |
| 61 | deref = deref[:idx] |
| 62 | level -= 1; |
| 63 | |
| 64 | return deref.rstrip() |
| 65 | |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 66 | class Proto(object): |
| 67 | """A function prototype.""" |
| 68 | |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 69 | def __init__(self, ret, name, params=[]): |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 70 | # the proto has only a param |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 71 | if not isinstance(params, list): |
| 72 | params = [params] |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 73 | |
| 74 | self.ret = ret |
| 75 | self.name = name |
| 76 | self.params = params |
| 77 | |
| 78 | def c_params(self, need_type=True, need_name=True): |
| 79 | """Return the parameter list in C.""" |
| 80 | if self.params and (need_type or need_name): |
| 81 | if need_type and need_name: |
| 82 | return ", ".join([param.c() for param in self.params]) |
| 83 | elif need_type: |
| 84 | return ", ".join([param.ty for param in self.params]) |
| 85 | else: |
| 86 | return ", ".join([param.name for param in self.params]) |
| 87 | else: |
| 88 | return "void" if need_type else "" |
| 89 | |
| 90 | def c_decl(self, name, attr="", typed=False, need_param_names=True): |
| 91 | """Return a named declaration in C.""" |
Chia-I Wu | 9ab6150 | 2015-11-06 06:42:02 +0800 | [diff] [blame] | 92 | if typed: |
| 93 | return "%s (%s*%s)(%s)" % ( |
| 94 | self.ret, |
| 95 | attr + "_PTR " if attr else "", |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 96 | name, |
| 97 | self.c_params(need_name=need_param_names)) |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 98 | else: |
Chia-I Wu | 9ab6150 | 2015-11-06 06:42:02 +0800 | [diff] [blame] | 99 | return "%s%s %s%s(%s)" % ( |
| 100 | attr + "_ATTR " if attr else "", |
| 101 | self.ret, |
| 102 | attr + "_CALL " if attr else "", |
| 103 | name, |
| 104 | self.c_params(need_name=need_param_names)) |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 105 | |
Mark Lobodzinski | fb4ce3d | 2016-10-26 09:29:08 -0600 | [diff] [blame] | 106 | def c_pretty_decl(self, name, attr=""): |
| 107 | """Return a named declaration in C, with vulkan.h formatting.""" |
| 108 | plist = [] |
| 109 | for param in self.params: |
| 110 | idx = param.ty.find("[") |
| 111 | if idx < 0: |
| 112 | idx = len(param.ty) |
| 113 | |
| 114 | pad = 44 - idx |
| 115 | if pad <= 0: |
| 116 | pad = 1 |
| 117 | |
| 118 | plist.append(" %s%s%s%s" % (param.ty[:idx], |
| 119 | " " * pad, param.name, param.ty[idx:])) |
| 120 | |
| 121 | return "%s%s %s%s(\n%s)" % ( |
| 122 | attr + "_ATTR " if attr else "", |
| 123 | self.ret, |
| 124 | attr + "_CALL " if attr else "", |
| 125 | name, |
| 126 | ",\n".join(plist)) |
| 127 | |
| 128 | def c_func(self, prefix="", attr=""): |
| 129 | """Return the prototype in C.""" |
| 130 | return self.c_decl(prefix + self.name, attr=attr, typed=False) |
| 131 | |
| 132 | def c_call(self): |
| 133 | """Return a call to the prototype in C.""" |
| 134 | return "%s(%s)" % (self.name, self.c_params(need_type=False)) |
| 135 | |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 136 | def object_in_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 137 | """Return the params that are simple VK objects and are inputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 138 | return [param for param in self.params if param.ty in objects] |
| 139 | |
| 140 | def object_out_params(self): |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 141 | """Return the params that are simple VK objects and are outputs.""" |
Chia-I Wu | a5d28fa | 2015-01-04 15:02:50 +0800 | [diff] [blame] | 142 | return [param for param in self.params |
| 143 | if param.dereferenced_type() in objects] |
| 144 | |
Mark Lobodzinski | fb4ce3d | 2016-10-26 09:29:08 -0600 | [diff] [blame] | 145 | def __repr__(self): |
| 146 | param_strs = [] |
| 147 | for param in self.params: |
| 148 | param_strs.append(str(param)) |
| 149 | param_str = " [%s]" % (",\n ".join(param_strs)) |
| 150 | |
| 151 | return "Proto(\"%s\", \"%s\",\n%s)" % \ |
| 152 | (self.ret, self.name, param_str) |
| 153 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 154 | class Extension(object): |
David Hubbard | bb62395 | 2016-08-19 13:30:06 -0600 | [diff] [blame] | 155 | def __init__(self, name, headers, objects, protos, ifdef = None): |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 156 | self.name = name |
| 157 | self.headers = headers |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 158 | self.objects = objects |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 159 | self.protos = protos |
David Hubbard | bb62395 | 2016-08-19 13:30:06 -0600 | [diff] [blame] | 160 | self.ifdef = ifdef |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 161 | |
Courtney Goeltzenleuchter | d8e229c | 2015-04-08 15:36:08 -0600 | [diff] [blame] | 162 | # VK core API |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 163 | VK_VERSION_1_0 = Extension( |
| 164 | name="VK_VERSION_1_0", |
Mark Lobodzinski | 510e20d | 2016-02-11 09:26:16 -0700 | [diff] [blame] | 165 | headers=["vulkan/vulkan.h"], |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 166 | objects=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 167 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 168 | "VkPhysicalDevice", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 169 | "VkDevice", |
| 170 | "VkQueue", |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 171 | "VkSemaphore", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 172 | "VkCommandBuffer", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 173 | "VkFence", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 174 | "VkDeviceMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 175 | "VkBuffer", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 176 | "VkImage", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 177 | "VkEvent", |
| 178 | "VkQueryPool", |
| 179 | "VkBufferView", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 180 | "VkImageView", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 181 | "VkShaderModule", |
Tony Barbour | a05dbaa | 2015-07-09 17:31:46 -0600 | [diff] [blame] | 182 | "VkPipelineCache", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 183 | "VkPipelineLayout", |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 184 | "VkRenderPass", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 185 | "VkPipeline", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 186 | "VkDescriptorSetLayout", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 187 | "VkSampler", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 188 | "VkDescriptorPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 189 | "VkDescriptorSet", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 190 | "VkFramebuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 191 | "VkCommandPool", |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 192 | ], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 193 | protos=[ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 194 | Proto("VkResult", "CreateInstance", |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 195 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 196 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 197 | Param("VkInstance*", "pInstance")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 198 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 199 | Proto("void", "DestroyInstance", |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 200 | [Param("VkInstance", "instance"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 201 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 202 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 203 | Proto("VkResult", "EnumeratePhysicalDevices", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 204 | [Param("VkInstance", "instance"), |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 205 | Param("uint32_t*", "pPhysicalDeviceCount"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 206 | Param("VkPhysicalDevice*", "pPhysicalDevices")]), |
Jon Ashburn | 1beab2d | 2015-01-26 14:51:40 -0700 | [diff] [blame] | 207 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 208 | Proto("void", "GetPhysicalDeviceFeatures", |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 209 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 210 | Param("VkPhysicalDeviceFeatures*", "pFeatures")]), |
| 211 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 212 | Proto("void", "GetPhysicalDeviceFormatProperties", |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 213 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 214 | Param("VkFormat", "format"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 215 | Param("VkFormatProperties*", "pFormatProperties")]), |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 216 | |
Chia-I Wu | 1724104 | 2015-10-31 00:31:16 +0800 | [diff] [blame] | 217 | Proto("VkResult", "GetPhysicalDeviceImageFormatProperties", |
Jon Ashburn | 42540ef | 2015-07-23 18:48:20 -0600 | [diff] [blame] | 218 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 219 | Param("VkFormat", "format"), |
| 220 | Param("VkImageType", "type"), |
| 221 | Param("VkImageTiling", "tiling"), |
| 222 | Param("VkImageUsageFlags", "usage"), |
Courtney Goeltzenleuchter | a22097a | 2015-09-10 13:44:12 -0600 | [diff] [blame] | 223 | Param("VkImageCreateFlags", "flags"), |
Jon Ashburn | 42540ef | 2015-07-23 18:48:20 -0600 | [diff] [blame] | 224 | Param("VkImageFormatProperties*", "pImageFormatProperties")]), |
| 225 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 226 | Proto("void", "GetPhysicalDeviceProperties", |
| 227 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 228 | Param("VkPhysicalDeviceProperties*", "pProperties")]), |
| 229 | |
| 230 | Proto("void", "GetPhysicalDeviceQueueFamilyProperties", |
| 231 | [Param("VkPhysicalDevice", "physicalDevice"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 232 | Param("uint32_t*", "pQueueFamilyPropertyCount"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 233 | Param("VkQueueFamilyProperties*", "pQueueFamilyProperties")]), |
| 234 | |
| 235 | Proto("void", "GetPhysicalDeviceMemoryProperties", |
| 236 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 237 | Param("VkPhysicalDeviceMemoryProperties*", "pMemoryProperties")]), |
| 238 | |
Courtney Goeltzenleuchter | 2d3ba63 | 2015-07-12 14:35:22 -0600 | [diff] [blame] | 239 | Proto("PFN_vkVoidFunction", "GetInstanceProcAddr", |
Jon Ashburn | b0fbe91 | 2015-05-06 10:15:07 -0600 | [diff] [blame] | 240 | [Param("VkInstance", "instance"), |
| 241 | Param("const char*", "pName")]), |
| 242 | |
Courtney Goeltzenleuchter | 2d3ba63 | 2015-07-12 14:35:22 -0600 | [diff] [blame] | 243 | Proto("PFN_vkVoidFunction", "GetDeviceProcAddr", |
Jon Ashburn | 8d1b0b5 | 2015-05-18 13:20:15 -0600 | [diff] [blame] | 244 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 245 | Param("const char*", "pName")]), |
Chia-I Wu | f2ffc52 | 2015-01-04 14:51:06 +0800 | [diff] [blame] | 246 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 247 | Proto("VkResult", "CreateDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 248 | [Param("VkPhysicalDevice", "physicalDevice"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 249 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 250 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 251 | Param("VkDevice*", "pDevice")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 252 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 253 | Proto("void", "DestroyDevice", |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 254 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 255 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 256 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 257 | Proto("VkResult", "EnumerateInstanceExtensionProperties", |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 258 | [Param("const char*", "pLayerName"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 259 | Param("uint32_t*", "pPropertyCount"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 260 | Param("VkExtensionProperties*", "pProperties")]), |
| 261 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 262 | Proto("VkResult", "EnumerateDeviceExtensionProperties", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 263 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 264 | Param("const char*", "pLayerName"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 265 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 266 | Param("VkExtensionProperties*", "pProperties")]), |
| 267 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 268 | Proto("VkResult", "EnumerateInstanceLayerProperties", |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 269 | [Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 270 | Param("VkLayerProperties*", "pProperties")]), |
| 271 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 272 | Proto("VkResult", "EnumerateDeviceLayerProperties", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 273 | [Param("VkPhysicalDevice", "physicalDevice"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 274 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 275 | Param("VkLayerProperties*", "pProperties")]), |
Tobin Ehlis | 0193901 | 2015-04-16 12:51:37 -0600 | [diff] [blame] | 276 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 277 | Proto("void", "GetDeviceQueue", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 278 | [Param("VkDevice", "device"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 279 | Param("uint32_t", "queueFamilyIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 280 | Param("uint32_t", "queueIndex"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 281 | Param("VkQueue*", "pQueue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 282 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 283 | Proto("VkResult", "QueueSubmit", |
| 284 | [Param("VkQueue", "queue"), |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 285 | Param("uint32_t", "submitCount"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 286 | Param("const VkSubmitInfo*", "pSubmits"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 287 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 288 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 289 | Proto("VkResult", "QueueWaitIdle", |
| 290 | [Param("VkQueue", "queue")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 291 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 292 | Proto("VkResult", "DeviceWaitIdle", |
| 293 | [Param("VkDevice", "device")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 294 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 295 | Proto("VkResult", "AllocateMemory", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 296 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 297 | Param("const VkMemoryAllocateInfo*", "pAllocateInfo"), |
| 298 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 299 | Param("VkDeviceMemory*", "pMemory")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 300 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 301 | Proto("void", "FreeMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 302 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 303 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 304 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 305 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 306 | Proto("VkResult", "MapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 307 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 308 | Param("VkDeviceMemory", "memory"), |
Tony Barbour | 71a8512 | 2015-04-16 19:09:28 -0600 | [diff] [blame] | 309 | Param("VkDeviceSize", "offset"), |
| 310 | Param("VkDeviceSize", "size"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 311 | Param("VkMemoryMapFlags", "flags"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 312 | Param("void**", "ppData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 313 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 314 | Proto("void", "UnmapMemory", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 315 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 316 | Param("VkDeviceMemory", "memory")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 317 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 318 | Proto("VkResult", "FlushMappedMemoryRanges", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 319 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 320 | Param("uint32_t", "memoryRangeCount"), |
| 321 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 322 | |
| 323 | Proto("VkResult", "InvalidateMappedMemoryRanges", |
| 324 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 325 | Param("uint32_t", "memoryRangeCount"), |
| 326 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
Tony Barbour | b125054 | 2015-04-16 19:23:13 -0600 | [diff] [blame] | 327 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 328 | Proto("void", "GetDeviceMemoryCommitment", |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 329 | [Param("VkDevice", "device"), |
| 330 | Param("VkDeviceMemory", "memory"), |
| 331 | Param("VkDeviceSize*", "pCommittedMemoryInBytes")]), |
| 332 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 333 | Proto("VkResult", "BindBufferMemory", |
| 334 | [Param("VkDevice", "device"), |
| 335 | Param("VkBuffer", "buffer"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 336 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 337 | Param("VkDeviceSize", "memoryOffset")]), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 338 | |
| 339 | Proto("VkResult", "BindImageMemory", |
| 340 | [Param("VkDevice", "device"), |
| 341 | Param("VkImage", "image"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 342 | Param("VkDeviceMemory", "memory"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 343 | Param("VkDeviceSize", "memoryOffset")]), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 344 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 345 | Proto("void", "GetBufferMemoryRequirements", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 346 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 347 | Param("VkBuffer", "buffer"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 348 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 349 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 350 | Proto("void", "GetImageMemoryRequirements", |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 351 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 352 | Param("VkImage", "image"), |
| 353 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
| 354 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 355 | Proto("void", "GetImageSparseMemoryRequirements", |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 356 | [Param("VkDevice", "device"), |
| 357 | Param("VkImage", "image"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 358 | Param("uint32_t*", "pSparseMemoryRequirementCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 359 | Param("VkSparseImageMemoryRequirements*", "pSparseMemoryRequirements")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 360 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 361 | Proto("void", "GetPhysicalDeviceSparseImageFormatProperties", |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 362 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 363 | Param("VkFormat", "format"), |
| 364 | Param("VkImageType", "type"), |
Chia-I Wu | 5c17c96 | 2015-10-31 00:31:16 +0800 | [diff] [blame] | 365 | Param("VkSampleCountFlagBits", "samples"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 366 | Param("VkImageUsageFlags", "usage"), |
| 367 | Param("VkImageTiling", "tiling"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 368 | Param("uint32_t*", "pPropertyCount"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 369 | Param("VkSparseImageFormatProperties*", "pProperties")]), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 370 | |
Chia-I Wu | 1ff4c3d | 2015-10-26 16:55:27 +0800 | [diff] [blame] | 371 | Proto("VkResult", "QueueBindSparse", |
Mark Lobodzinski | 40f7f40 | 2015-04-16 11:44:05 -0500 | [diff] [blame] | 372 | [Param("VkQueue", "queue"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 373 | Param("uint32_t", "bindInfoCount"), |
Chia-I Wu | 1ff4c3d | 2015-10-26 16:55:27 +0800 | [diff] [blame] | 374 | Param("const VkBindSparseInfo*", "pBindInfo"), |
| 375 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 376 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 377 | Proto("VkResult", "CreateFence", |
| 378 | [Param("VkDevice", "device"), |
| 379 | Param("const VkFenceCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 380 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 381 | Param("VkFence*", "pFence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 382 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 383 | Proto("void", "DestroyFence", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 384 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 385 | Param("VkFence", "fence"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 386 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 387 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 388 | Proto("VkResult", "ResetFences", |
| 389 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 390 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 391 | Param("const VkFence*", "pFences")]), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 392 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 393 | Proto("VkResult", "GetFenceStatus", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 394 | [Param("VkDevice", "device"), |
| 395 | Param("VkFence", "fence")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 396 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 397 | Proto("VkResult", "WaitForFences", |
| 398 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 399 | Param("uint32_t", "fenceCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 400 | Param("const VkFence*", "pFences"), |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 401 | Param("VkBool32", "waitAll"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 402 | Param("uint64_t", "timeout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 403 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 404 | Proto("VkResult", "CreateSemaphore", |
| 405 | [Param("VkDevice", "device"), |
| 406 | Param("const VkSemaphoreCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 407 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 408 | Param("VkSemaphore*", "pSemaphore")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 409 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 410 | Proto("void", "DestroySemaphore", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 411 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 412 | Param("VkSemaphore", "semaphore"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 413 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 414 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 415 | Proto("VkResult", "CreateEvent", |
| 416 | [Param("VkDevice", "device"), |
| 417 | Param("const VkEventCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 418 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 419 | Param("VkEvent*", "pEvent")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 420 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 421 | Proto("void", "DestroyEvent", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 422 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 423 | Param("VkEvent", "event"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 424 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 425 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 426 | Proto("VkResult", "GetEventStatus", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 427 | [Param("VkDevice", "device"), |
| 428 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 429 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 430 | Proto("VkResult", "SetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 431 | [Param("VkDevice", "device"), |
| 432 | Param("VkEvent", "event")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 433 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 434 | Proto("VkResult", "ResetEvent", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 435 | [Param("VkDevice", "device"), |
| 436 | Param("VkEvent", "event")]), |
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", "CreateQueryPool", |
| 439 | [Param("VkDevice", "device"), |
| 440 | Param("const VkQueryPoolCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 441 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 442 | Param("VkQueryPool*", "pQueryPool")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 443 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 444 | Proto("void", "DestroyQueryPool", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 445 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 446 | Param("VkQueryPool", "queryPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 447 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 448 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 449 | Proto("VkResult", "GetQueryPoolResults", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 450 | [Param("VkDevice", "device"), |
| 451 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 452 | Param("uint32_t", "firstQuery"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 453 | Param("uint32_t", "queryCount"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 454 | Param("size_t", "dataSize"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 455 | Param("void*", "pData"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 456 | Param("VkDeviceSize", "stride"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 457 | Param("VkQueryResultFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 458 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 459 | Proto("VkResult", "CreateBuffer", |
| 460 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 461 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 462 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 463 | Param("VkBuffer*", "pBuffer")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 464 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 465 | Proto("void", "DestroyBuffer", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 466 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 467 | Param("VkBuffer", "buffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 468 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 469 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 470 | Proto("VkResult", "CreateBufferView", |
| 471 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | 95487bc | 2015-04-14 18:48:46 -0600 | [diff] [blame] | 472 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 473 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 474 | Param("VkBufferView*", "pView")]), |
Chia-I Wu | 1a28fe0 | 2015-01-01 07:55:04 +0800 | [diff] [blame] | 475 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 476 | Proto("void", "DestroyBufferView", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 477 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 478 | Param("VkBufferView", "bufferView"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 479 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 480 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 481 | Proto("VkResult", "CreateImage", |
| 482 | [Param("VkDevice", "device"), |
| 483 | Param("const VkImageCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 484 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 485 | Param("VkImage*", "pImage")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 486 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 487 | Proto("void", "DestroyImage", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 488 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 489 | Param("VkImage", "image"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 490 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 491 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 492 | Proto("void", "GetImageSubresourceLayout", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 493 | [Param("VkDevice", "device"), |
| 494 | Param("VkImage", "image"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 495 | Param("const VkImageSubresource*", "pSubresource"), |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 496 | Param("VkSubresourceLayout*", "pLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 497 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 498 | Proto("VkResult", "CreateImageView", |
| 499 | [Param("VkDevice", "device"), |
| 500 | Param("const VkImageViewCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 501 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 502 | Param("VkImageView*", "pView")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 503 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 504 | Proto("void", "DestroyImageView", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 505 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 506 | Param("VkImageView", "imageView"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 507 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 508 | |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 509 | Proto("VkResult", "CreateShaderModule", |
| 510 | [Param("VkDevice", "device"), |
| 511 | Param("const VkShaderModuleCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 512 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 513 | Param("VkShaderModule*", "pShaderModule")]), |
| 514 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 515 | Proto("void", "DestroyShaderModule", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 516 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 517 | Param("VkShaderModule", "shaderModule"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 518 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 519 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 520 | Proto("VkResult", "CreatePipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 521 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 522 | Param("const VkPipelineCacheCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 523 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 524 | Param("VkPipelineCache*", "pPipelineCache")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 525 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 526 | Proto("void", "DestroyPipelineCache", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 527 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 528 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 529 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Courtney Goeltzenleuchter | 0d40f15 | 2015-03-25 15:37:49 -0600 | [diff] [blame] | 530 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 531 | Proto("VkResult", "GetPipelineCacheData", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 532 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 533 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | b16facd | 2015-10-26 19:17:06 +0800 | [diff] [blame] | 534 | Param("size_t*", "pDataSize"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 535 | Param("void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 536 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 537 | Proto("VkResult", "MergePipelineCaches", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 538 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 539 | Param("VkPipelineCache", "dstCache"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 540 | Param("uint32_t", "srcCacheCount"), |
| 541 | Param("const VkPipelineCache*", "pSrcCaches")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 542 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 543 | Proto("VkResult", "CreateGraphicsPipelines", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 544 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 545 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 546 | Param("uint32_t", "createInfoCount"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 547 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfos"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 548 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 549 | Param("VkPipeline*", "pPipelines")]), |
| 550 | |
| 551 | Proto("VkResult", "CreateComputePipelines", |
| 552 | [Param("VkDevice", "device"), |
| 553 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 554 | Param("uint32_t", "createInfoCount"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 555 | Param("const VkComputePipelineCreateInfo*", "pCreateInfos"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 556 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 557 | Param("VkPipeline*", "pPipelines")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 558 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 559 | Proto("void", "DestroyPipeline", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 560 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 561 | Param("VkPipeline", "pipeline"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 562 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 563 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 564 | Proto("VkResult", "CreatePipelineLayout", |
| 565 | [Param("VkDevice", "device"), |
| 566 | Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 567 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 568 | Param("VkPipelineLayout*", "pPipelineLayout")]), |
| 569 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 570 | Proto("void", "DestroyPipelineLayout", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 571 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 572 | Param("VkPipelineLayout", "pipelineLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 573 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 574 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 575 | Proto("VkResult", "CreateSampler", |
| 576 | [Param("VkDevice", "device"), |
| 577 | Param("const VkSamplerCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 578 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 579 | Param("VkSampler*", "pSampler")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 580 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 581 | Proto("void", "DestroySampler", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 582 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 583 | Param("VkSampler", "sampler"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 584 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 585 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 586 | Proto("VkResult", "CreateDescriptorSetLayout", |
| 587 | [Param("VkDevice", "device"), |
| 588 | Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 589 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 590 | Param("VkDescriptorSetLayout*", "pSetLayout")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 591 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 592 | Proto("void", "DestroyDescriptorSetLayout", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 593 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 594 | Param("VkDescriptorSetLayout", "descriptorSetLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 595 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 596 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 597 | Proto("VkResult", "CreateDescriptorPool", |
| 598 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 599 | Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 600 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 601 | Param("VkDescriptorPool*", "pDescriptorPool")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 602 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 603 | Proto("void", "DestroyDescriptorPool", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 604 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 605 | Param("VkDescriptorPool", "descriptorPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 606 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 607 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 608 | Proto("VkResult", "ResetDescriptorPool", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 609 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 610 | Param("VkDescriptorPool", "descriptorPool"), |
| 611 | Param("VkDescriptorPoolResetFlags", "flags")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 612 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 613 | Proto("VkResult", "AllocateDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 614 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 615 | Param("const VkDescriptorSetAllocateInfo*", "pAllocateInfo"), |
Cody Northrop | 1e4f802 | 2015-08-03 12:47:29 -0600 | [diff] [blame] | 616 | Param("VkDescriptorSet*", "pDescriptorSets")]), |
Chia-I Wu | 11078b0 | 2015-01-04 16:27:24 +0800 | [diff] [blame] | 617 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 618 | Proto("VkResult", "FreeDescriptorSets", |
| 619 | [Param("VkDevice", "device"), |
| 620 | Param("VkDescriptorPool", "descriptorPool"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 621 | Param("uint32_t", "descriptorSetCount"), |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 622 | Param("const VkDescriptorSet*", "pDescriptorSets")]), |
| 623 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 624 | Proto("void", "UpdateDescriptorSets", |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 625 | [Param("VkDevice", "device"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 626 | Param("uint32_t", "descriptorWriteCount"), |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 627 | Param("const VkWriteDescriptorSet*", "pDescriptorWrites"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 628 | Param("uint32_t", "descriptorCopyCount"), |
Chia-I Wu | 9d00ed7 | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 629 | Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 630 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 631 | Proto("VkResult", "CreateFramebuffer", |
| 632 | [Param("VkDevice", "device"), |
| 633 | Param("const VkFramebufferCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 634 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 635 | Param("VkFramebuffer*", "pFramebuffer")]), |
| 636 | |
| 637 | Proto("void", "DestroyFramebuffer", |
| 638 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 639 | Param("VkFramebuffer", "framebuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 640 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 641 | |
| 642 | Proto("VkResult", "CreateRenderPass", |
| 643 | [Param("VkDevice", "device"), |
| 644 | Param("const VkRenderPassCreateInfo*", "pCreateInfo"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 645 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 646 | Param("VkRenderPass*", "pRenderPass")]), |
| 647 | |
| 648 | Proto("void", "DestroyRenderPass", |
| 649 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 650 | Param("VkRenderPass", "renderPass"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 651 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 652 | |
| 653 | Proto("void", "GetRenderAreaGranularity", |
| 654 | [Param("VkDevice", "device"), |
| 655 | Param("VkRenderPass", "renderPass"), |
| 656 | Param("VkExtent2D*", "pGranularity")]), |
| 657 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 658 | Proto("VkResult", "CreateCommandPool", |
| 659 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 660 | Param("const VkCommandPoolCreateInfo*", "pCreateInfo"), |
| 661 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 662 | Param("VkCommandPool*", "pCommandPool")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 663 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 664 | Proto("void", "DestroyCommandPool", |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 665 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 666 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 667 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 668 | |
| 669 | Proto("VkResult", "ResetCommandPool", |
| 670 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 671 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 672 | Param("VkCommandPoolResetFlags", "flags")]), |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 673 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 674 | Proto("VkResult", "AllocateCommandBuffers", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 675 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 676 | Param("const VkCommandBufferAllocateInfo*", "pAllocateInfo"), |
| 677 | Param("VkCommandBuffer*", "pCommandBuffers")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 678 | |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 679 | Proto("void", "FreeCommandBuffers", |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 680 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 681 | Param("VkCommandPool", "commandPool"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 682 | Param("uint32_t", "commandBufferCount"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 683 | Param("const VkCommandBuffer*", "pCommandBuffers")]), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 684 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 685 | Proto("VkResult", "BeginCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 686 | [Param("VkCommandBuffer", "commandBuffer"), |
| 687 | Param("const VkCommandBufferBeginInfo*", "pBeginInfo")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 688 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 689 | Proto("VkResult", "EndCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 690 | [Param("VkCommandBuffer", "commandBuffer")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 691 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 692 | Proto("VkResult", "ResetCommandBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 693 | [Param("VkCommandBuffer", "commandBuffer"), |
| 694 | Param("VkCommandBufferResetFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 695 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 696 | Proto("void", "CmdBindPipeline", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 697 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 698 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
| 699 | Param("VkPipeline", "pipeline")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 700 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 701 | Proto("void", "CmdSetViewport", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 702 | [Param("VkCommandBuffer", "commandBuffer"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 703 | Param("uint32_t", "firstViewport"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 704 | Param("uint32_t", "viewportCount"), |
| 705 | Param("const VkViewport*", "pViewports")]), |
| 706 | |
| 707 | Proto("void", "CmdSetScissor", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 708 | [Param("VkCommandBuffer", "commandBuffer"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 709 | Param("uint32_t", "firstScissor"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 710 | Param("uint32_t", "scissorCount"), |
| 711 | Param("const VkRect2D*", "pScissors")]), |
| 712 | |
| 713 | Proto("void", "CmdSetLineWidth", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 714 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 715 | Param("float", "lineWidth")]), |
| 716 | |
| 717 | Proto("void", "CmdSetDepthBias", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 718 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 719 | Param("float", "depthBiasConstantFactor"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 720 | Param("float", "depthBiasClamp"), |
Chia-I Wu | d8c946a | 2015-10-26 19:08:09 +0800 | [diff] [blame] | 721 | Param("float", "depthBiasSlopeFactor")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 722 | |
| 723 | Proto("void", "CmdSetBlendConstants", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 724 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 2bfb33c | 2015-10-26 17:24:52 +0800 | [diff] [blame] | 725 | Param("const float[4]", "blendConstants")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 726 | |
| 727 | Proto("void", "CmdSetDepthBounds", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 728 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 729 | Param("float", "minDepthBounds"), |
| 730 | Param("float", "maxDepthBounds")]), |
| 731 | |
| 732 | Proto("void", "CmdSetStencilCompareMask", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 733 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 734 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 735 | Param("uint32_t", "compareMask")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 736 | |
| 737 | Proto("void", "CmdSetStencilWriteMask", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 738 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 739 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 740 | Param("uint32_t", "writeMask")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 741 | |
| 742 | Proto("void", "CmdSetStencilReference", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 743 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 744 | Param("VkStencilFaceFlags", "faceMask"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 745 | Param("uint32_t", "reference")]), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 746 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 747 | Proto("void", "CmdBindDescriptorSets", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 748 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 749 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 750 | Param("VkPipelineLayout", "layout"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 751 | Param("uint32_t", "firstSet"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 752 | Param("uint32_t", "descriptorSetCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 753 | Param("const VkDescriptorSet*", "pDescriptorSets"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 754 | Param("uint32_t", "dynamicOffsetCount"), |
| 755 | Param("const uint32_t*", "pDynamicOffsets")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 756 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 757 | Proto("void", "CmdBindIndexBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 758 | [Param("VkCommandBuffer", "commandBuffer"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 759 | Param("VkBuffer", "buffer"), |
| 760 | Param("VkDeviceSize", "offset"), |
| 761 | Param("VkIndexType", "indexType")]), |
| 762 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 763 | Proto("void", "CmdBindVertexBuffers", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 764 | [Param("VkCommandBuffer", "commandBuffer"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 765 | Param("uint32_t", "firstBinding"), |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 766 | Param("uint32_t", "bindingCount"), |
| 767 | Param("const VkBuffer*", "pBuffers"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 768 | Param("const VkDeviceSize*", "pOffsets")]), |
| 769 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 770 | Proto("void", "CmdDraw", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 771 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 772 | Param("uint32_t", "vertexCount"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 773 | Param("uint32_t", "instanceCount"), |
| 774 | Param("uint32_t", "firstVertex"), |
| 775 | Param("uint32_t", "firstInstance")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 776 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 777 | Proto("void", "CmdDrawIndexed", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 778 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 779 | Param("uint32_t", "indexCount"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 780 | Param("uint32_t", "instanceCount"), |
| 781 | Param("uint32_t", "firstIndex"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 782 | Param("int32_t", "vertexOffset"), |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 783 | Param("uint32_t", "firstInstance")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 784 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 785 | Proto("void", "CmdDrawIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 786 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 787 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 788 | Param("VkDeviceSize", "offset"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 789 | Param("uint32_t", "drawCount"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 790 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 791 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 792 | Proto("void", "CmdDrawIndexedIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 793 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 794 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 795 | Param("VkDeviceSize", "offset"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 796 | Param("uint32_t", "drawCount"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 797 | Param("uint32_t", "stride")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 798 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 799 | Proto("void", "CmdDispatch", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 800 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 801 | Param("uint32_t", "x"), |
| 802 | Param("uint32_t", "y"), |
| 803 | Param("uint32_t", "z")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 804 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 805 | Proto("void", "CmdDispatchIndirect", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 806 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 807 | Param("VkBuffer", "buffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 808 | Param("VkDeviceSize", "offset")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 809 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 810 | Proto("void", "CmdCopyBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 811 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 812 | Param("VkBuffer", "srcBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 813 | Param("VkBuffer", "dstBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 814 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 815 | Param("const VkBufferCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 816 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 817 | Proto("void", "CmdCopyImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 818 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 819 | Param("VkImage", "srcImage"), |
| 820 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 821 | Param("VkImage", "dstImage"), |
| 822 | Param("VkImageLayout", "dstImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 823 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 824 | Param("const VkImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 825 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 826 | Proto("void", "CmdBlitImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 827 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 828 | Param("VkImage", "srcImage"), |
| 829 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 830 | Param("VkImage", "dstImage"), |
| 831 | Param("VkImageLayout", "dstImageLayout"), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 832 | Param("uint32_t", "regionCount"), |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 833 | Param("const VkImageBlit*", "pRegions"), |
Chia-I Wu | b99df44 | 2015-10-26 16:49:32 +0800 | [diff] [blame] | 834 | Param("VkFilter", "filter")]), |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 835 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 836 | Proto("void", "CmdCopyBufferToImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 837 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 838 | Param("VkBuffer", "srcBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 839 | Param("VkImage", "dstImage"), |
| 840 | Param("VkImageLayout", "dstImageLayout"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 841 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 842 | Param("const VkBufferImageCopy*", "pRegions")]), |
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", "CmdCopyImageToBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 845 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 846 | Param("VkImage", "srcImage"), |
| 847 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 848 | Param("VkBuffer", "dstBuffer"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 849 | Param("uint32_t", "regionCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 850 | Param("const VkBufferImageCopy*", "pRegions")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 851 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 852 | Proto("void", "CmdUpdateBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 853 | [Param("VkCommandBuffer", "commandBuffer"), |
| 854 | Param("VkBuffer", "dstBuffer"), |
| 855 | Param("VkDeviceSize", "dstOffset"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 856 | Param("VkDeviceSize", "dataSize"), |
Karl Schultz | ee34449 | 2016-07-11 15:09:57 -0600 | [diff] [blame] | 857 | Param("const void*", "pData")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 858 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 859 | Proto("void", "CmdFillBuffer", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 860 | [Param("VkCommandBuffer", "commandBuffer"), |
| 861 | Param("VkBuffer", "dstBuffer"), |
| 862 | Param("VkDeviceSize", "dstOffset"), |
Chia-I Wu | 2bfb33c | 2015-10-26 17:24:52 +0800 | [diff] [blame] | 863 | Param("VkDeviceSize", "size"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 864 | Param("uint32_t", "data")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 865 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 866 | Proto("void", "CmdClearColorImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 867 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 868 | Param("VkImage", "image"), |
| 869 | Param("VkImageLayout", "imageLayout"), |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 870 | Param("const VkClearColorValue*", "pColor"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 871 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 872 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 873 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 874 | Proto("void", "CmdClearDepthStencilImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 875 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 876 | Param("VkImage", "image"), |
| 877 | Param("VkImageLayout", "imageLayout"), |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 878 | Param("const VkClearDepthStencilValue*", "pDepthStencil"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 879 | Param("uint32_t", "rangeCount"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 880 | Param("const VkImageSubresourceRange*", "pRanges")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 881 | |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 882 | Proto("void", "CmdClearAttachments", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 883 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 884 | Param("uint32_t", "attachmentCount"), |
| 885 | Param("const VkClearAttachment*", "pAttachments"), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 886 | Param("uint32_t", "rectCount"), |
Courtney Goeltzenleuchter | 4ca43f6 | 2015-10-15 18:22:08 -0600 | [diff] [blame] | 887 | Param("const VkClearRect*", "pRects")]), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 888 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 889 | Proto("void", "CmdResolveImage", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 890 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 891 | Param("VkImage", "srcImage"), |
| 892 | Param("VkImageLayout", "srcImageLayout"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 893 | Param("VkImage", "dstImage"), |
| 894 | Param("VkImageLayout", "dstImageLayout"), |
Tony Barbour | 6865d4a | 2015-04-13 15:02:52 -0600 | [diff] [blame] | 895 | Param("uint32_t", "regionCount"), |
| 896 | Param("const VkImageResolve*", "pRegions")]), |
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", "CmdSetEvent", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 899 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 900 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 901 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 902 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 903 | Proto("void", "CmdResetEvent", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 904 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 905 | Param("VkEvent", "event"), |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 906 | Param("VkPipelineStageFlags", "stageMask")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 907 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 908 | Proto("void", "CmdWaitEvents", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 909 | [Param("VkCommandBuffer", "commandBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 910 | Param("uint32_t", "eventCount"), |
| 911 | Param("const VkEvent*", "pEvents"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 912 | Param("VkPipelineStageFlags", "srcStageMask"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 913 | Param("VkPipelineStageFlags", "dstStageMask"), |
| 914 | Param("uint32_t", "memoryBarrierCount"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 915 | Param("const VkMemoryBarrier*", "pMemoryBarriers"), |
| 916 | Param("uint32_t", "bufferMemoryBarrierCount"), |
| 917 | Param("const VkBufferMemoryBarrier*", "pBufferMemoryBarriers"), |
| 918 | Param("uint32_t", "imageMemoryBarrierCount"), |
| 919 | Param("const VkImageMemoryBarrier*", "pImageMemoryBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 920 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 921 | Proto("void", "CmdPipelineBarrier", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 922 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame] | 923 | Param("VkPipelineStageFlags", "srcStageMask"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 924 | Param("VkPipelineStageFlags", "dstStageMask"), |
Chia-I Wu | 5353466 | 2015-10-26 17:08:33 +0800 | [diff] [blame] | 925 | Param("VkDependencyFlags", "dependencyFlags"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 926 | Param("uint32_t", "memoryBarrierCount"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 927 | Param("const VkMemoryBarrier*", "pMemoryBarriers"), |
| 928 | Param("uint32_t", "bufferMemoryBarrierCount"), |
| 929 | Param("const VkBufferMemoryBarrier*", "pBufferMemoryBarriers"), |
| 930 | Param("uint32_t", "imageMemoryBarrierCount"), |
| 931 | Param("const VkImageMemoryBarrier*", "pImageMemoryBarriers")]), |
Mike Stroyan | fb80d5f | 2014-12-04 11:08:39 +0000 | [diff] [blame] | 932 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 933 | Proto("void", "CmdBeginQuery", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 934 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 935 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 936 | Param("uint32_t", "query"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 937 | Param("VkQueryControlFlags", "flags")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 938 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 939 | Proto("void", "CmdEndQuery", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 940 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 941 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 942 | Param("uint32_t", "query")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 943 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 944 | Proto("void", "CmdResetQueryPool", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 945 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 946 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 947 | Param("uint32_t", "firstQuery"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 948 | Param("uint32_t", "queryCount")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 949 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 950 | Proto("void", "CmdWriteTimestamp", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 951 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 51ce5ea | 2015-10-26 19:40:27 +0800 | [diff] [blame] | 952 | Param("VkPipelineStageFlagBits", "pipelineStage"), |
Chia-I Wu | cbe3c9f | 2015-10-26 20:14:54 +0800 | [diff] [blame] | 953 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 954 | Param("uint32_t", "query")]), |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 955 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 956 | Proto("void", "CmdCopyQueryPoolResults", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 957 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 958 | Param("VkQueryPool", "queryPool"), |
Jon Ashburn | 19d3bf1 | 2015-12-30 14:06:55 -0700 | [diff] [blame] | 959 | Param("uint32_t", "firstQuery"), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 960 | Param("uint32_t", "queryCount"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 961 | Param("VkBuffer", "dstBuffer"), |
| 962 | Param("VkDeviceSize", "dstOffset"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 963 | Param("VkDeviceSize", "stride"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 964 | Param("VkQueryResultFlags", "flags")]), |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 965 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 966 | Proto("void", "CmdPushConstants", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 967 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 968 | Param("VkPipelineLayout", "layout"), |
| 969 | Param("VkShaderStageFlags", "stageFlags"), |
Chia-I Wu | d50677e | 2015-10-26 20:46:14 +0800 | [diff] [blame] | 970 | Param("uint32_t", "offset"), |
| 971 | Param("uint32_t", "size"), |
Chia-I Wu | ce9b177 | 2015-11-12 06:09:22 +0800 | [diff] [blame] | 972 | Param("const void*", "pValues")]), |
Courtney Goeltzenleuchter | a97e2ea | 2015-07-27 13:47:08 -0600 | [diff] [blame] | 973 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 974 | Proto("void", "CmdBeginRenderPass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 975 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 976 | Param("const VkRenderPassBeginInfo*", "pRenderPassBegin"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 977 | Param("VkSubpassContents", "contents")]), |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 978 | |
| 979 | Proto("void", "CmdNextSubpass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 980 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 1b99bb2 | 2015-10-27 19:25:11 +0800 | [diff] [blame] | 981 | Param("VkSubpassContents", "contents")]), |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 982 | |
| 983 | Proto("void", "CmdEndRenderPass", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 984 | [Param("VkCommandBuffer", "commandBuffer")]), |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 985 | |
| 986 | Proto("void", "CmdExecuteCommands", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 987 | [Param("VkCommandBuffer", "commandBuffer"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 988 | Param("uint32_t", "commandBufferCount"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 989 | Param("const VkCommandBuffer*", "pCommandBuffers")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 990 | ], |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 991 | ) |
| 992 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 993 | VK_AMD_draw_indirect_count = Extension( |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 994 | name="VK_AMD_draw_indirect_count", |
| 995 | headers=["vulkan/vulkan.h"], |
| 996 | objects=[], |
| 997 | protos=[ |
| 998 | Proto("void", "CmdDrawIndirectCountAMD", |
| 999 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1000 | Param("VkBuffer", "buffer"), |
| 1001 | Param("VkDeviceSize", "offset"), |
| 1002 | Param("VkBuffer", "countBuffer"), |
| 1003 | Param("VkDeviceSize", "countBufferOffset"), |
| 1004 | Param("uint32_t", "maxDrawCount"), |
| 1005 | Param("uint32_t", "stride")]), |
| 1006 | |
| 1007 | Proto("void", "CmdDrawIndexedIndirectCountAMD", |
| 1008 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1009 | Param("VkBuffer", "buffer"), |
| 1010 | Param("VkDeviceSize", "offset"), |
| 1011 | Param("VkBuffer", "countBuffer"), |
| 1012 | Param("VkDeviceSize", "countBufferOffset"), |
| 1013 | Param("uint32_t", "maxDrawCount"), |
| 1014 | Param("uint32_t", "stride")]), |
| 1015 | ], |
| 1016 | ) |
| 1017 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1018 | VK_NV_external_memory_capabilities = Extension( |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1019 | name="VK_NV_external_memory_capabilities", |
| 1020 | headers=["vulkan/vulkan.h"], |
| 1021 | objects=[], |
| 1022 | protos=[ |
| 1023 | Proto("VkResult", "GetPhysicalDeviceExternalImageFormatPropertiesNV", |
| 1024 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1025 | Param("VkFormat", "format"), |
| 1026 | Param("VkImageType", "type"), |
| 1027 | Param("VkImageTiling", "tiling"), |
| 1028 | Param("VkImageUsageFlags", "usage"), |
| 1029 | Param("VkImageCreateFlags", "flags"), |
Arda Coskunses | 12f7cd0 | 2016-09-07 12:31:35 -0600 | [diff] [blame] | 1030 | Param("VkExternalMemoryHandleTypeFlagsNV", "externalHandleType"), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1031 | Param("VkExternalImageFormatPropertiesNV*", "pExternalImageFormatProperties")]), |
| 1032 | ], |
| 1033 | ) |
| 1034 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1035 | VK_NV_external_memory_win32 = Extension( |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1036 | name="VK_NV_external_memory_win32", |
| 1037 | headers=["vulkan/vulkan.h"], |
| 1038 | objects=[], |
| 1039 | ifdef="VK_USE_PLATFORM_WIN32_KHR", |
| 1040 | protos=[ |
| 1041 | Proto("VkResult", "GetMemoryWin32HandleNV", |
| 1042 | [Param("VkDevice", "device"), |
| 1043 | Param("VkDeviceMemory", "memory"), |
| 1044 | Param("VkExternalMemoryHandleTypeFlagsNV", "handleType"), |
| 1045 | Param("HANDLE*", "pHandle")]), |
| 1046 | ], |
| 1047 | ) |
| 1048 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1049 | VK_KHR_surface = Extension( |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1050 | name="VK_KHR_surface", |
| 1051 | headers=["vulkan/vulkan.h"], |
Jon Ashburn | 9380b67 | 2015-11-23 18:23:29 -0700 | [diff] [blame] | 1052 | objects=["vkSurfaceKHR"], |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1053 | protos=[ |
Jon Ashburn | 9380b67 | 2015-11-23 18:23:29 -0700 | [diff] [blame] | 1054 | Proto("void", "DestroySurfaceKHR", |
| 1055 | [Param("VkInstance", "instance"), |
| 1056 | Param("VkSurfaceKHR", "surface"), |
| 1057 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 1058 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1059 | Proto("VkResult", "GetPhysicalDeviceSurfaceSupportKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1060 | [Param("VkPhysicalDevice", "physicalDevice"), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1061 | Param("uint32_t", "queueFamilyIndex"), |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1062 | Param("VkSurfaceKHR", "surface"), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1063 | Param("VkBool32*", "pSupported")]), |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1064 | |
| 1065 | Proto("VkResult", "GetPhysicalDeviceSurfaceCapabilitiesKHR", |
| 1066 | [Param("VkPhysicalDevice", "physicalDevice"), |
Mark Lobodzinski | 0e39375 | 2016-05-04 09:19:54 -0600 | [diff] [blame] | 1067 | Param("VkSurfaceKHR", "surface"), |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1068 | Param("VkSurfaceCapabilitiesKHR*", "pSurfaceCapabilities")]), |
| 1069 | |
| 1070 | Proto("VkResult", "GetPhysicalDeviceSurfaceFormatsKHR", |
| 1071 | [Param("VkPhysicalDevice", "physicalDevice"), |
Mark Lobodzinski | 0e39375 | 2016-05-04 09:19:54 -0600 | [diff] [blame] | 1072 | Param("VkSurfaceKHR", "surface"), |
| 1073 | Param("uint32_t*", "pSurfaceFormatCount"), |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1074 | Param("VkSurfaceFormatKHR*", "pSurfaceFormats")]), |
| 1075 | |
| 1076 | Proto("VkResult", "GetPhysicalDeviceSurfacePresentModesKHR", |
| 1077 | [Param("VkPhysicalDevice", "physicalDevice"), |
Mark Lobodzinski | 0e39375 | 2016-05-04 09:19:54 -0600 | [diff] [blame] | 1078 | Param("VkSurfaceKHR", "surface"), |
| 1079 | Param("uint32_t*", "pPresentModeCount"), |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1080 | Param("VkPresentModeKHR*", "pPresentModes")]), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1081 | ], |
| 1082 | ) |
| 1083 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1084 | VK_KHR_display = Extension( |
Petros Bantolas | 2b40be7 | 2016-04-15 11:02:59 +0100 | [diff] [blame] | 1085 | name="VK_KHR_display", |
| 1086 | headers=["vulkan/vulkan.h"], |
| 1087 | objects=['VkSurfaceKHR', 'VkDisplayModeKHR'], |
| 1088 | protos=[ |
| 1089 | Proto("VkResult", "GetPhysicalDeviceDisplayPropertiesKHR", |
| 1090 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1091 | Param("uint32_t*", "pPropertyCount"), |
| 1092 | Param("VkDisplayPropertiesKHR*", "pProperties")]), |
| 1093 | |
| 1094 | Proto("VkResult", "GetPhysicalDeviceDisplayPlanePropertiesKHR", |
| 1095 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1096 | Param("uint32_t*", "pPropertyCount"), |
| 1097 | Param("VkDisplayPlanePropertiesKHR*", "pProperties")]), |
| 1098 | |
| 1099 | Proto("VkResult", "GetDisplayPlaneSupportedDisplaysKHR", |
| 1100 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1101 | Param("uint32_t", "planeIndex"), |
| 1102 | Param("uint32_t*", "pDisplayCount"), |
| 1103 | Param("VkDisplayKHR*", "pDisplays")]), |
| 1104 | |
| 1105 | Proto("VkResult", "GetDisplayModePropertiesKHR", |
| 1106 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1107 | Param("VkDisplayKHR", "display"), |
| 1108 | Param("uint32_t*", "pPropertyCount"), |
| 1109 | Param("VkDisplayModePropertiesKHR*", "pProperties")]), |
| 1110 | |
| 1111 | Proto("VkResult", "CreateDisplayModeKHR", |
| 1112 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1113 | Param("VkDisplayKHR", "display"), |
| 1114 | Param("const VkDisplayModeCreateInfoKHR*", "pCreateInfo"), |
| 1115 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1116 | Param("VkDisplayModeKHR*", "pMode")]), |
| 1117 | |
| 1118 | Proto("VkResult", "GetDisplayPlaneCapabilitiesKHR", |
| 1119 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1120 | Param("VkDisplayModeKHR", "mode"), |
| 1121 | Param("uint32_t", "planeIndex"), |
| 1122 | Param("VkDisplayPlaneCapabilitiesKHR*", "pCapabilities")]), |
| 1123 | |
| 1124 | Proto("VkResult", "CreateDisplayPlaneSurfaceKHR", |
| 1125 | [Param("VkInstance", "instance"), |
| 1126 | Param("const VkDisplaySurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1127 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1128 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1129 | ], |
| 1130 | ) |
| 1131 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1132 | VK_KHR_swapchain = Extension( |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1133 | name="VK_KHR_swapchain", |
| 1134 | headers=["vulkan/vulkan.h"], |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1135 | objects=["VkSwapchainKHR"], |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1136 | protos=[ |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1137 | Proto("VkResult", "CreateSwapchainKHR", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1138 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1139 | Param("const VkSwapchainCreateInfoKHR*", "pCreateInfo"), |
Ian Elliott | 0584606 | 2015-11-20 14:13:17 -0700 | [diff] [blame] | 1140 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1141 | Param("VkSwapchainKHR*", "pSwapchain")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1142 | |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1143 | Proto("void", "DestroySwapchainKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1144 | [Param("VkDevice", "device"), |
Ian Elliott | 0584606 | 2015-11-20 14:13:17 -0700 | [diff] [blame] | 1145 | Param("VkSwapchainKHR", "swapchain"), |
| 1146 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1147 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1148 | Proto("VkResult", "GetSwapchainImagesKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1149 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 0e39375 | 2016-05-04 09:19:54 -0600 | [diff] [blame] | 1150 | Param("VkSwapchainKHR", "swapchain"), |
| 1151 | Param("uint32_t*", "pSwapchainImageCount"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1152 | Param("VkImage*", "pSwapchainImages")]), |
Chia-I Wu | f869338 | 2015-04-16 22:02:10 +0800 | [diff] [blame] | 1153 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1154 | Proto("VkResult", "AcquireNextImageKHR", |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1155 | [Param("VkDevice", "device"), |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1156 | Param("VkSwapchainKHR", "swapchain"), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1157 | Param("uint64_t", "timeout"), |
| 1158 | Param("VkSemaphore", "semaphore"), |
Ian Elliott | 0584606 | 2015-11-20 14:13:17 -0700 | [diff] [blame] | 1159 | Param("VkFence", "fence"), |
Ian Elliott | 1064fe3 | 2015-07-06 14:31:32 -0600 | [diff] [blame] | 1160 | Param("uint32_t*", "pImageIndex")]), |
| 1161 | |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1162 | Proto("VkResult", "QueuePresentKHR", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1163 | [Param("VkQueue", "queue"), |
Ian Elliott | 0584606 | 2015-11-20 14:13:17 -0700 | [diff] [blame] | 1164 | Param("const VkPresentInfoKHR*", "pPresentInfo")]), |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 1165 | ], |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1166 | ) |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1167 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1168 | VK_KHR_display_swapchain = Extension( |
Mark Young | 1a86744 | 2016-07-01 15:18:27 -0600 | [diff] [blame] | 1169 | name="VK_KHR_display_swapchain", |
| 1170 | headers=["vulkan/vulkan.h"], |
| 1171 | objects=["VkDisplayPresentInfoKHR"], |
| 1172 | protos=[ |
| 1173 | Proto("VkResult", "CreateSharedSwapchainsKHR", |
| 1174 | [Param("VkDevice", "device"), |
| 1175 | Param("uint32_t", "swapchainCount"), |
| 1176 | Param("const VkSwapchainCreateInfoKHR*", "pCreateInfos"), |
| 1177 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1178 | Param("VkSwapchainKHR*", "pSwapchains")]), |
| 1179 | ], |
| 1180 | ) |
| 1181 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1182 | VK_KHR_xcb_surface = Extension( |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1183 | name="VK_KHR_xcb_surface", |
| 1184 | headers=["vulkan/vulkan.h"], |
| 1185 | objects=[], |
| 1186 | protos=[ |
| 1187 | Proto("VkResult", "CreateXcbSurfaceKHR", |
| 1188 | [Param("VkInstance", "instance"), |
Ian Elliott | f6b168c | 2015-12-11 15:03:05 -0700 | [diff] [blame] | 1189 | Param("const VkXcbSurfaceCreateInfoKHR*", "pCreateInfo"), |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1190 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1191 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1192 | |
| 1193 | Proto("VkBool32", "GetPhysicalDeviceXcbPresentationSupportKHR", |
Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1194 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1195 | Param("uint32_t", "queueFamilyIndex"), |
| 1196 | Param("xcb_connection_t*", "connection"), |
| 1197 | Param("xcb_visualid_t", "visual_id")]), |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1198 | ], |
| 1199 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1200 | |
| 1201 | VK_KHR_xlib_surface = Extension( |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1202 | name="VK_KHR_xlib_surface", |
| 1203 | headers=["vulkan/vulkan.h"], |
| 1204 | objects=[], |
David Hubbard | bb62395 | 2016-08-19 13:30:06 -0600 | [diff] [blame] | 1205 | ifdef="VK_USE_PLATFORM_XLIB_KHR", |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1206 | protos=[ |
| 1207 | Proto("VkResult", "CreateXlibSurfaceKHR", |
| 1208 | [Param("VkInstance", "instance"), |
| 1209 | Param("const VkXlibSurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1210 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1211 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1212 | |
| 1213 | Proto("VkBool32", "GetPhysicalDeviceXlibPresentationSupportKHR", |
| 1214 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1215 | Param("uint32_t", "queueFamilyIndex"), |
| 1216 | Param("Display*", "dpy"), |
| 1217 | Param("VisualID", "visualID")]), |
| 1218 | ], |
| 1219 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1220 | |
| 1221 | VK_KHR_wayland_surface = Extension( |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1222 | name="VK_KHR_wayland_surface", |
| 1223 | headers=["vulkan/vulkan.h"], |
| 1224 | objects=[], |
| 1225 | protos=[ |
| 1226 | Proto("VkResult", "CreateWaylandSurfaceKHR", |
| 1227 | [Param("VkInstance", "instance"), |
| 1228 | Param("const VkWaylandSurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1229 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1230 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1231 | |
| 1232 | Proto("VkBool32", "GetPhysicalDeviceWaylandPresentationSupportKHR", |
| 1233 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1234 | Param("uint32_t", "queueFamilyIndex"), |
| 1235 | Param("struct wl_display*", "display")]), |
| 1236 | ], |
| 1237 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1238 | |
| 1239 | VK_KHR_mir_surface = Extension( |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1240 | name="VK_KHR_mir_surface", |
| 1241 | headers=["vulkan/vulkan.h"], |
| 1242 | objects=[], |
| 1243 | protos=[ |
| 1244 | Proto("VkResult", "CreateMirSurfaceKHR", |
| 1245 | [Param("VkInstance", "instance"), |
| 1246 | Param("const VkMirSurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1247 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1248 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1249 | |
| 1250 | Proto("VkBool32", "GetPhysicalDeviceMirPresentationSupportKHR", |
| 1251 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1252 | Param("uint32_t", "queueFamilyIndex"), |
| 1253 | Param("MirConnection*", "connection")]), |
| 1254 | ], |
| 1255 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1256 | |
| 1257 | VK_KHR_android_surface = Extension( |
Courtney Goeltzenleuchter | 5a0f283 | 2016-02-11 11:44:04 -0700 | [diff] [blame] | 1258 | name="VK_KHR_android_surface", |
| 1259 | headers=["vulkan/vulkan.h"], |
| 1260 | objects=[], |
| 1261 | protos=[ |
| 1262 | Proto("VkResult", "CreateAndroidSurfaceKHR", |
| 1263 | [Param("VkInstance", "instance"), |
| 1264 | Param("const VkAndroidSurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1265 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1266 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1267 | ], |
| 1268 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1269 | |
| 1270 | VK_KHR_win32_surface = Extension( |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1271 | name="VK_KHR_win32_surface", |
| 1272 | headers=["vulkan/vulkan.h"], |
| 1273 | objects=[], |
| 1274 | protos=[ |
| 1275 | Proto("VkResult", "CreateWin32SurfaceKHR", |
| 1276 | [Param("VkInstance", "instance"), |
Ian Elliott | f6b168c | 2015-12-11 15:03:05 -0700 | [diff] [blame] | 1277 | Param("const VkWin32SurfaceCreateInfoKHR*", "pCreateInfo"), |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1278 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1279 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1280 | |
| 1281 | Proto("VkBool32", "GetPhysicalDeviceWin32PresentationSupportKHR", |
Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1282 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1283 | Param("uint32_t", "queueFamilyIndex")]), |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1284 | ], |
| 1285 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1286 | |
| 1287 | VK_EXT_debug_report = Extension( |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1288 | name="VK_EXT_debug_report", |
Mark Lobodzinski | 510e20d | 2016-02-11 09:26:16 -0700 | [diff] [blame] | 1289 | headers=["vulkan/vulkan.h"], |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1290 | objects=[ |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1291 | "VkDebugReportCallbackEXT", |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1292 | ], |
| 1293 | protos=[ |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1294 | Proto("VkResult", "CreateDebugReportCallbackEXT", |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1295 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1296 | Param("const VkDebugReportCallbackCreateInfoEXT*", "pCreateInfo"), |
Courtney Goeltzenleuchter | 05854bf | 2015-11-30 12:13:14 -0700 | [diff] [blame] | 1297 | Param("const VkAllocationCallbacks*", "pAllocator"), |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1298 | Param("VkDebugReportCallbackEXT*", "pCallback")]), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1299 | |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1300 | Proto("void", "DestroyDebugReportCallbackEXT", |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1301 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1302 | Param("VkDebugReportCallbackEXT", "callback"), |
Courtney Goeltzenleuchter | 05854bf | 2015-11-30 12:13:14 -0700 | [diff] [blame] | 1303 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
Courtney Goeltzenleuchter | 822e8d7 | 2015-11-30 15:28:25 -0700 | [diff] [blame] | 1304 | |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1305 | Proto("void", "DebugReportMessageEXT", |
Courtney Goeltzenleuchter | 822e8d7 | 2015-11-30 15:28:25 -0700 | [diff] [blame] | 1306 | [Param("VkInstance", "instance"), |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1307 | Param("VkDebugReportFlagsEXT", "flags"), |
| 1308 | Param("VkDebugReportObjectTypeEXT", "objType"), |
Courtney Goeltzenleuchter | 822e8d7 | 2015-11-30 15:28:25 -0700 | [diff] [blame] | 1309 | Param("uint64_t", "object"), |
| 1310 | Param("size_t", "location"), |
| 1311 | Param("int32_t", "msgCode"), |
| 1312 | Param("const char *", "pLayerPrefix"), |
| 1313 | Param("const char *", "pMsg")]), |
Jon Ashburn | ea65e49 | 2015-08-06 17:27:49 -0600 | [diff] [blame] | 1314 | ], |
| 1315 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1316 | |
| 1317 | VK_EXT_debug_marker = Extension( |
Mark Young | 1a86744 | 2016-07-01 15:18:27 -0600 | [diff] [blame] | 1318 | name="VK_EXT_debug_marker", |
| 1319 | headers=["vulkan/vulkan.h"], |
| 1320 | objects=[ |
| 1321 | "VkDebugMarkerObjectNameInfoEXT", |
| 1322 | "VkDebugMarkerObjectTagInfoEXT", |
| 1323 | "VkDebugMarkerMarkerInfoEXT" |
| 1324 | ], |
| 1325 | protos=[ |
| 1326 | Proto("VkResult", "DebugMarkerSetObjectTagEXT", |
| 1327 | [Param("VkDevice", "device"), |
| 1328 | Param("VkDebugMarkerObjectTagInfoEXT*", "pTagInfo")]), |
| 1329 | |
| 1330 | Proto("VkResult", "DebugMarkerSetObjectNameEXT", |
| 1331 | [Param("VkDevice", "device"), |
| 1332 | Param("VkDebugMarkerObjectNameInfoEXT*", "pNameInfo")]), |
| 1333 | |
| 1334 | Proto("void", "CmdDebugMarkerBeginEXT", |
| 1335 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1336 | Param("VkDebugMarkerMarkerInfoEXT*", "pMarkerInfo")]), |
| 1337 | |
| 1338 | Proto("void", "CmdDebugMarkerEndEXT", |
Arda Coskunses | 4e20c8e | 2016-09-07 23:41:07 -0600 | [diff] [blame] | 1339 | [Param("VkCommandBuffer", "commandBuffer")]), |
Mark Young | 1a86744 | 2016-07-01 15:18:27 -0600 | [diff] [blame] | 1340 | |
| 1341 | Proto("void", "CmdDebugMarkerInsertEXT", |
| 1342 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1343 | Param("VkDebugMarkerMarkerInfoEXT*", "pMarkerInfo")]), |
| 1344 | ], |
| 1345 | ) |
Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1346 | |
| 1347 | import sys |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1348 | |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1349 | wsi_linux = ['Xcb', 'Xlib', 'Wayland', 'Mir', 'Display'] |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1350 | |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1351 | # Set up platform-specific display servers |
| 1352 | linux_display_servers = ['Xcb', 'Xlib', 'Wayland', 'Mir', 'Display'] |
| 1353 | win32_display_servers = ['Win32'] |
| 1354 | android_display_servers = ['Android'] |
| 1355 | |
| 1356 | # Define non-WSI platform-specific extensions |
| 1357 | android_only_exts = [] |
| 1358 | linux_only_exts = [] |
| 1359 | win32_only_exts = [VK_NV_external_memory_win32, |
| 1360 | # VK_NV_win32_keyed_mutex, |
| 1361 | ] |
| 1362 | |
| 1363 | # Define platform-specific WSI extensions |
| 1364 | android_wsi_exts = [VK_KHR_android_surface, |
| 1365 | ] |
| 1366 | linux_wsi_exts = [VK_KHR_xlib_surface, |
| 1367 | VK_KHR_xcb_surface, |
| 1368 | VK_KHR_wayland_surface, |
| 1369 | VK_KHR_mir_surface, |
| 1370 | ] |
| 1371 | win32_wsi_exts = [VK_KHR_win32_surface |
| 1372 | ] |
| 1373 | |
| 1374 | # Define extensions common to all configurations |
| 1375 | common_exts = [VK_VERSION_1_0, |
| 1376 | VK_KHR_surface, |
| 1377 | VK_KHR_swapchain, |
| 1378 | VK_KHR_display_swapchain, |
| 1379 | ] |
| 1380 | |
| 1381 | # Define extensions not exported by the loader |
| 1382 | non_exported_exts = [VK_NV_external_memory_capabilities, |
| 1383 | VK_AMD_draw_indirect_count, |
| 1384 | VK_EXT_debug_report, |
| 1385 | VK_EXT_debug_marker, |
| 1386 | # VK_KHR_sampler_mirror_clamp_to_edge, |
| 1387 | # VK_NV_glsl_shader, |
| 1388 | # VK_IMG_filter_cubic, |
| 1389 | # VK_AMD_rasterization_order, |
| 1390 | # VK_AMD_shader_trinary_minmax, |
| 1391 | # VK_AMD_shader_explicit_vertex_parameter, |
| 1392 | # VK_AMD_gcn_shader, |
| 1393 | # VK_NV_dedicated_allocation, |
| 1394 | # VK_NV_external_memory, |
| 1395 | # VK_EXT_validation_flags, |
| 1396 | # VK_AMD_negative_viewport_height, |
| 1397 | # VK_AMD_gpu_shader_half_float, |
| 1398 | # VK_AMD_shader_ballot, |
| 1399 | # VK_IMG_format_pvrtc, |
| 1400 | ] |
| 1401 | non_android_exts = [VK_KHR_display, |
| 1402 | ] |
| 1403 | extensions = common_exts |
| 1404 | extensions_all = non_exported_exts |
| 1405 | |
| 1406 | if sys.argv[1] in win32_display_servers: |
| 1407 | extensions += win32_wsi_exts |
| 1408 | extensions_all += extensions + win32_only_exts |
| 1409 | elif sys.argv[1] in linux_display_servers: |
| 1410 | extensions += linux_wsi_exts |
| 1411 | extensions_all += extensions + linux_only_exts |
| 1412 | elif sys.argv[1] in android_display_servers: |
| 1413 | extensions += android_wsi_exts |
| 1414 | extensions_all += extensions + android_only_exts |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1415 | else: |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1416 | extensions += win32_wsi_exts + linux_wsi_exts + android_wsi_exts |
| 1417 | extensions_all += extensions + win32_only_exts + linux_only_exts + android_only_exts |
Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1418 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1419 | object_dispatch_list = [ |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1420 | "VkInstance", |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 1421 | "VkPhysicalDevice", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1422 | "VkDevice", |
| 1423 | "VkQueue", |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1424 | "VkCommandBuffer", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1425 | ] |
| 1426 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1427 | object_non_dispatch_list = [ |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 1428 | "VkCommandPool", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1429 | "VkFence", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1430 | "VkDeviceMemory", |
| 1431 | "VkBuffer", |
| 1432 | "VkImage", |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 1433 | "VkSemaphore", |
| 1434 | "VkEvent", |
| 1435 | "VkQueryPool", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1436 | "VkBufferView", |
| 1437 | "VkImageView", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1438 | "VkShaderModule", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1439 | "VkPipelineCache", |
| 1440 | "VkPipelineLayout", |
| 1441 | "VkPipeline", |
| 1442 | "VkDescriptorSetLayout", |
| 1443 | "VkSampler", |
| 1444 | "VkDescriptorPool", |
| 1445 | "VkDescriptorSet", |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1446 | "VkRenderPass", |
| 1447 | "VkFramebuffer", |
Ian Elliott | 7e40db9 | 2015-08-21 15:09:33 -0600 | [diff] [blame] | 1448 | "VkSwapchainKHR", |
Jon Ashburn | 9380b67 | 2015-11-23 18:23:29 -0700 | [diff] [blame] | 1449 | "VkSurfaceKHR", |
Courtney Goeltzenleuchter | 7415d5a | 2015-12-09 15:48:16 -0700 | [diff] [blame] | 1450 | "VkDebugReportCallbackEXT", |
Jon Ashburn | 5e026df | 2016-06-15 08:19:07 -0600 | [diff] [blame] | 1451 | "VkDisplayKHR", |
| 1452 | "VkDisplayModeKHR", |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1453 | ] |
| 1454 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 1455 | object_type_list = object_dispatch_list + object_non_dispatch_list |
Tobin Ehlis | 7e65d75 | 2015-01-15 17:51:52 -0700 | [diff] [blame] | 1456 | |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1457 | headers = [] |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1458 | objects = [] |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1459 | protos = [] |
| 1460 | for ext in extensions: |
| 1461 | headers.extend(ext.headers) |
Chia-I Wu | e86d8ab | 2015-01-04 14:46:22 +0800 | [diff] [blame] | 1462 | objects.extend(ext.objects) |
Chia-I Wu | c4f24e8 | 2015-01-01 08:46:31 +0800 | [diff] [blame] | 1463 | protos.extend(ext.protos) |
Chia-I Wu | 6dee8b8 | 2014-09-23 10:37:23 +0800 | [diff] [blame] | 1464 | |
Chia-I Wu | 9a4ceb1 | 2015-01-01 14:45:58 +0800 | [diff] [blame] | 1465 | proto_names = [proto.name for proto in protos] |
Chia-I Wu | 900a257 | 2014-08-01 14:44:16 +0800 | [diff] [blame] | 1466 | |
Mark Young | aa1aa3a | 2016-07-05 16:41:50 -0600 | [diff] [blame] | 1467 | headers_all = [] |
| 1468 | objects_all = [] |
| 1469 | protos_all = [] |
| 1470 | for ext in extensions_all: |
| 1471 | headers_all.extend(ext.headers) |
| 1472 | objects_all.extend(ext.objects) |
| 1473 | protos_all.extend(ext.protos) |
| 1474 | |
| 1475 | proto_all_names = [proto.name for proto in protos_all] |