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