Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -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. |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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): |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 28 | """A function parameter.""" |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 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 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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): |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 67 | """A function prototype.""" |
Chia-I Wu | fb2559d | 2014-08-01 11:19:52 +0800 | [diff] [blame] | 68 | |
Chia-I Wu | e442dc3 | 2015-01-01 09:31:15 +0800 | [diff] [blame] | 69 | def __init__(self, ret, name, params=[]): |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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) |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 113 | |
Mark Lobodzinski | fb4ce3d | 2016-10-26 09:29:08 -0600 | [diff] [blame] | 114 | pad = 44 - idx |
| 115 | if pad <= 0: |
| 116 | pad = 1 |
| 117 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 118 | plist.append(" %s%s%s%s" % (param.ty[:idx], |
| 119 | " " * pad, param.name, param.ty[idx:])) |
Mark Lobodzinski | fb4ce3d | 2016-10-26 09:29:08 -0600 | [diff] [blame] | 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 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 140 | def object_out_params(self): |
| 141 | """Return the params that are simple VK objects and are outputs.""" |
| 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 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 151 | return "Proto(\"%s\", \"%s\",\n%s)" % \ |
| 152 | (self.ret, self.name, param_str) |
Mark Lobodzinski | fb4ce3d | 2016-10-26 09:29:08 -0600 | [diff] [blame] | 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 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 171 | "VkSemaphore", |
| 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", |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 183 | "VkPipelineLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 184 | "VkRenderPass", |
| 185 | "VkPipeline", |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 186 | "VkDescriptorSetLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 195 | [Param("const VkInstanceCreateInfo*", "pCreateInfo"), |
| 196 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 197 | Param("VkInstance*", "pInstance")]), |
| 198 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 199 | Proto("void", "DestroyInstance", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 200 | [Param("VkInstance", "instance"), |
| 201 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 202 | |
Jon Ashburn | 83a6425 | 2015-04-15 11:31:12 -0600 | [diff] [blame] | 203 | Proto("VkResult", "EnumeratePhysicalDevices", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 204 | [Param("VkInstance", "instance"), |
| 205 | Param("uint32_t*", "pPhysicalDeviceCount"), |
| 206 | Param("VkPhysicalDevice*", "pPhysicalDevices")]), |
| 207 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 208 | Proto("void", "GetPhysicalDeviceFeatures", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 213 | [Param("VkPhysicalDevice", "physicalDevice"), |
Chris Forbes | bc0bb77 | 2015-06-21 22:55:02 +1200 | [diff] [blame] | 214 | Param("VkFormat", "format"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 215 | Param("VkFormatProperties*", "pFormatProperties")]), |
| 216 | |
Chia-I Wu | 1724104 | 2015-10-31 00:31:16 +0800 | [diff] [blame] | 217 | Proto("VkResult", "GetPhysicalDeviceImageFormatProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 218 | [Param("VkPhysicalDevice", "physicalDevice"), |
Jon Ashburn | 42540ef | 2015-07-23 18:48:20 -0600 | [diff] [blame] | 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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 224 | Param("VkImageFormatProperties*", "pImageFormatProperties")]), |
| 225 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 226 | Proto("void", "GetPhysicalDeviceProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 227 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 228 | Param("VkPhysicalDeviceProperties*", "pProperties")]), |
| 229 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 230 | Proto("void", "GetPhysicalDeviceQueueFamilyProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 231 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 232 | Param("uint32_t*", "pQueueFamilyPropertyCount"), |
| 233 | Param("VkQueueFamilyProperties*", "pQueueFamilyProperties")]), |
| 234 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 235 | Proto("void", "GetPhysicalDeviceMemoryProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 244 | [Param("VkDevice", "device"), |
| 245 | Param("const char*", "pName")]), |
| 246 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 247 | Proto("VkResult", "CreateDevice", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 248 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 249 | Param("const VkDeviceCreateInfo*", "pCreateInfo"), |
| 250 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 251 | Param("VkDevice*", "pDevice")]), |
| 252 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 253 | Proto("void", "DestroyDevice", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 254 | [Param("VkDevice", "device"), |
| 255 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 256 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 257 | Proto("VkResult", "EnumerateInstanceExtensionProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 258 | [Param("const char*", "pLayerName"), |
| 259 | Param("uint32_t*", "pPropertyCount"), |
| 260 | Param("VkExtensionProperties*", "pProperties")]), |
| 261 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 262 | Proto("VkResult", "EnumerateDeviceExtensionProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 263 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 264 | Param("const char*", "pLayerName"), |
| 265 | Param("uint32_t*", "pPropertyCount"), |
| 266 | Param("VkExtensionProperties*", "pProperties")]), |
| 267 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 268 | Proto("VkResult", "EnumerateInstanceLayerProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 269 | [Param("uint32_t*", "pPropertyCount"), |
| 270 | Param("VkLayerProperties*", "pProperties")]), |
| 271 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 272 | Proto("VkResult", "EnumerateDeviceLayerProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 273 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 274 | Param("uint32_t*", "pPropertyCount"), |
| 275 | Param("VkLayerProperties*", "pProperties")]), |
| 276 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 277 | Proto("void", "GetDeviceQueue", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 281 | Param("VkQueue*", "pQueue")]), |
| 282 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 283 | Proto("VkResult", "QueueSubmit", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 284 | [Param("VkQueue", "queue"), |
Courtney Goeltzenleuchter | 646b907 | 2015-10-20 18:04:07 -0600 | [diff] [blame] | 285 | Param("uint32_t", "submitCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 286 | Param("const VkSubmitInfo*", "pSubmits"), |
| 287 | Param("VkFence", "fence")]), |
| 288 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 289 | Proto("VkResult", "QueueWaitIdle", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 290 | [Param("VkQueue", "queue")]), |
| 291 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 292 | Proto("VkResult", "DeviceWaitIdle", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 293 | [Param("VkDevice", "device")]), |
| 294 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 295 | Proto("VkResult", "AllocateMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 296 | [Param("VkDevice", "device"), |
| 297 | Param("const VkMemoryAllocateInfo*", "pAllocateInfo"), |
| 298 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 299 | Param("VkDeviceMemory*", "pMemory")]), |
| 300 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 301 | Proto("void", "FreeMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 302 | [Param("VkDevice", "device"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 303 | Param("VkDeviceMemory", "memory"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 304 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 305 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 306 | Proto("VkResult", "MapMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 312 | Param("void**", "ppData")]), |
| 313 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 314 | Proto("void", "UnmapMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 315 | [Param("VkDevice", "device"), |
| 316 | Param("VkDeviceMemory", "memory")]), |
| 317 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 318 | Proto("VkResult", "FlushMappedMemoryRanges", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 319 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 320 | Param("uint32_t", "memoryRangeCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 321 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
| 322 | |
Courtney Goeltzenleuchter | f69f8a2 | 2015-04-29 17:16:21 -0600 | [diff] [blame] | 323 | Proto("VkResult", "InvalidateMappedMemoryRanges", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 324 | [Param("VkDevice", "device"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 325 | Param("uint32_t", "memoryRangeCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 326 | Param("const VkMappedMemoryRange*", "pMemoryRanges")]), |
| 327 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 328 | Proto("void", "GetDeviceMemoryCommitment", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 329 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 330 | Param("VkDeviceMemory", "memory"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 331 | Param("VkDeviceSize*", "pCommittedMemoryInBytes")]), |
| 332 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 333 | Proto("VkResult", "BindBufferMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 334 | [Param("VkDevice", "device"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 335 | Param("VkBuffer", "buffer"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 336 | Param("VkDeviceMemory", "memory"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 337 | Param("VkDeviceSize", "memoryOffset")]), |
| 338 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 339 | Proto("VkResult", "BindImageMemory", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 340 | [Param("VkDevice", "device"), |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 341 | Param("VkImage", "image"), |
Chia-I Wu | bb7fad9 | 2015-10-27 17:53:18 +0800 | [diff] [blame] | 342 | Param("VkDeviceMemory", "memory"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 343 | Param("VkDeviceSize", "memoryOffset")]), |
| 344 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 345 | Proto("void", "GetBufferMemoryRequirements", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 346 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 347 | Param("VkBuffer", "buffer"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 348 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
| 349 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 350 | Proto("void", "GetImageMemoryRequirements", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 351 | [Param("VkDevice", "device"), |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 352 | Param("VkImage", "image"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 353 | Param("VkMemoryRequirements*", "pMemoryRequirements")]), |
| 354 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 355 | Proto("void", "GetImageSparseMemoryRequirements", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 356 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 357 | Param("VkImage", "image"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 358 | Param("uint32_t*", "pSparseMemoryRequirementCount"), |
| 359 | Param("VkSparseImageMemoryRequirements*", "pSparseMemoryRequirements")]), |
| 360 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 361 | Proto("void", "GetPhysicalDeviceSparseImageFormatProperties", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 362 | [Param("VkPhysicalDevice", "physicalDevice"), |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 368 | Param("uint32_t*", "pPropertyCount"), |
| 369 | Param("VkSparseImageFormatProperties*", "pProperties")]), |
| 370 | |
Chia-I Wu | 1ff4c3d | 2015-10-26 16:55:27 +0800 | [diff] [blame] | 371 | Proto("VkResult", "QueueBindSparse", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 372 | [Param("VkQueue", "queue"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 373 | Param("uint32_t", "bindInfoCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 374 | Param("const VkBindSparseInfo*", "pBindInfo"), |
| 375 | Param("VkFence", "fence")]), |
| 376 | |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 377 | Proto("VkResult", "CreateFence", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 378 | [Param("VkDevice", "device"), |
| 379 | Param("const VkFenceCreateInfo*", "pCreateInfo"), |
| 380 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 381 | Param("VkFence*", "pFence")]), |
| 382 | |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 383 | Proto("void", "DestroyFence", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 384 | [Param("VkDevice", "device"), |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 385 | Param("VkFence", "fence"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 386 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 387 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 388 | Proto("VkResult", "ResetFences", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 389 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 148e158 | 2015-04-07 16:07:57 -0500 | [diff] [blame] | 390 | Param("uint32_t", "fenceCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 391 | Param("const VkFence*", "pFences")]), |
| 392 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 393 | Proto("VkResult", "GetFenceStatus", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 394 | [Param("VkDevice", "device"), |
| 395 | Param("VkFence", "fence")]), |
| 396 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 397 | Proto("VkResult", "WaitForFences", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 398 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 399 | Param("uint32_t", "fenceCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 402 | Param("uint64_t", "timeout")]), |
| 403 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 404 | Proto("VkResult", "CreateSemaphore", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 405 | [Param("VkDevice", "device"), |
| 406 | Param("const VkSemaphoreCreateInfo*", "pCreateInfo"), |
| 407 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 408 | Param("VkSemaphore*", "pSemaphore")]), |
| 409 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 410 | Proto("void", "DestroySemaphore", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 411 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 412 | Param("VkSemaphore", "semaphore"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 413 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 414 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 415 | Proto("VkResult", "CreateEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 416 | [Param("VkDevice", "device"), |
| 417 | Param("const VkEventCreateInfo*", "pCreateInfo"), |
| 418 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 419 | Param("VkEvent*", "pEvent")]), |
| 420 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 421 | Proto("void", "DestroyEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 422 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 423 | Param("VkEvent", "event"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 424 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 425 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 426 | Proto("VkResult", "GetEventStatus", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 427 | [Param("VkDevice", "device"), |
| 428 | Param("VkEvent", "event")]), |
| 429 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 430 | Proto("VkResult", "SetEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 431 | [Param("VkDevice", "device"), |
| 432 | Param("VkEvent", "event")]), |
| 433 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 434 | Proto("VkResult", "ResetEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 435 | [Param("VkDevice", "device"), |
| 436 | Param("VkEvent", "event")]), |
| 437 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 438 | Proto("VkResult", "CreateQueryPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 439 | [Param("VkDevice", "device"), |
| 440 | Param("const VkQueryPoolCreateInfo*", "pCreateInfo"), |
| 441 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 442 | Param("VkQueryPool*", "pQueryPool")]), |
| 443 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 444 | Proto("void", "DestroyQueryPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 445 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 446 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 447 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 448 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 449 | Proto("VkResult", "GetQueryPoolResults", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 450 | [Param("VkDevice", "device"), |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 455 | Param("void*", "pData"), |
Chia-I Wu | ccc93a7 | 2015-10-26 18:36:20 +0800 | [diff] [blame] | 456 | Param("VkDeviceSize", "stride"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 457 | Param("VkQueryResultFlags", "flags")]), |
| 458 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 459 | Proto("VkResult", "CreateBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 460 | [Param("VkDevice", "device"), |
| 461 | Param("const VkBufferCreateInfo*", "pCreateInfo"), |
| 462 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 463 | Param("VkBuffer*", "pBuffer")]), |
| 464 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 465 | Proto("void", "DestroyBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 466 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 467 | Param("VkBuffer", "buffer"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 468 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 469 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 470 | Proto("VkResult", "CreateBufferView", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 471 | [Param("VkDevice", "device"), |
| 472 | Param("const VkBufferViewCreateInfo*", "pCreateInfo"), |
| 473 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 474 | Param("VkBufferView*", "pView")]), |
| 475 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 476 | Proto("void", "DestroyBufferView", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 477 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 478 | Param("VkBufferView", "bufferView"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 479 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 480 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 481 | Proto("VkResult", "CreateImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 482 | [Param("VkDevice", "device"), |
| 483 | Param("const VkImageCreateInfo*", "pCreateInfo"), |
| 484 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 485 | Param("VkImage*", "pImage")]), |
| 486 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 487 | Proto("void", "DestroyImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 488 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 489 | Param("VkImage", "image"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 490 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 491 | |
Courtney Goeltzenleuchter | 06d8947 | 2015-10-20 16:40:38 -0600 | [diff] [blame] | 492 | Proto("void", "GetImageSubresourceLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 493 | [Param("VkDevice", "device"), |
Mike Stroyan | b050c68 | 2015-04-17 12:36:38 -0600 | [diff] [blame] | 494 | Param("VkImage", "image"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 495 | Param("const VkImageSubresource*", "pSubresource"), |
| 496 | Param("VkSubresourceLayout*", "pLayout")]), |
| 497 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 498 | Proto("VkResult", "CreateImageView", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 499 | [Param("VkDevice", "device"), |
| 500 | Param("const VkImageViewCreateInfo*", "pCreateInfo"), |
| 501 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 502 | Param("VkImageView*", "pView")]), |
| 503 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 504 | Proto("void", "DestroyImageView", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 505 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 506 | Param("VkImageView", "imageView"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 507 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 508 | |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 509 | Proto("VkResult", "CreateShaderModule", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 510 | [Param("VkDevice", "device"), |
| 511 | Param("const VkShaderModuleCreateInfo*", "pCreateInfo"), |
| 512 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 513 | Param("VkShaderModule*", "pShaderModule")]), |
| 514 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 515 | Proto("void", "DestroyShaderModule", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 516 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 517 | Param("VkShaderModule", "shaderModule"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 518 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 519 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 520 | Proto("VkResult", "CreatePipelineCache", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 521 | [Param("VkDevice", "device"), |
| 522 | Param("const VkPipelineCacheCreateInfo*", "pCreateInfo"), |
| 523 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 524 | Param("VkPipelineCache*", "pPipelineCache")]), |
| 525 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 526 | Proto("void", "DestroyPipelineCache", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 527 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 528 | Param("VkPipelineCache", "pipelineCache"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 529 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 530 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 531 | Proto("VkResult", "GetPipelineCacheData", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 532 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 533 | Param("VkPipelineCache", "pipelineCache"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 534 | Param("size_t*", "pDataSize"), |
| 535 | Param("void*", "pData")]), |
| 536 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 537 | Proto("VkResult", "MergePipelineCaches", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 541 | Param("const VkPipelineCache*", "pSrcCaches")]), |
| 542 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 543 | Proto("VkResult", "CreateGraphicsPipelines", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 547 | Param("const VkGraphicsPipelineCreateInfo*", "pCreateInfos"), |
| 548 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 549 | Param("VkPipeline*", "pPipelines")]), |
| 550 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 551 | Proto("VkResult", "CreateComputePipelines", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 552 | [Param("VkDevice", "device"), |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 553 | Param("VkPipelineCache", "pipelineCache"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 554 | Param("uint32_t", "createInfoCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 555 | Param("const VkComputePipelineCreateInfo*", "pCreateInfos"), |
| 556 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 557 | Param("VkPipeline*", "pPipelines")]), |
| 558 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 559 | Proto("void", "DestroyPipeline", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 560 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 561 | Param("VkPipeline", "pipeline"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 562 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 563 | |
Mark Lobodzinski | 0fadf5f | 2015-04-17 14:11:39 -0500 | [diff] [blame] | 564 | Proto("VkResult", "CreatePipelineLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 565 | [Param("VkDevice", "device"), |
| 566 | Param("const VkPipelineLayoutCreateInfo*", "pCreateInfo"), |
| 567 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 568 | Param("VkPipelineLayout*", "pPipelineLayout")]), |
| 569 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 570 | Proto("void", "DestroyPipelineLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 571 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 572 | Param("VkPipelineLayout", "pipelineLayout"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 573 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 574 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 575 | Proto("VkResult", "CreateSampler", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 576 | [Param("VkDevice", "device"), |
| 577 | Param("const VkSamplerCreateInfo*", "pCreateInfo"), |
| 578 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 579 | Param("VkSampler*", "pSampler")]), |
| 580 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 581 | Proto("void", "DestroySampler", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 582 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 583 | Param("VkSampler", "sampler"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 584 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 585 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 586 | Proto("VkResult", "CreateDescriptorSetLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 587 | [Param("VkDevice", "device"), |
| 588 | Param("const VkDescriptorSetLayoutCreateInfo*", "pCreateInfo"), |
| 589 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 590 | Param("VkDescriptorSetLayout*", "pSetLayout")]), |
| 591 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 592 | Proto("void", "DestroyDescriptorSetLayout", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 593 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 594 | Param("VkDescriptorSetLayout", "descriptorSetLayout"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 595 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 596 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 597 | Proto("VkResult", "CreateDescriptorPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 598 | [Param("VkDevice", "device"), |
| 599 | Param("const VkDescriptorPoolCreateInfo*", "pCreateInfo"), |
| 600 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 601 | Param("VkDescriptorPool*", "pDescriptorPool")]), |
| 602 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 603 | Proto("void", "DestroyDescriptorPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 604 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 605 | Param("VkDescriptorPool", "descriptorPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 606 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 607 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 608 | Proto("VkResult", "ResetDescriptorPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 609 | [Param("VkDevice", "device"), |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 610 | Param("VkDescriptorPool", "descriptorPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 611 | Param("VkDescriptorPoolResetFlags", "flags")]), |
| 612 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 613 | Proto("VkResult", "AllocateDescriptorSets", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 614 | [Param("VkDevice", "device"), |
| 615 | Param("const VkDescriptorSetAllocateInfo*", "pAllocateInfo"), |
| 616 | Param("VkDescriptorSet*", "pDescriptorSets")]), |
| 617 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 618 | Proto("VkResult", "FreeDescriptorSets", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 619 | [Param("VkDevice", "device"), |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 620 | Param("VkDescriptorPool", "descriptorPool"), |
Chia-I Wu | d50a7d7 | 2015-10-26 20:48:51 +0800 | [diff] [blame] | 621 | Param("uint32_t", "descriptorSetCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 622 | Param("const VkDescriptorSet*", "pDescriptorSets")]), |
| 623 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 624 | Proto("void", "UpdateDescriptorSets", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 625 | [Param("VkDevice", "device"), |
Chia-I Wu | 40cf0ae | 2015-10-26 17:20:32 +0800 | [diff] [blame] | 626 | Param("uint32_t", "descriptorWriteCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 629 | Param("const VkCopyDescriptorSet*", "pDescriptorCopies")]), |
| 630 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 631 | Proto("VkResult", "CreateFramebuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 632 | [Param("VkDevice", "device"), |
| 633 | Param("const VkFramebufferCreateInfo*", "pCreateInfo"), |
| 634 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 635 | Param("VkFramebuffer*", "pFramebuffer")]), |
| 636 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 637 | Proto("void", "DestroyFramebuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 638 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 639 | Param("VkFramebuffer", "framebuffer"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 640 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 641 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 642 | Proto("VkResult", "CreateRenderPass", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 643 | [Param("VkDevice", "device"), |
| 644 | Param("const VkRenderPassCreateInfo*", "pCreateInfo"), |
| 645 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 646 | Param("VkRenderPass*", "pRenderPass")]), |
| 647 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 648 | Proto("void", "DestroyRenderPass", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 649 | [Param("VkDevice", "device"), |
Chia-I Wu | f7458c5 | 2015-10-26 21:10:41 +0800 | [diff] [blame] | 650 | Param("VkRenderPass", "renderPass"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 651 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 652 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 653 | Proto("void", "GetRenderAreaGranularity", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 654 | [Param("VkDevice", "device"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 655 | Param("VkRenderPass", "renderPass"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 656 | Param("VkExtent2D*", "pGranularity")]), |
| 657 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 658 | Proto("VkResult", "CreateCommandPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 659 | [Param("VkDevice", "device"), |
| 660 | Param("const VkCommandPoolCreateInfo*", "pCreateInfo"), |
| 661 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 662 | Param("VkCommandPool*", "pCommandPool")]), |
| 663 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 664 | Proto("void", "DestroyCommandPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 665 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 666 | Param("VkCommandPool", "commandPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 667 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 668 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 669 | Proto("VkResult", "ResetCommandPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 670 | [Param("VkDevice", "device"), |
Chia-I Wu | aed8ca9 | 2015-10-27 18:59:16 +0800 | [diff] [blame] | 671 | Param("VkCommandPool", "commandPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 672 | Param("VkCommandPoolResetFlags", "flags")]), |
| 673 | |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 674 | Proto("VkResult", "AllocateCommandBuffers", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 675 | [Param("VkDevice", "device"), |
| 676 | Param("const VkCommandBufferAllocateInfo*", "pAllocateInfo"), |
| 677 | Param("VkCommandBuffer*", "pCommandBuffers")]), |
| 678 | |
Courtney Goeltzenleuchter | bee18a9 | 2015-10-23 14:21:05 -0600 | [diff] [blame] | 679 | Proto("void", "FreeCommandBuffers", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 683 | Param("const VkCommandBuffer*", "pCommandBuffers")]), |
| 684 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 685 | Proto("VkResult", "BeginCommandBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 686 | [Param("VkCommandBuffer", "commandBuffer"), |
| 687 | Param("const VkCommandBufferBeginInfo*", "pBeginInfo")]), |
| 688 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 689 | Proto("VkResult", "EndCommandBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 690 | [Param("VkCommandBuffer", "commandBuffer")]), |
| 691 | |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 692 | Proto("VkResult", "ResetCommandBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 693 | [Param("VkCommandBuffer", "commandBuffer"), |
| 694 | Param("VkCommandBufferResetFlags", "flags")]), |
| 695 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 696 | Proto("void", "CmdBindPipeline", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 697 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 698 | Param("VkPipelineBindPoint", "pipelineBindPoint"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 699 | Param("VkPipeline", "pipeline")]), |
| 700 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 701 | Proto("void", "CmdSetViewport", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 705 | Param("const VkViewport*", "pViewports")]), |
| 706 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 707 | Proto("void", "CmdSetScissor", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 711 | Param("const VkRect2D*", "pScissors")]), |
| 712 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 713 | Proto("void", "CmdSetLineWidth", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 714 | [Param("VkCommandBuffer", "commandBuffer"), |
| 715 | Param("float", "lineWidth")]), |
| 716 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 717 | Proto("void", "CmdSetDepthBias", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 721 | Param("float", "depthBiasSlopeFactor")]), |
| 722 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 723 | Proto("void", "CmdSetBlendConstants", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 724 | [Param("VkCommandBuffer", "commandBuffer"), |
| 725 | Param("const float[4]", "blendConstants")]), |
| 726 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 727 | Proto("void", "CmdSetDepthBounds", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 728 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 729 | Param("float", "minDepthBounds"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 730 | Param("float", "maxDepthBounds")]), |
| 731 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 732 | Proto("void", "CmdSetStencilCompareMask", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 733 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 734 | Param("VkStencilFaceFlags", "faceMask"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 735 | Param("uint32_t", "compareMask")]), |
| 736 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 737 | Proto("void", "CmdSetStencilWriteMask", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 738 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 739 | Param("VkStencilFaceFlags", "faceMask"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 740 | Param("uint32_t", "writeMask")]), |
| 741 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 742 | Proto("void", "CmdSetStencilReference", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 743 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 744 | Param("VkStencilFaceFlags", "faceMask"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 745 | Param("uint32_t", "reference")]), |
| 746 | |
Chia-I Wu | 53f07d7 | 2015-03-28 15:23:55 +0800 | [diff] [blame] | 747 | Proto("void", "CmdBindDescriptorSets", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 753 | Param("const VkDescriptorSet*", "pDescriptorSets"), |
Cody Northrop | d4c1a50 | 2015-04-16 13:41:56 -0600 | [diff] [blame] | 754 | Param("uint32_t", "dynamicOffsetCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 755 | Param("const uint32_t*", "pDynamicOffsets")]), |
| 756 | |
Tobin Ehlis | a30e7e5 | 2015-07-06 14:02:36 -0600 | [diff] [blame] | 757 | Proto("void", "CmdBindIndexBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 761 | Param("VkIndexType", "indexType")]), |
| 762 | |
Courtney Goeltzenleuchter | f68ad72 | 2015-04-16 13:38:46 -0600 | [diff] [blame] | 763 | Proto("void", "CmdBindVertexBuffers", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 767 | Param("const VkBuffer*", "pBuffers"), |
| 768 | Param("const VkDeviceSize*", "pOffsets")]), |
| 769 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 770 | Proto("void", "CmdDraw", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 775 | Param("uint32_t", "firstInstance")]), |
| 776 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 777 | Proto("void", "CmdDrawIndexed", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 783 | Param("uint32_t", "firstInstance")]), |
| 784 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 785 | Proto("void", "CmdDrawIndirect", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 790 | Param("uint32_t", "stride")]), |
| 791 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 792 | Proto("void", "CmdDrawIndexedIndirect", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 797 | Param("uint32_t", "stride")]), |
| 798 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 799 | Proto("void", "CmdDispatch", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 803 | Param("uint32_t", "z")]), |
| 804 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 805 | Proto("void", "CmdDispatchIndirect", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 806 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 807 | Param("VkBuffer", "buffer"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 808 | Param("VkDeviceSize", "offset")]), |
| 809 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 810 | Proto("void", "CmdCopyBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 815 | Param("const VkBufferCopy*", "pRegions")]), |
| 816 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 817 | Proto("void", "CmdCopyImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 824 | Param("const VkImageCopy*", "pRegions")]), |
| 825 | |
Courtney Goeltzenleuchter | 89299fa | 2015-03-08 17:02:18 -0600 | [diff] [blame] | 826 | Proto("void", "CmdBlitImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 833 | Param("const VkImageBlit*", "pRegions"), |
| 834 | Param("VkFilter", "filter")]), |
| 835 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 836 | Proto("void", "CmdCopyBufferToImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 842 | Param("const VkBufferImageCopy*", "pRegions")]), |
| 843 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 844 | Proto("void", "CmdCopyImageToBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 850 | Param("const VkBufferImageCopy*", "pRegions")]), |
| 851 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 852 | Proto("void", "CmdUpdateBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 853 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 854 | Param("VkBuffer", "dstBuffer"), |
| 855 | Param("VkDeviceSize", "dstOffset"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 856 | Param("VkDeviceSize", "dataSize"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 857 | Param("const void*", "pData")]), |
| 858 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 859 | Proto("void", "CmdFillBuffer", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 860 | [Param("VkCommandBuffer", "commandBuffer"), |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 864 | Param("uint32_t", "data")]), |
| 865 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 866 | Proto("void", "CmdClearColorImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 870 | Param("const VkClearColorValue*", "pColor"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 871 | Param("uint32_t", "rangeCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 872 | Param("const VkImageSubresourceRange*", "pRanges")]), |
| 873 | |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 874 | Proto("void", "CmdClearDepthStencilImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 878 | Param("const VkClearDepthStencilValue*", "pDepthStencil"), |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 879 | Param("uint32_t", "rangeCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 880 | Param("const VkImageSubresourceRange*", "pRanges")]), |
| 881 | |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 882 | Proto("void", "CmdClearAttachments", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 883 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | c9323e0 | 2015-10-15 16:51:05 -0600 | [diff] [blame] | 884 | Param("uint32_t", "attachmentCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 885 | Param("const VkClearAttachment*", "pAttachments"), |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 886 | Param("uint32_t", "rectCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 887 | Param("const VkClearRect*", "pRects")]), |
| 888 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 889 | Proto("void", "CmdResolveImage", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 896 | Param("const VkImageResolve*", "pRegions")]), |
| 897 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 898 | Proto("void", "CmdSetEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 899 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 900 | Param("VkEvent", "event"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 901 | Param("VkPipelineStageFlags", "stageMask")]), |
| 902 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 903 | Proto("void", "CmdResetEvent", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 904 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 905 | Param("VkEvent", "event"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 906 | Param("VkPipelineStageFlags", "stageMask")]), |
| 907 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 908 | Proto("void", "CmdWaitEvents", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 909 | [Param("VkCommandBuffer", "commandBuffer"), |
Tony Barbour | d1c3572 | 2015-04-16 15:59:00 -0600 | [diff] [blame] | 910 | Param("uint32_t", "eventCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 915 | Param("const VkMemoryBarrier*", "pMemoryBarriers"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 916 | Param("uint32_t", "bufferMemoryBarrierCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 917 | Param("const VkBufferMemoryBarrier*", "pBufferMemoryBarriers"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 918 | Param("uint32_t", "imageMemoryBarrierCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 919 | Param("const VkImageMemoryBarrier*", "pImageMemoryBarriers")]), |
| 920 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 921 | Proto("void", "CmdPipelineBarrier", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 927 | Param("const VkMemoryBarrier*", "pMemoryBarriers"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 928 | Param("uint32_t", "bufferMemoryBarrierCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 929 | Param("const VkBufferMemoryBarrier*", "pBufferMemoryBarriers"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 930 | Param("uint32_t", "imageMemoryBarrierCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 931 | Param("const VkImageMemoryBarrier*", "pImageMemoryBarriers")]), |
| 932 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 933 | Proto("void", "CmdBeginQuery", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 937 | Param("VkQueryControlFlags", "flags")]), |
| 938 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 939 | Proto("void", "CmdEndQuery", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 940 | [Param("VkCommandBuffer", "commandBuffer"), |
Courtney Goeltzenleuchter | fb4efc6 | 2015-04-10 08:34:15 -0600 | [diff] [blame] | 941 | Param("VkQueryPool", "queryPool"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 942 | Param("uint32_t", "query")]), |
| 943 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 944 | Proto("void", "CmdResetQueryPool", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 948 | Param("uint32_t", "queryCount")]), |
| 949 | |
Mark Lobodzinski | 17caf57 | 2015-01-29 08:55:56 -0600 | [diff] [blame] | 950 | Proto("void", "CmdWriteTimestamp", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 954 | Param("uint32_t", "query")]), |
| 955 | |
Courtney Goeltzenleuchter | 1dbc8e2 | 2015-04-15 18:21:13 -0600 | [diff] [blame] | 956 | Proto("void", "CmdCopyQueryPoolResults", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 964 | Param("VkQueryResultFlags", "flags")]), |
| 965 | |
Chia-I Wu | ce805cb | 2015-10-26 18:50:46 +0800 | [diff] [blame] | 966 | Proto("void", "CmdPushConstants", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 972 | Param("const void*", "pValues")]), |
| 973 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 974 | Proto("void", "CmdBeginRenderPass", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 975 | [Param("VkCommandBuffer", "commandBuffer"), |
| 976 | Param("const VkRenderPassBeginInfo*", "pRenderPassBegin"), |
| 977 | Param("VkSubpassContents", "contents")]), |
| 978 | |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 979 | Proto("void", "CmdNextSubpass", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 980 | [Param("VkCommandBuffer", "commandBuffer"), |
| 981 | Param("VkSubpassContents", "contents")]), |
| 982 | |
Jon Ashburn | e13f198 | 2015-02-02 09:58:11 -0700 | [diff] [blame] | 983 | Proto("void", "CmdEndRenderPass", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 984 | [Param("VkCommandBuffer", "commandBuffer")]), |
| 985 | |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 986 | Proto("void", "CmdExecuteCommands", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 987 | [Param("VkCommandBuffer", "commandBuffer"), |
Jon Ashburn | f19916e | 2016-01-11 13:12:43 -0700 | [diff] [blame] | 988 | Param("uint32_t", "commandBufferCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 999 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1000 | Param("VkBuffer", "buffer"), |
| 1001 | Param("VkDeviceSize", "offset"), |
| 1002 | Param("VkBuffer", "countBuffer"), |
| 1003 | Param("VkDeviceSize", "countBufferOffset"), |
| 1004 | Param("uint32_t", "maxDrawCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1005 | Param("uint32_t", "stride")]), |
| 1006 | |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1007 | Proto("void", "CmdDrawIndexedIndirectCountAMD", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1008 | [Param("VkCommandBuffer", "commandBuffer"), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1009 | Param("VkBuffer", "buffer"), |
| 1010 | Param("VkDeviceSize", "offset"), |
| 1011 | Param("VkBuffer", "countBuffer"), |
| 1012 | Param("VkDeviceSize", "countBufferOffset"), |
| 1013 | Param("uint32_t", "maxDrawCount"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1014 | Param("uint32_t", "stride")]), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 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", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1024 | [Param("VkPhysicalDevice", "physicalDevice"), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 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 | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1031 | Param("VkExternalImageFormatPropertiesNV*", "pExternalImageFormatProperties")]), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 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"], |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 1038 | objects=[], |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1039 | ifdef="VK_USE_PLATFORM_WIN32_KHR", |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1040 | protos=[ |
| 1041 | Proto("VkResult", "GetMemoryWin32HandleNV", |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1042 | [Param("VkDevice", "device"), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1043 | Param("VkDeviceMemory", "memory"), |
| 1044 | Param("VkExternalMemoryHandleTypeFlagsNV", "handleType"), |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1045 | Param("HANDLE*", "pHandle")]), |
Mark Lobodzinski | 4c57a73 | 2016-08-29 11:56:02 -0600 | [diff] [blame] | 1046 | ], |
| 1047 | ) |
| 1048 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1049 | VK_KHR_surface = Extension( |
| 1050 | name="VK_KHR_surface", |
Ian Elliott | f328470 | 2015-10-29 16:35:06 -0600 | [diff] [blame] | 1051 | headers=["vulkan/vulkan.h"], |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1052 | objects=["vkSurfaceKHR"], |
| 1053 | protos=[ |
| 1054 | Proto("void", "DestroySurfaceKHR", |
| 1055 | [Param("VkInstance", "instance"), |
| 1056 | Param("VkSurfaceKHR", "surface"), |
| 1057 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 1058 | |
| 1059 | Proto("VkResult", "GetPhysicalDeviceSurfaceSupportKHR", |
| 1060 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1061 | Param("uint32_t", "queueFamilyIndex"), |
| 1062 | Param("VkSurfaceKHR", "surface"), |
| 1063 | Param("VkBool32*", "pSupported")]), |
| 1064 | |
| 1065 | Proto("VkResult", "GetPhysicalDeviceSurfaceCapabilitiesKHR", |
| 1066 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1067 | Param("VkSurfaceKHR", "surface"), |
| 1068 | Param("VkSurfaceCapabilitiesKHR*", "pSurfaceCapabilities")]), |
| 1069 | |
| 1070 | Proto("VkResult", "GetPhysicalDeviceSurfaceFormatsKHR", |
| 1071 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1072 | Param("VkSurfaceKHR", "surface"), |
| 1073 | Param("uint32_t*", "pSurfaceFormatCount"), |
| 1074 | Param("VkSurfaceFormatKHR*", "pSurfaceFormats")]), |
| 1075 | |
| 1076 | Proto("VkResult", "GetPhysicalDeviceSurfacePresentModesKHR", |
| 1077 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1078 | Param("VkSurfaceKHR", "surface"), |
| 1079 | Param("uint32_t*", "pPresentModeCount"), |
| 1080 | Param("VkPresentModeKHR*", "pPresentModes")]), |
| 1081 | ], |
Mark Lobodzinski | 3077be0 | 2015-11-24 14:03:18 -0700 | [diff] [blame] | 1082 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1083 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1084 | VK_KHR_display = Extension( |
| 1085 | name="VK_KHR_display", |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1086 | headers=["vulkan/vulkan.h"], |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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 | ], |
Mun, Gwan-gyeong | bd4dd59 | 2016-02-22 09:43:09 +0900 | [diff] [blame] | 1130 | ) |
Mark Lobodzinski | 33f60e2 | 2016-10-27 09:48:53 -0600 | [diff] [blame] | 1131 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1132 | VK_KHR_swapchain = Extension( |
| 1133 | name="VK_KHR_swapchain", |
| 1134 | headers=["vulkan/vulkan.h"], |
| 1135 | objects=["VkSwapchainKHR"], |
| 1136 | protos=[ |
| 1137 | Proto("VkResult", "CreateSwapchainKHR", |
| 1138 | [Param("VkDevice", "device"), |
| 1139 | Param("const VkSwapchainCreateInfoKHR*", "pCreateInfo"), |
| 1140 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1141 | Param("VkSwapchainKHR*", "pSwapchain")]), |
| 1142 | |
| 1143 | Proto("void", "DestroySwapchainKHR", |
| 1144 | [Param("VkDevice", "device"), |
| 1145 | Param("VkSwapchainKHR", "swapchain"), |
| 1146 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 1147 | |
| 1148 | Proto("VkResult", "GetSwapchainImagesKHR", |
| 1149 | [Param("VkDevice", "device"), |
| 1150 | Param("VkSwapchainKHR", "swapchain"), |
| 1151 | Param("uint32_t*", "pSwapchainImageCount"), |
| 1152 | Param("VkImage*", "pSwapchainImages")]), |
| 1153 | |
| 1154 | Proto("VkResult", "AcquireNextImageKHR", |
| 1155 | [Param("VkDevice", "device"), |
| 1156 | Param("VkSwapchainKHR", "swapchain"), |
| 1157 | Param("uint64_t", "timeout"), |
| 1158 | Param("VkSemaphore", "semaphore"), |
| 1159 | Param("VkFence", "fence"), |
| 1160 | Param("uint32_t*", "pImageIndex")]), |
| 1161 | |
| 1162 | Proto("VkResult", "QueuePresentKHR", |
| 1163 | [Param("VkQueue", "queue"), |
| 1164 | Param("const VkPresentInfoKHR*", "pPresentInfo")]), |
| 1165 | ], |
| 1166 | ) |
| 1167 | |
| 1168 | VK_KHR_display_swapchain = Extension( |
| 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 | |
| 1182 | VK_KHR_xcb_surface = Extension( |
| 1183 | name="VK_KHR_xcb_surface", |
| 1184 | headers=["vulkan/vulkan.h"], |
| 1185 | objects=[], |
| 1186 | protos=[ |
| 1187 | Proto("VkResult", "CreateXcbSurfaceKHR", |
| 1188 | [Param("VkInstance", "instance"), |
| 1189 | Param("const VkXcbSurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1190 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1191 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1192 | |
| 1193 | Proto("VkBool32", "GetPhysicalDeviceXcbPresentationSupportKHR", |
| 1194 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1195 | Param("uint32_t", "queueFamilyIndex"), |
| 1196 | Param("xcb_connection_t*", "connection"), |
| 1197 | Param("xcb_visualid_t", "visual_id")]), |
| 1198 | ], |
| 1199 | ) |
| 1200 | |
| 1201 | VK_KHR_xlib_surface = Extension( |
| 1202 | name="VK_KHR_xlib_surface", |
| 1203 | headers=["vulkan/vulkan.h"], |
| 1204 | objects=[], |
| 1205 | ifdef="VK_USE_PLATFORM_XLIB_KHR", |
| 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 | ) |
| 1220 | |
| 1221 | VK_KHR_wayland_surface = Extension( |
| 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 | ) |
| 1238 | |
| 1239 | VK_KHR_mir_surface = Extension( |
| 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 | ) |
| 1256 | |
| 1257 | VK_KHR_android_surface = Extension( |
| 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 | ) |
| 1269 | |
| 1270 | VK_KHR_win32_surface = Extension( |
| 1271 | name="VK_KHR_win32_surface", |
| 1272 | headers=["vulkan/vulkan.h"], |
| 1273 | objects=[], |
| 1274 | protos=[ |
| 1275 | Proto("VkResult", "CreateWin32SurfaceKHR", |
| 1276 | [Param("VkInstance", "instance"), |
| 1277 | Param("const VkWin32SurfaceCreateInfoKHR*", "pCreateInfo"), |
| 1278 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1279 | Param("VkSurfaceKHR*", "pSurface")]), |
| 1280 | |
| 1281 | Proto("VkBool32", "GetPhysicalDeviceWin32PresentationSupportKHR", |
| 1282 | [Param("VkPhysicalDevice", "physicalDevice"), |
| 1283 | Param("uint32_t", "queueFamilyIndex")]), |
| 1284 | ], |
| 1285 | ) |
| 1286 | |
| 1287 | VK_EXT_debug_report = Extension( |
| 1288 | name="VK_EXT_debug_report", |
| 1289 | headers=["vulkan/vulkan.h"], |
| 1290 | objects=[ |
| 1291 | "VkDebugReportCallbackEXT", |
| 1292 | ], |
| 1293 | protos=[ |
| 1294 | Proto("VkResult", "CreateDebugReportCallbackEXT", |
| 1295 | [Param("VkInstance", "instance"), |
| 1296 | Param("const VkDebugReportCallbackCreateInfoEXT*", "pCreateInfo"), |
| 1297 | Param("const VkAllocationCallbacks*", "pAllocator"), |
| 1298 | Param("VkDebugReportCallbackEXT*", "pCallback")]), |
| 1299 | |
| 1300 | Proto("void", "DestroyDebugReportCallbackEXT", |
| 1301 | [Param("VkInstance", "instance"), |
| 1302 | Param("VkDebugReportCallbackEXT", "callback"), |
| 1303 | Param("const VkAllocationCallbacks*", "pAllocator")]), |
| 1304 | |
| 1305 | Proto("void", "DebugReportMessageEXT", |
| 1306 | [Param("VkInstance", "instance"), |
| 1307 | Param("VkDebugReportFlagsEXT", "flags"), |
| 1308 | Param("VkDebugReportObjectTypeEXT", "objType"), |
| 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")]), |
| 1314 | ], |
| 1315 | ) |
| 1316 | |
| 1317 | VK_EXT_debug_marker = Extension( |
| 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", |
| 1339 | [Param("VkCommandBuffer", "commandBuffer")]), |
| 1340 | |
| 1341 | Proto("void", "CmdDebugMarkerInsertEXT", |
| 1342 | [Param("VkCommandBuffer", "commandBuffer"), |
| 1343 | Param("VkDebugMarkerMarkerInfoEXT*", "pMarkerInfo")]), |
| 1344 | ], |
| 1345 | ) |
| 1346 | |
Mark Lobodzinski | e86e138 | 2015-11-24 15:50:44 -0700 | [diff] [blame] | 1347 | import sys |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1348 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1349 | wsi_linux = ['Xcb', 'Xlib', 'Wayland', 'Mir', 'Display'] |
Mark Lobodzinski | e3481c0 | 2016-11-16 14:53:26 -0700 | [diff] [blame] | 1350 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [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'] |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1355 | |
| 1356 | # Define non-WSI platform-specific extensions |
| 1357 | android_only_exts = [] |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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 | ] |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1373 | |
| 1374 | # Define extensions common to all configurations |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1375 | common_exts = [VK_VERSION_1_0, |
| 1376 | VK_KHR_surface, |
| 1377 | VK_KHR_swapchain, |
| 1378 | VK_KHR_display_swapchain, |
| 1379 | ] |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 1380 | |
| 1381 | # Define extensions not exported by the loader |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 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 | ] |
Mark Lobodzinski | 2bdb5af | 2016-10-27 09:52:30 -0600 | [diff] [blame] | 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 | |
Mark Lobodzinski | c2d0c80 | 2016-11-17 10:20:12 -0700 | [diff] [blame^] | 1419 | object_dispatch_list = [ |
| 1420 | "VkInstance", |
| 1421 | "VkPhysicalDevice", |
| 1422 | "VkDevice", |
| 1423 | "VkQueue", |
| 1424 | "VkCommandBuffer", |
| 1425 | ] |
| 1426 | |
| 1427 | object_non_dispatch_list = [ |
| 1428 | "VkCommandPool", |
| 1429 | "VkFence", |
| 1430 | "VkDeviceMemory", |
| 1431 | "VkBuffer", |
| 1432 | "VkImage", |
| 1433 | "VkSemaphore", |
| 1434 | "VkEvent", |
| 1435 | "VkQueryPool", |
| 1436 | "VkBufferView", |
| 1437 | "VkImageView", |
| 1438 | "VkShaderModule", |
| 1439 | "VkPipelineCache", |
| 1440 | "VkPipelineLayout", |
| 1441 | "VkPipeline", |
| 1442 | "VkDescriptorSetLayout", |
| 1443 | "VkSampler", |
| 1444 | "VkDescriptorPool", |
| 1445 | "VkDescriptorSet", |
| 1446 | "VkRenderPass", |
| 1447 | "VkFramebuffer", |
| 1448 | "VkSwapchainKHR", |
| 1449 | "VkSurfaceKHR", |
| 1450 | "VkDebugReportCallbackEXT", |
| 1451 | "VkDisplayKHR", |
| 1452 | "VkDisplayModeKHR", |
| 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] |