| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright 2016 The Android Open Source Project | 
|  | 3 | * | 
|  | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 5 | * you may not use this file except in compliance with the License. | 
|  | 6 | * You may obtain a copy of the License at | 
|  | 7 | * | 
|  | 8 | *      http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 9 | * | 
|  | 10 | * Unless required by applicable law or agreed to in writing, software | 
|  | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 13 | * See the License for the specific language governing permissions and | 
|  | 14 | * limitations under the License. | 
|  | 15 | */ | 
|  | 16 |  | 
|  | 17 | // WARNING: This file is generated. See ../README.md for instructions. | 
|  | 18 |  | 
|  | 19 | #include <string.h> | 
|  | 20 | #include <algorithm> | 
|  | 21 | #include <log/log.h> | 
|  | 22 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 23 | // to catch mismatches between vulkan.h and this file | 
|  | 24 | #undef VK_NO_PROTOTYPES | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 25 | #include "api.h" | 
|  | 26 |  | 
|  | 27 | namespace vulkan { | 
|  | 28 | namespace api { | 
|  | 29 |  | 
|  | 30 | #define UNLIKELY(expr) __builtin_expect((expr), 0) | 
|  | 31 |  | 
|  | 32 | #define INIT_PROC(obj, proc)                                           \ | 
|  | 33 | do {                                                               \ | 
|  | 34 | data.dispatch.proc =                                           \ | 
|  | 35 | reinterpret_cast<PFN_vk##proc>(get_proc(obj, "vk" #proc)); \ | 
|  | 36 | if (UNLIKELY(!data.dispatch.proc)) {                           \ | 
|  | 37 | ALOGE("missing " #obj " proc: vk" #proc);                  \ | 
|  | 38 | success = false;                                           \ | 
|  | 39 | }                                                              \ | 
|  | 40 | } while (0) | 
|  | 41 |  | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 42 | // Exported extension functions may be invoked even when their extensions | 
|  | 43 | // are disabled.  Dispatch to stubs when that happens. | 
|  | 44 | #define INIT_PROC_EXT(ext, obj, proc)            \ | 
|  | 45 | do {                                         \ | 
|  | 46 | if (extensions[driver::ProcHook::ext])   \ | 
|  | 47 | INIT_PROC(obj, proc);                \ | 
|  | 48 | else                                     \ | 
|  | 49 | data.dispatch.proc = disabled##proc; \ | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 50 | } while (0) | 
|  | 51 |  | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 52 | namespace { | 
|  | 53 |  | 
|  | 54 | // clang-format off | 
|  | 55 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 56 | VKAPI_ATTR void disabledDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR, const VkAllocationCallbacks*) { | 
|  | 57 | driver::Logger(instance).Err(instance, "VK_KHR_surface not enabled. Exported vkDestroySurfaceKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 58 | } | 
|  | 59 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 60 | VKAPI_ATTR VkResult disabledGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t, VkSurfaceKHR, VkBool32*) { | 
|  | 61 | driver::Logger(physicalDevice).Err(physicalDevice, "VK_KHR_surface not enabled. Exported vkGetPhysicalDeviceSurfaceSupportKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 62 | return VK_SUCCESS; | 
|  | 63 | } | 
|  | 64 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 65 | VKAPI_ATTR VkResult disabledGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR, VkSurfaceCapabilitiesKHR*) { | 
|  | 66 | driver::Logger(physicalDevice).Err(physicalDevice, "VK_KHR_surface not enabled. Exported vkGetPhysicalDeviceSurfaceCapabilitiesKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 67 | return VK_SUCCESS; | 
|  | 68 | } | 
|  | 69 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 70 | VKAPI_ATTR VkResult disabledGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR, uint32_t*, VkSurfaceFormatKHR*) { | 
|  | 71 | driver::Logger(physicalDevice).Err(physicalDevice, "VK_KHR_surface not enabled. Exported vkGetPhysicalDeviceSurfaceFormatsKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 72 | return VK_SUCCESS; | 
|  | 73 | } | 
|  | 74 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 75 | VKAPI_ATTR VkResult disabledGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR, uint32_t*, VkPresentModeKHR*) { | 
|  | 76 | driver::Logger(physicalDevice).Err(physicalDevice, "VK_KHR_surface not enabled. Exported vkGetPhysicalDeviceSurfacePresentModesKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 77 | return VK_SUCCESS; | 
|  | 78 | } | 
|  | 79 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 80 | VKAPI_ATTR VkResult disabledCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR*, const VkAllocationCallbacks*, VkSwapchainKHR*) { | 
|  | 81 | driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkCreateSwapchainKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 82 | return VK_SUCCESS; | 
|  | 83 | } | 
|  | 84 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 85 | VKAPI_ATTR void disabledDestroySwapchainKHR(VkDevice device, VkSwapchainKHR, const VkAllocationCallbacks*) { | 
|  | 86 | driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkDestroySwapchainKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 87 | } | 
|  | 88 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 89 | VKAPI_ATTR VkResult disabledGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR, uint32_t*, VkImage*) { | 
|  | 90 | driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkGetSwapchainImagesKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 91 | return VK_SUCCESS; | 
|  | 92 | } | 
|  | 93 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 94 | VKAPI_ATTR VkResult disabledAcquireNextImageKHR(VkDevice device, VkSwapchainKHR, uint64_t, VkSemaphore, VkFence, uint32_t*) { | 
|  | 95 | driver::Logger(device).Err(device, "VK_KHR_swapchain not enabled. Exported vkAcquireNextImageKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 96 | return VK_SUCCESS; | 
|  | 97 | } | 
|  | 98 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 99 | VKAPI_ATTR VkResult disabledQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR*) { | 
|  | 100 | driver::Logger(queue).Err(queue, "VK_KHR_swapchain not enabled. Exported vkQueuePresentKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 101 | return VK_SUCCESS; | 
|  | 102 | } | 
|  | 103 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 104 | VKAPI_ATTR VkResult disabledCreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR*, const VkAllocationCallbacks*, VkSurfaceKHR*) { | 
|  | 105 | driver::Logger(instance).Err(instance, "VK_KHR_android_surface not enabled. Exported vkCreateAndroidSurfaceKHR not executed."); | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 106 | return VK_SUCCESS; | 
|  | 107 | } | 
|  | 108 |  | 
|  | 109 | // clang-format on | 
|  | 110 |  | 
|  | 111 | }  // anonymous | 
|  | 112 |  | 
|  | 113 | bool InitDispatchTable( | 
|  | 114 | VkInstance instance, | 
|  | 115 | PFN_vkGetInstanceProcAddr get_proc, | 
|  | 116 | const std::bitset<driver::ProcHook::EXTENSION_COUNT>& extensions) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 117 | auto& data = GetData(instance); | 
|  | 118 | bool success = true; | 
|  | 119 |  | 
|  | 120 | // clang-format off | 
|  | 121 | INIT_PROC(instance, DestroyInstance); | 
|  | 122 | INIT_PROC(instance, EnumeratePhysicalDevices); | 
|  | 123 | INIT_PROC(instance, GetInstanceProcAddr); | 
|  | 124 | INIT_PROC(instance, GetPhysicalDeviceProperties); | 
|  | 125 | INIT_PROC(instance, GetPhysicalDeviceQueueFamilyProperties); | 
|  | 126 | INIT_PROC(instance, GetPhysicalDeviceMemoryProperties); | 
|  | 127 | INIT_PROC(instance, GetPhysicalDeviceFeatures); | 
|  | 128 | INIT_PROC(instance, GetPhysicalDeviceFormatProperties); | 
|  | 129 | INIT_PROC(instance, GetPhysicalDeviceImageFormatProperties); | 
|  | 130 | INIT_PROC(instance, CreateDevice); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 131 | INIT_PROC(instance, EnumerateDeviceExtensionProperties); | 
|  | 132 | INIT_PROC(instance, GetPhysicalDeviceSparseImageFormatProperties); | 
|  | 133 | INIT_PROC_EXT(KHR_surface, instance, DestroySurfaceKHR); | 
|  | 134 | INIT_PROC_EXT(KHR_surface, instance, GetPhysicalDeviceSurfaceSupportKHR); | 
|  | 135 | INIT_PROC_EXT(KHR_surface, instance, GetPhysicalDeviceSurfaceCapabilitiesKHR); | 
|  | 136 | INIT_PROC_EXT(KHR_surface, instance, GetPhysicalDeviceSurfaceFormatsKHR); | 
|  | 137 | INIT_PROC_EXT(KHR_surface, instance, GetPhysicalDeviceSurfacePresentModesKHR); | 
|  | 138 | INIT_PROC_EXT(KHR_android_surface, instance, CreateAndroidSurfaceKHR); | 
|  | 139 | // clang-format on | 
|  | 140 |  | 
|  | 141 | return success; | 
|  | 142 | } | 
|  | 143 |  | 
| Chia-I Wu | 8925efd | 2016-04-13 15:13:21 +0800 | [diff] [blame] | 144 | bool InitDispatchTable( | 
|  | 145 | VkDevice dev, | 
|  | 146 | PFN_vkGetDeviceProcAddr get_proc, | 
|  | 147 | const std::bitset<driver::ProcHook::EXTENSION_COUNT>& extensions) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 148 | auto& data = GetData(dev); | 
|  | 149 | bool success = true; | 
|  | 150 |  | 
|  | 151 | // clang-format off | 
|  | 152 | INIT_PROC(dev, GetDeviceProcAddr); | 
|  | 153 | INIT_PROC(dev, DestroyDevice); | 
|  | 154 | INIT_PROC(dev, GetDeviceQueue); | 
|  | 155 | INIT_PROC(dev, QueueSubmit); | 
|  | 156 | INIT_PROC(dev, QueueWaitIdle); | 
|  | 157 | INIT_PROC(dev, DeviceWaitIdle); | 
|  | 158 | INIT_PROC(dev, AllocateMemory); | 
|  | 159 | INIT_PROC(dev, FreeMemory); | 
|  | 160 | INIT_PROC(dev, MapMemory); | 
|  | 161 | INIT_PROC(dev, UnmapMemory); | 
|  | 162 | INIT_PROC(dev, FlushMappedMemoryRanges); | 
|  | 163 | INIT_PROC(dev, InvalidateMappedMemoryRanges); | 
|  | 164 | INIT_PROC(dev, GetDeviceMemoryCommitment); | 
|  | 165 | INIT_PROC(dev, GetBufferMemoryRequirements); | 
|  | 166 | INIT_PROC(dev, BindBufferMemory); | 
|  | 167 | INIT_PROC(dev, GetImageMemoryRequirements); | 
|  | 168 | INIT_PROC(dev, BindImageMemory); | 
|  | 169 | INIT_PROC(dev, GetImageSparseMemoryRequirements); | 
|  | 170 | INIT_PROC(dev, QueueBindSparse); | 
|  | 171 | INIT_PROC(dev, CreateFence); | 
|  | 172 | INIT_PROC(dev, DestroyFence); | 
|  | 173 | INIT_PROC(dev, ResetFences); | 
|  | 174 | INIT_PROC(dev, GetFenceStatus); | 
|  | 175 | INIT_PROC(dev, WaitForFences); | 
|  | 176 | INIT_PROC(dev, CreateSemaphore); | 
|  | 177 | INIT_PROC(dev, DestroySemaphore); | 
|  | 178 | INIT_PROC(dev, CreateEvent); | 
|  | 179 | INIT_PROC(dev, DestroyEvent); | 
|  | 180 | INIT_PROC(dev, GetEventStatus); | 
|  | 181 | INIT_PROC(dev, SetEvent); | 
|  | 182 | INIT_PROC(dev, ResetEvent); | 
|  | 183 | INIT_PROC(dev, CreateQueryPool); | 
|  | 184 | INIT_PROC(dev, DestroyQueryPool); | 
|  | 185 | INIT_PROC(dev, GetQueryPoolResults); | 
|  | 186 | INIT_PROC(dev, CreateBuffer); | 
|  | 187 | INIT_PROC(dev, DestroyBuffer); | 
|  | 188 | INIT_PROC(dev, CreateBufferView); | 
|  | 189 | INIT_PROC(dev, DestroyBufferView); | 
|  | 190 | INIT_PROC(dev, CreateImage); | 
|  | 191 | INIT_PROC(dev, DestroyImage); | 
|  | 192 | INIT_PROC(dev, GetImageSubresourceLayout); | 
|  | 193 | INIT_PROC(dev, CreateImageView); | 
|  | 194 | INIT_PROC(dev, DestroyImageView); | 
|  | 195 | INIT_PROC(dev, CreateShaderModule); | 
|  | 196 | INIT_PROC(dev, DestroyShaderModule); | 
|  | 197 | INIT_PROC(dev, CreatePipelineCache); | 
|  | 198 | INIT_PROC(dev, DestroyPipelineCache); | 
|  | 199 | INIT_PROC(dev, GetPipelineCacheData); | 
|  | 200 | INIT_PROC(dev, MergePipelineCaches); | 
|  | 201 | INIT_PROC(dev, CreateGraphicsPipelines); | 
|  | 202 | INIT_PROC(dev, CreateComputePipelines); | 
|  | 203 | INIT_PROC(dev, DestroyPipeline); | 
|  | 204 | INIT_PROC(dev, CreatePipelineLayout); | 
|  | 205 | INIT_PROC(dev, DestroyPipelineLayout); | 
|  | 206 | INIT_PROC(dev, CreateSampler); | 
|  | 207 | INIT_PROC(dev, DestroySampler); | 
|  | 208 | INIT_PROC(dev, CreateDescriptorSetLayout); | 
|  | 209 | INIT_PROC(dev, DestroyDescriptorSetLayout); | 
|  | 210 | INIT_PROC(dev, CreateDescriptorPool); | 
|  | 211 | INIT_PROC(dev, DestroyDescriptorPool); | 
|  | 212 | INIT_PROC(dev, ResetDescriptorPool); | 
|  | 213 | INIT_PROC(dev, AllocateDescriptorSets); | 
|  | 214 | INIT_PROC(dev, FreeDescriptorSets); | 
|  | 215 | INIT_PROC(dev, UpdateDescriptorSets); | 
|  | 216 | INIT_PROC(dev, CreateFramebuffer); | 
|  | 217 | INIT_PROC(dev, DestroyFramebuffer); | 
|  | 218 | INIT_PROC(dev, CreateRenderPass); | 
|  | 219 | INIT_PROC(dev, DestroyRenderPass); | 
|  | 220 | INIT_PROC(dev, GetRenderAreaGranularity); | 
|  | 221 | INIT_PROC(dev, CreateCommandPool); | 
|  | 222 | INIT_PROC(dev, DestroyCommandPool); | 
|  | 223 | INIT_PROC(dev, ResetCommandPool); | 
|  | 224 | INIT_PROC(dev, AllocateCommandBuffers); | 
|  | 225 | INIT_PROC(dev, FreeCommandBuffers); | 
|  | 226 | INIT_PROC(dev, BeginCommandBuffer); | 
|  | 227 | INIT_PROC(dev, EndCommandBuffer); | 
|  | 228 | INIT_PROC(dev, ResetCommandBuffer); | 
|  | 229 | INIT_PROC(dev, CmdBindPipeline); | 
|  | 230 | INIT_PROC(dev, CmdSetViewport); | 
|  | 231 | INIT_PROC(dev, CmdSetScissor); | 
|  | 232 | INIT_PROC(dev, CmdSetLineWidth); | 
|  | 233 | INIT_PROC(dev, CmdSetDepthBias); | 
|  | 234 | INIT_PROC(dev, CmdSetBlendConstants); | 
|  | 235 | INIT_PROC(dev, CmdSetDepthBounds); | 
|  | 236 | INIT_PROC(dev, CmdSetStencilCompareMask); | 
|  | 237 | INIT_PROC(dev, CmdSetStencilWriteMask); | 
|  | 238 | INIT_PROC(dev, CmdSetStencilReference); | 
|  | 239 | INIT_PROC(dev, CmdBindDescriptorSets); | 
|  | 240 | INIT_PROC(dev, CmdBindIndexBuffer); | 
|  | 241 | INIT_PROC(dev, CmdBindVertexBuffers); | 
|  | 242 | INIT_PROC(dev, CmdDraw); | 
|  | 243 | INIT_PROC(dev, CmdDrawIndexed); | 
|  | 244 | INIT_PROC(dev, CmdDrawIndirect); | 
|  | 245 | INIT_PROC(dev, CmdDrawIndexedIndirect); | 
|  | 246 | INIT_PROC(dev, CmdDispatch); | 
|  | 247 | INIT_PROC(dev, CmdDispatchIndirect); | 
|  | 248 | INIT_PROC(dev, CmdCopyBuffer); | 
|  | 249 | INIT_PROC(dev, CmdCopyImage); | 
|  | 250 | INIT_PROC(dev, CmdBlitImage); | 
|  | 251 | INIT_PROC(dev, CmdCopyBufferToImage); | 
|  | 252 | INIT_PROC(dev, CmdCopyImageToBuffer); | 
|  | 253 | INIT_PROC(dev, CmdUpdateBuffer); | 
|  | 254 | INIT_PROC(dev, CmdFillBuffer); | 
|  | 255 | INIT_PROC(dev, CmdClearColorImage); | 
|  | 256 | INIT_PROC(dev, CmdClearDepthStencilImage); | 
|  | 257 | INIT_PROC(dev, CmdClearAttachments); | 
|  | 258 | INIT_PROC(dev, CmdResolveImage); | 
|  | 259 | INIT_PROC(dev, CmdSetEvent); | 
|  | 260 | INIT_PROC(dev, CmdResetEvent); | 
|  | 261 | INIT_PROC(dev, CmdWaitEvents); | 
|  | 262 | INIT_PROC(dev, CmdPipelineBarrier); | 
|  | 263 | INIT_PROC(dev, CmdBeginQuery); | 
|  | 264 | INIT_PROC(dev, CmdEndQuery); | 
|  | 265 | INIT_PROC(dev, CmdResetQueryPool); | 
|  | 266 | INIT_PROC(dev, CmdWriteTimestamp); | 
|  | 267 | INIT_PROC(dev, CmdCopyQueryPoolResults); | 
|  | 268 | INIT_PROC(dev, CmdPushConstants); | 
|  | 269 | INIT_PROC(dev, CmdBeginRenderPass); | 
|  | 270 | INIT_PROC(dev, CmdNextSubpass); | 
|  | 271 | INIT_PROC(dev, CmdEndRenderPass); | 
|  | 272 | INIT_PROC(dev, CmdExecuteCommands); | 
|  | 273 | INIT_PROC_EXT(KHR_swapchain, dev, CreateSwapchainKHR); | 
|  | 274 | INIT_PROC_EXT(KHR_swapchain, dev, DestroySwapchainKHR); | 
|  | 275 | INIT_PROC_EXT(KHR_swapchain, dev, GetSwapchainImagesKHR); | 
|  | 276 | INIT_PROC_EXT(KHR_swapchain, dev, AcquireNextImageKHR); | 
|  | 277 | INIT_PROC_EXT(KHR_swapchain, dev, QueuePresentKHR); | 
|  | 278 | // clang-format on | 
|  | 279 |  | 
|  | 280 | return success; | 
|  | 281 | } | 
|  | 282 |  | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 283 | // clang-format off | 
|  | 284 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 285 | namespace { | 
|  | 286 |  | 
|  | 287 | // forward declarations needed by GetInstanceProcAddr and GetDeviceProcAddr | 
|  | 288 | VKAPI_ATTR VkResult EnumeratePhysicalDevices(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices); | 
|  | 289 | VKAPI_ATTR PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* pName); | 
|  | 290 | VKAPI_ATTR PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* pName); | 
|  | 291 | VKAPI_ATTR void GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties); | 
|  | 292 | VKAPI_ATTR void GetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties); | 
|  | 293 | VKAPI_ATTR void GetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties); | 
|  | 294 | VKAPI_ATTR void GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures); | 
|  | 295 | VKAPI_ATTR void GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties); | 
|  | 296 | VKAPI_ATTR VkResult GetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties); | 
|  | 297 | VKAPI_ATTR void GetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue); | 
|  | 298 | VKAPI_ATTR VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence); | 
|  | 299 | VKAPI_ATTR VkResult QueueWaitIdle(VkQueue queue); | 
|  | 300 | VKAPI_ATTR VkResult DeviceWaitIdle(VkDevice device); | 
|  | 301 | VKAPI_ATTR VkResult AllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); | 
|  | 302 | VKAPI_ATTR void FreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator); | 
|  | 303 | VKAPI_ATTR VkResult MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData); | 
|  | 304 | VKAPI_ATTR void UnmapMemory(VkDevice device, VkDeviceMemory memory); | 
|  | 305 | VKAPI_ATTR VkResult FlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); | 
|  | 306 | VKAPI_ATTR VkResult InvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges); | 
|  | 307 | VKAPI_ATTR void GetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes); | 
|  | 308 | VKAPI_ATTR void GetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements); | 
|  | 309 | VKAPI_ATTR VkResult BindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset); | 
|  | 310 | VKAPI_ATTR void GetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements); | 
|  | 311 | VKAPI_ATTR VkResult BindImageMemory(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset); | 
|  | 312 | VKAPI_ATTR void GetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements); | 
|  | 313 | VKAPI_ATTR void GetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties); | 
|  | 314 | VKAPI_ATTR VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence); | 
|  | 315 | VKAPI_ATTR VkResult CreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence); | 
|  | 316 | VKAPI_ATTR void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator); | 
|  | 317 | VKAPI_ATTR VkResult ResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences); | 
|  | 318 | VKAPI_ATTR VkResult GetFenceStatus(VkDevice device, VkFence fence); | 
|  | 319 | VKAPI_ATTR VkResult WaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout); | 
|  | 320 | VKAPI_ATTR VkResult CreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore); | 
|  | 321 | VKAPI_ATTR void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator); | 
|  | 322 | VKAPI_ATTR VkResult CreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent); | 
|  | 323 | VKAPI_ATTR void DestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator); | 
|  | 324 | VKAPI_ATTR VkResult GetEventStatus(VkDevice device, VkEvent event); | 
|  | 325 | VKAPI_ATTR VkResult SetEvent(VkDevice device, VkEvent event); | 
|  | 326 | VKAPI_ATTR VkResult ResetEvent(VkDevice device, VkEvent event); | 
|  | 327 | VKAPI_ATTR VkResult CreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool); | 
|  | 328 | VKAPI_ATTR void DestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator); | 
|  | 329 | VKAPI_ATTR VkResult GetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags); | 
|  | 330 | VKAPI_ATTR VkResult CreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer); | 
|  | 331 | VKAPI_ATTR void DestroyBuffer(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator); | 
|  | 332 | VKAPI_ATTR VkResult CreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView); | 
|  | 333 | VKAPI_ATTR void DestroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator); | 
|  | 334 | VKAPI_ATTR VkResult CreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage); | 
|  | 335 | VKAPI_ATTR void DestroyImage(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator); | 
|  | 336 | VKAPI_ATTR void GetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout); | 
|  | 337 | VKAPI_ATTR VkResult CreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView); | 
|  | 338 | VKAPI_ATTR void DestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator); | 
|  | 339 | VKAPI_ATTR VkResult CreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule); | 
|  | 340 | VKAPI_ATTR void DestroyShaderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator); | 
|  | 341 | VKAPI_ATTR VkResult CreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache); | 
|  | 342 | VKAPI_ATTR void DestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator); | 
|  | 343 | VKAPI_ATTR VkResult GetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData); | 
|  | 344 | VKAPI_ATTR VkResult MergePipelineCaches(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches); | 
|  | 345 | VKAPI_ATTR VkResult CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); | 
|  | 346 | VKAPI_ATTR VkResult CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines); | 
|  | 347 | VKAPI_ATTR void DestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator); | 
|  | 348 | VKAPI_ATTR VkResult CreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout); | 
|  | 349 | VKAPI_ATTR void DestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator); | 
|  | 350 | VKAPI_ATTR VkResult CreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler); | 
|  | 351 | VKAPI_ATTR void DestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator); | 
|  | 352 | VKAPI_ATTR VkResult CreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout); | 
|  | 353 | VKAPI_ATTR void DestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator); | 
|  | 354 | VKAPI_ATTR VkResult CreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool); | 
|  | 355 | VKAPI_ATTR void DestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator); | 
|  | 356 | VKAPI_ATTR VkResult ResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags); | 
|  | 357 | VKAPI_ATTR VkResult AllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets); | 
|  | 358 | VKAPI_ATTR VkResult FreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets); | 
|  | 359 | VKAPI_ATTR void UpdateDescriptorSets(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies); | 
|  | 360 | VKAPI_ATTR VkResult CreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer); | 
|  | 361 | VKAPI_ATTR void DestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator); | 
|  | 362 | VKAPI_ATTR VkResult CreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass); | 
|  | 363 | VKAPI_ATTR void DestroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator); | 
|  | 364 | VKAPI_ATTR void GetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity); | 
|  | 365 | VKAPI_ATTR VkResult CreateCommandPool(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool); | 
|  | 366 | VKAPI_ATTR void DestroyCommandPool(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator); | 
|  | 367 | VKAPI_ATTR VkResult ResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags); | 
|  | 368 | VKAPI_ATTR VkResult AllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers); | 
|  | 369 | VKAPI_ATTR void FreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); | 
|  | 370 | VKAPI_ATTR VkResult BeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo); | 
|  | 371 | VKAPI_ATTR VkResult EndCommandBuffer(VkCommandBuffer commandBuffer); | 
|  | 372 | VKAPI_ATTR VkResult ResetCommandBuffer(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags); | 
|  | 373 | VKAPI_ATTR void CmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline); | 
|  | 374 | VKAPI_ATTR void CmdSetViewport(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports); | 
|  | 375 | VKAPI_ATTR void CmdSetScissor(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors); | 
|  | 376 | VKAPI_ATTR void CmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth); | 
|  | 377 | VKAPI_ATTR void CmdSetDepthBias(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor); | 
|  | 378 | VKAPI_ATTR void CmdSetBlendConstants(VkCommandBuffer commandBuffer, const float blendConstants[4]); | 
|  | 379 | VKAPI_ATTR void CmdSetDepthBounds(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds); | 
|  | 380 | VKAPI_ATTR void CmdSetStencilCompareMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask); | 
|  | 381 | VKAPI_ATTR void CmdSetStencilWriteMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask); | 
|  | 382 | VKAPI_ATTR void CmdSetStencilReference(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference); | 
|  | 383 | VKAPI_ATTR void CmdBindDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets); | 
|  | 384 | VKAPI_ATTR void CmdBindIndexBuffer(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType); | 
|  | 385 | VKAPI_ATTR void CmdBindVertexBuffers(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets); | 
|  | 386 | VKAPI_ATTR void CmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance); | 
|  | 387 | VKAPI_ATTR void CmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance); | 
|  | 388 | VKAPI_ATTR void CmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); | 
|  | 389 | VKAPI_ATTR void CmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride); | 
|  | 390 | VKAPI_ATTR void CmdDispatch(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z); | 
|  | 391 | VKAPI_ATTR void CmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset); | 
|  | 392 | VKAPI_ATTR void CmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions); | 
|  | 393 | VKAPI_ATTR void CmdCopyImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions); | 
|  | 394 | VKAPI_ATTR void CmdBlitImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter); | 
|  | 395 | VKAPI_ATTR void CmdCopyBufferToImage(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions); | 
|  | 396 | VKAPI_ATTR void CmdCopyImageToBuffer(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions); | 
| Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 397 | VKAPI_ATTR void CmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData); | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 398 | VKAPI_ATTR void CmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data); | 
|  | 399 | VKAPI_ATTR void CmdClearColorImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); | 
|  | 400 | VKAPI_ATTR void CmdClearDepthStencilImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges); | 
|  | 401 | VKAPI_ATTR void CmdClearAttachments(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects); | 
|  | 402 | VKAPI_ATTR void CmdResolveImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions); | 
|  | 403 | VKAPI_ATTR void CmdSetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); | 
|  | 404 | VKAPI_ATTR void CmdResetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask); | 
|  | 405 | VKAPI_ATTR void CmdWaitEvents(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); | 
|  | 406 | VKAPI_ATTR void CmdPipelineBarrier(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers); | 
|  | 407 | VKAPI_ATTR void CmdBeginQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags); | 
|  | 408 | VKAPI_ATTR void CmdEndQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query); | 
|  | 409 | VKAPI_ATTR void CmdResetQueryPool(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount); | 
|  | 410 | VKAPI_ATTR void CmdWriteTimestamp(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query); | 
|  | 411 | VKAPI_ATTR void CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags); | 
|  | 412 | VKAPI_ATTR void CmdPushConstants(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues); | 
|  | 413 | VKAPI_ATTR void CmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents); | 
|  | 414 | VKAPI_ATTR void CmdNextSubpass(VkCommandBuffer commandBuffer, VkSubpassContents contents); | 
|  | 415 | VKAPI_ATTR void CmdEndRenderPass(VkCommandBuffer commandBuffer); | 
|  | 416 | VKAPI_ATTR void CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers); | 
|  | 417 | VKAPI_ATTR void DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator); | 
|  | 418 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported); | 
|  | 419 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities); | 
|  | 420 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats); | 
|  | 421 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes); | 
|  | 422 | VKAPI_ATTR VkResult CreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain); | 
|  | 423 | VKAPI_ATTR void DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator); | 
|  | 424 | VKAPI_ATTR VkResult GetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages); | 
|  | 425 | VKAPI_ATTR VkResult AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex); | 
|  | 426 | VKAPI_ATTR VkResult QueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* pPresentInfo); | 
|  | 427 | VKAPI_ATTR VkResult CreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface); | 
|  | 428 |  | 
|  | 429 | VKAPI_ATTR VkResult EnumeratePhysicalDevices(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices) { | 
|  | 430 | return GetData(instance).dispatch.EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 431 | } | 
|  | 432 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 433 | VKAPI_ATTR PFN_vkVoidFunction GetDeviceProcAddr(VkDevice device, const char* pName) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 434 | if (device == VK_NULL_HANDLE) { | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 435 | ALOGE("invalid vkGetDeviceProcAddr(VK_NULL_HANDLE, ...) call"); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 436 | return nullptr; | 
|  | 437 | } | 
|  | 438 |  | 
|  | 439 | static const char* const known_non_device_names[] = { | 
|  | 440 | "vkCreateAndroidSurfaceKHR", | 
|  | 441 | "vkCreateDebugReportCallbackEXT", | 
|  | 442 | "vkCreateDevice", | 
|  | 443 | "vkCreateInstance", | 
|  | 444 | "vkDebugReportMessageEXT", | 
|  | 445 | "vkDestroyDebugReportCallbackEXT", | 
|  | 446 | "vkDestroyInstance", | 
|  | 447 | "vkDestroySurfaceKHR", | 
|  | 448 | "vkEnumerateDeviceExtensionProperties", | 
|  | 449 | "vkEnumerateDeviceLayerProperties", | 
|  | 450 | "vkEnumerateInstanceExtensionProperties", | 
|  | 451 | "vkEnumerateInstanceLayerProperties", | 
|  | 452 | "vkEnumeratePhysicalDevices", | 
|  | 453 | "vkGetInstanceProcAddr", | 
|  | 454 | "vkGetPhysicalDeviceFeatures", | 
|  | 455 | "vkGetPhysicalDeviceFormatProperties", | 
|  | 456 | "vkGetPhysicalDeviceImageFormatProperties", | 
|  | 457 | "vkGetPhysicalDeviceMemoryProperties", | 
|  | 458 | "vkGetPhysicalDeviceProperties", | 
|  | 459 | "vkGetPhysicalDeviceQueueFamilyProperties", | 
|  | 460 | "vkGetPhysicalDeviceSparseImageFormatProperties", | 
|  | 461 | "vkGetPhysicalDeviceSurfaceCapabilitiesKHR", | 
|  | 462 | "vkGetPhysicalDeviceSurfaceFormatsKHR", | 
|  | 463 | "vkGetPhysicalDeviceSurfacePresentModesKHR", | 
|  | 464 | "vkGetPhysicalDeviceSurfaceSupportKHR", | 
|  | 465 | }; | 
|  | 466 | // clang-format on | 
|  | 467 | constexpr size_t count = | 
|  | 468 | sizeof(known_non_device_names) / sizeof(known_non_device_names[0]); | 
|  | 469 | if (!pName || | 
|  | 470 | std::binary_search( | 
|  | 471 | known_non_device_names, known_non_device_names + count, pName, | 
|  | 472 | [](const char* a, const char* b) { return (strcmp(a, b) < 0); })) { | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 473 | vulkan::driver::Logger(device).Err( | 
|  | 474 | device, "invalid vkGetDeviceProcAddr(%p, \"%s\") call", device, | 
|  | 475 | (pName) ? pName : "(null)"); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 476 | return nullptr; | 
|  | 477 | } | 
|  | 478 | // clang-format off | 
|  | 479 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 480 | if (strcmp(pName, "vkGetDeviceProcAddr") == 0) return reinterpret_cast<PFN_vkVoidFunction>(GetDeviceProcAddr); | 
|  | 481 | if (strcmp(pName, "vkDestroyDevice") == 0) return reinterpret_cast<PFN_vkVoidFunction>(DestroyDevice); | 
| Chia-I Wu | c56603e | 2016-04-12 11:16:17 +0800 | [diff] [blame] | 482 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 483 | return GetData(device).dispatch.GetDeviceProcAddr(device, pName); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 484 | } | 
|  | 485 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 486 | VKAPI_ATTR PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* pName) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 487 | // global functions | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 488 | if (instance == VK_NULL_HANDLE) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 489 | if (strcmp(pName, "vkCreateInstance") == 0) return reinterpret_cast<PFN_vkVoidFunction>(CreateInstance); | 
|  | 490 | if (strcmp(pName, "vkEnumerateInstanceLayerProperties") == 0) return reinterpret_cast<PFN_vkVoidFunction>(EnumerateInstanceLayerProperties); | 
|  | 491 | if (strcmp(pName, "vkEnumerateInstanceExtensionProperties") == 0) return reinterpret_cast<PFN_vkVoidFunction>(EnumerateInstanceExtensionProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 492 |  | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 493 | ALOGE("invalid vkGetInstanceProcAddr(VK_NULL_HANDLE, \"%s\") call", pName); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 494 | return nullptr; | 
|  | 495 | } | 
|  | 496 |  | 
|  | 497 | static const struct Hook { | 
|  | 498 | const char* name; | 
|  | 499 | PFN_vkVoidFunction proc; | 
|  | 500 | } hooks[] = { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 501 | { "vkAcquireNextImageKHR", reinterpret_cast<PFN_vkVoidFunction>(AcquireNextImageKHR) }, | 
|  | 502 | { "vkAllocateCommandBuffers", reinterpret_cast<PFN_vkVoidFunction>(AllocateCommandBuffers) }, | 
|  | 503 | { "vkAllocateDescriptorSets", reinterpret_cast<PFN_vkVoidFunction>(AllocateDescriptorSets) }, | 
|  | 504 | { "vkAllocateMemory", reinterpret_cast<PFN_vkVoidFunction>(AllocateMemory) }, | 
|  | 505 | { "vkBeginCommandBuffer", reinterpret_cast<PFN_vkVoidFunction>(BeginCommandBuffer) }, | 
|  | 506 | { "vkBindBufferMemory", reinterpret_cast<PFN_vkVoidFunction>(BindBufferMemory) }, | 
|  | 507 | { "vkBindImageMemory", reinterpret_cast<PFN_vkVoidFunction>(BindImageMemory) }, | 
|  | 508 | { "vkCmdBeginQuery", reinterpret_cast<PFN_vkVoidFunction>(CmdBeginQuery) }, | 
|  | 509 | { "vkCmdBeginRenderPass", reinterpret_cast<PFN_vkVoidFunction>(CmdBeginRenderPass) }, | 
|  | 510 | { "vkCmdBindDescriptorSets", reinterpret_cast<PFN_vkVoidFunction>(CmdBindDescriptorSets) }, | 
|  | 511 | { "vkCmdBindIndexBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdBindIndexBuffer) }, | 
|  | 512 | { "vkCmdBindPipeline", reinterpret_cast<PFN_vkVoidFunction>(CmdBindPipeline) }, | 
|  | 513 | { "vkCmdBindVertexBuffers", reinterpret_cast<PFN_vkVoidFunction>(CmdBindVertexBuffers) }, | 
|  | 514 | { "vkCmdBlitImage", reinterpret_cast<PFN_vkVoidFunction>(CmdBlitImage) }, | 
|  | 515 | { "vkCmdClearAttachments", reinterpret_cast<PFN_vkVoidFunction>(CmdClearAttachments) }, | 
|  | 516 | { "vkCmdClearColorImage", reinterpret_cast<PFN_vkVoidFunction>(CmdClearColorImage) }, | 
|  | 517 | { "vkCmdClearDepthStencilImage", reinterpret_cast<PFN_vkVoidFunction>(CmdClearDepthStencilImage) }, | 
|  | 518 | { "vkCmdCopyBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyBuffer) }, | 
|  | 519 | { "vkCmdCopyBufferToImage", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyBufferToImage) }, | 
|  | 520 | { "vkCmdCopyImage", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyImage) }, | 
|  | 521 | { "vkCmdCopyImageToBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyImageToBuffer) }, | 
|  | 522 | { "vkCmdCopyQueryPoolResults", reinterpret_cast<PFN_vkVoidFunction>(CmdCopyQueryPoolResults) }, | 
|  | 523 | { "vkCmdDispatch", reinterpret_cast<PFN_vkVoidFunction>(CmdDispatch) }, | 
|  | 524 | { "vkCmdDispatchIndirect", reinterpret_cast<PFN_vkVoidFunction>(CmdDispatchIndirect) }, | 
|  | 525 | { "vkCmdDraw", reinterpret_cast<PFN_vkVoidFunction>(CmdDraw) }, | 
|  | 526 | { "vkCmdDrawIndexed", reinterpret_cast<PFN_vkVoidFunction>(CmdDrawIndexed) }, | 
|  | 527 | { "vkCmdDrawIndexedIndirect", reinterpret_cast<PFN_vkVoidFunction>(CmdDrawIndexedIndirect) }, | 
|  | 528 | { "vkCmdDrawIndirect", reinterpret_cast<PFN_vkVoidFunction>(CmdDrawIndirect) }, | 
|  | 529 | { "vkCmdEndQuery", reinterpret_cast<PFN_vkVoidFunction>(CmdEndQuery) }, | 
|  | 530 | { "vkCmdEndRenderPass", reinterpret_cast<PFN_vkVoidFunction>(CmdEndRenderPass) }, | 
|  | 531 | { "vkCmdExecuteCommands", reinterpret_cast<PFN_vkVoidFunction>(CmdExecuteCommands) }, | 
|  | 532 | { "vkCmdFillBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdFillBuffer) }, | 
|  | 533 | { "vkCmdNextSubpass", reinterpret_cast<PFN_vkVoidFunction>(CmdNextSubpass) }, | 
|  | 534 | { "vkCmdPipelineBarrier", reinterpret_cast<PFN_vkVoidFunction>(CmdPipelineBarrier) }, | 
|  | 535 | { "vkCmdPushConstants", reinterpret_cast<PFN_vkVoidFunction>(CmdPushConstants) }, | 
|  | 536 | { "vkCmdResetEvent", reinterpret_cast<PFN_vkVoidFunction>(CmdResetEvent) }, | 
|  | 537 | { "vkCmdResetQueryPool", reinterpret_cast<PFN_vkVoidFunction>(CmdResetQueryPool) }, | 
|  | 538 | { "vkCmdResolveImage", reinterpret_cast<PFN_vkVoidFunction>(CmdResolveImage) }, | 
|  | 539 | { "vkCmdSetBlendConstants", reinterpret_cast<PFN_vkVoidFunction>(CmdSetBlendConstants) }, | 
|  | 540 | { "vkCmdSetDepthBias", reinterpret_cast<PFN_vkVoidFunction>(CmdSetDepthBias) }, | 
|  | 541 | { "vkCmdSetDepthBounds", reinterpret_cast<PFN_vkVoidFunction>(CmdSetDepthBounds) }, | 
|  | 542 | { "vkCmdSetEvent", reinterpret_cast<PFN_vkVoidFunction>(CmdSetEvent) }, | 
|  | 543 | { "vkCmdSetLineWidth", reinterpret_cast<PFN_vkVoidFunction>(CmdSetLineWidth) }, | 
|  | 544 | { "vkCmdSetScissor", reinterpret_cast<PFN_vkVoidFunction>(CmdSetScissor) }, | 
|  | 545 | { "vkCmdSetStencilCompareMask", reinterpret_cast<PFN_vkVoidFunction>(CmdSetStencilCompareMask) }, | 
|  | 546 | { "vkCmdSetStencilReference", reinterpret_cast<PFN_vkVoidFunction>(CmdSetStencilReference) }, | 
|  | 547 | { "vkCmdSetStencilWriteMask", reinterpret_cast<PFN_vkVoidFunction>(CmdSetStencilWriteMask) }, | 
|  | 548 | { "vkCmdSetViewport", reinterpret_cast<PFN_vkVoidFunction>(CmdSetViewport) }, | 
|  | 549 | { "vkCmdUpdateBuffer", reinterpret_cast<PFN_vkVoidFunction>(CmdUpdateBuffer) }, | 
|  | 550 | { "vkCmdWaitEvents", reinterpret_cast<PFN_vkVoidFunction>(CmdWaitEvents) }, | 
|  | 551 | { "vkCmdWriteTimestamp", reinterpret_cast<PFN_vkVoidFunction>(CmdWriteTimestamp) }, | 
|  | 552 | { "vkCreateBuffer", reinterpret_cast<PFN_vkVoidFunction>(CreateBuffer) }, | 
|  | 553 | { "vkCreateBufferView", reinterpret_cast<PFN_vkVoidFunction>(CreateBufferView) }, | 
|  | 554 | { "vkCreateCommandPool", reinterpret_cast<PFN_vkVoidFunction>(CreateCommandPool) }, | 
|  | 555 | { "vkCreateComputePipelines", reinterpret_cast<PFN_vkVoidFunction>(CreateComputePipelines) }, | 
|  | 556 | { "vkCreateDescriptorPool", reinterpret_cast<PFN_vkVoidFunction>(CreateDescriptorPool) }, | 
|  | 557 | { "vkCreateDescriptorSetLayout", reinterpret_cast<PFN_vkVoidFunction>(CreateDescriptorSetLayout) }, | 
|  | 558 | { "vkCreateDevice", reinterpret_cast<PFN_vkVoidFunction>(CreateDevice) }, | 
|  | 559 | { "vkCreateEvent", reinterpret_cast<PFN_vkVoidFunction>(CreateEvent) }, | 
|  | 560 | { "vkCreateFence", reinterpret_cast<PFN_vkVoidFunction>(CreateFence) }, | 
|  | 561 | { "vkCreateFramebuffer", reinterpret_cast<PFN_vkVoidFunction>(CreateFramebuffer) }, | 
|  | 562 | { "vkCreateGraphicsPipelines", reinterpret_cast<PFN_vkVoidFunction>(CreateGraphicsPipelines) }, | 
|  | 563 | { "vkCreateImage", reinterpret_cast<PFN_vkVoidFunction>(CreateImage) }, | 
|  | 564 | { "vkCreateImageView", reinterpret_cast<PFN_vkVoidFunction>(CreateImageView) }, | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 565 | { "vkCreateInstance", nullptr }, | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 566 | { "vkCreatePipelineCache", reinterpret_cast<PFN_vkVoidFunction>(CreatePipelineCache) }, | 
|  | 567 | { "vkCreatePipelineLayout", reinterpret_cast<PFN_vkVoidFunction>(CreatePipelineLayout) }, | 
|  | 568 | { "vkCreateQueryPool", reinterpret_cast<PFN_vkVoidFunction>(CreateQueryPool) }, | 
|  | 569 | { "vkCreateRenderPass", reinterpret_cast<PFN_vkVoidFunction>(CreateRenderPass) }, | 
|  | 570 | { "vkCreateSampler", reinterpret_cast<PFN_vkVoidFunction>(CreateSampler) }, | 
|  | 571 | { "vkCreateSemaphore", reinterpret_cast<PFN_vkVoidFunction>(CreateSemaphore) }, | 
|  | 572 | { "vkCreateShaderModule", reinterpret_cast<PFN_vkVoidFunction>(CreateShaderModule) }, | 
|  | 573 | { "vkCreateSwapchainKHR", reinterpret_cast<PFN_vkVoidFunction>(CreateSwapchainKHR) }, | 
|  | 574 | { "vkDestroyBuffer", reinterpret_cast<PFN_vkVoidFunction>(DestroyBuffer) }, | 
|  | 575 | { "vkDestroyBufferView", reinterpret_cast<PFN_vkVoidFunction>(DestroyBufferView) }, | 
|  | 576 | { "vkDestroyCommandPool", reinterpret_cast<PFN_vkVoidFunction>(DestroyCommandPool) }, | 
|  | 577 | { "vkDestroyDescriptorPool", reinterpret_cast<PFN_vkVoidFunction>(DestroyDescriptorPool) }, | 
|  | 578 | { "vkDestroyDescriptorSetLayout", reinterpret_cast<PFN_vkVoidFunction>(DestroyDescriptorSetLayout) }, | 
|  | 579 | { "vkDestroyDevice", reinterpret_cast<PFN_vkVoidFunction>(DestroyDevice) }, | 
|  | 580 | { "vkDestroyEvent", reinterpret_cast<PFN_vkVoidFunction>(DestroyEvent) }, | 
|  | 581 | { "vkDestroyFence", reinterpret_cast<PFN_vkVoidFunction>(DestroyFence) }, | 
|  | 582 | { "vkDestroyFramebuffer", reinterpret_cast<PFN_vkVoidFunction>(DestroyFramebuffer) }, | 
|  | 583 | { "vkDestroyImage", reinterpret_cast<PFN_vkVoidFunction>(DestroyImage) }, | 
|  | 584 | { "vkDestroyImageView", reinterpret_cast<PFN_vkVoidFunction>(DestroyImageView) }, | 
|  | 585 | { "vkDestroyInstance", reinterpret_cast<PFN_vkVoidFunction>(DestroyInstance) }, | 
|  | 586 | { "vkDestroyPipeline", reinterpret_cast<PFN_vkVoidFunction>(DestroyPipeline) }, | 
|  | 587 | { "vkDestroyPipelineCache", reinterpret_cast<PFN_vkVoidFunction>(DestroyPipelineCache) }, | 
|  | 588 | { "vkDestroyPipelineLayout", reinterpret_cast<PFN_vkVoidFunction>(DestroyPipelineLayout) }, | 
|  | 589 | { "vkDestroyQueryPool", reinterpret_cast<PFN_vkVoidFunction>(DestroyQueryPool) }, | 
|  | 590 | { "vkDestroyRenderPass", reinterpret_cast<PFN_vkVoidFunction>(DestroyRenderPass) }, | 
|  | 591 | { "vkDestroySampler", reinterpret_cast<PFN_vkVoidFunction>(DestroySampler) }, | 
|  | 592 | { "vkDestroySemaphore", reinterpret_cast<PFN_vkVoidFunction>(DestroySemaphore) }, | 
|  | 593 | { "vkDestroyShaderModule", reinterpret_cast<PFN_vkVoidFunction>(DestroyShaderModule) }, | 
|  | 594 | { "vkDestroySwapchainKHR", reinterpret_cast<PFN_vkVoidFunction>(DestroySwapchainKHR) }, | 
|  | 595 | { "vkDeviceWaitIdle", reinterpret_cast<PFN_vkVoidFunction>(DeviceWaitIdle) }, | 
|  | 596 | { "vkEndCommandBuffer", reinterpret_cast<PFN_vkVoidFunction>(EndCommandBuffer) }, | 
|  | 597 | { "vkEnumerateDeviceExtensionProperties", reinterpret_cast<PFN_vkVoidFunction>(EnumerateDeviceExtensionProperties) }, | 
|  | 598 | { "vkEnumerateDeviceLayerProperties", reinterpret_cast<PFN_vkVoidFunction>(EnumerateDeviceLayerProperties) }, | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 599 | { "vkEnumerateInstanceExtensionProperties", nullptr }, | 
|  | 600 | { "vkEnumerateInstanceLayerProperties", nullptr }, | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 601 | { "vkFlushMappedMemoryRanges", reinterpret_cast<PFN_vkVoidFunction>(FlushMappedMemoryRanges) }, | 
|  | 602 | { "vkFreeCommandBuffers", reinterpret_cast<PFN_vkVoidFunction>(FreeCommandBuffers) }, | 
|  | 603 | { "vkFreeDescriptorSets", reinterpret_cast<PFN_vkVoidFunction>(FreeDescriptorSets) }, | 
|  | 604 | { "vkFreeMemory", reinterpret_cast<PFN_vkVoidFunction>(FreeMemory) }, | 
|  | 605 | { "vkGetBufferMemoryRequirements", reinterpret_cast<PFN_vkVoidFunction>(GetBufferMemoryRequirements) }, | 
|  | 606 | { "vkGetDeviceMemoryCommitment", reinterpret_cast<PFN_vkVoidFunction>(GetDeviceMemoryCommitment) }, | 
|  | 607 | { "vkGetDeviceProcAddr", reinterpret_cast<PFN_vkVoidFunction>(GetDeviceProcAddr) }, | 
|  | 608 | { "vkGetDeviceQueue", reinterpret_cast<PFN_vkVoidFunction>(GetDeviceQueue) }, | 
|  | 609 | { "vkGetEventStatus", reinterpret_cast<PFN_vkVoidFunction>(GetEventStatus) }, | 
|  | 610 | { "vkGetFenceStatus", reinterpret_cast<PFN_vkVoidFunction>(GetFenceStatus) }, | 
|  | 611 | { "vkGetImageMemoryRequirements", reinterpret_cast<PFN_vkVoidFunction>(GetImageMemoryRequirements) }, | 
|  | 612 | { "vkGetImageSparseMemoryRequirements", reinterpret_cast<PFN_vkVoidFunction>(GetImageSparseMemoryRequirements) }, | 
|  | 613 | { "vkGetImageSubresourceLayout", reinterpret_cast<PFN_vkVoidFunction>(GetImageSubresourceLayout) }, | 
|  | 614 | { "vkGetInstanceProcAddr", reinterpret_cast<PFN_vkVoidFunction>(GetInstanceProcAddr) }, | 
|  | 615 | { "vkGetPipelineCacheData", reinterpret_cast<PFN_vkVoidFunction>(GetPipelineCacheData) }, | 
|  | 616 | { "vkGetQueryPoolResults", reinterpret_cast<PFN_vkVoidFunction>(GetQueryPoolResults) }, | 
|  | 617 | { "vkGetRenderAreaGranularity", reinterpret_cast<PFN_vkVoidFunction>(GetRenderAreaGranularity) }, | 
|  | 618 | { "vkGetSwapchainImagesKHR", reinterpret_cast<PFN_vkVoidFunction>(GetSwapchainImagesKHR) }, | 
|  | 619 | { "vkInvalidateMappedMemoryRanges", reinterpret_cast<PFN_vkVoidFunction>(InvalidateMappedMemoryRanges) }, | 
|  | 620 | { "vkMapMemory", reinterpret_cast<PFN_vkVoidFunction>(MapMemory) }, | 
|  | 621 | { "vkMergePipelineCaches", reinterpret_cast<PFN_vkVoidFunction>(MergePipelineCaches) }, | 
|  | 622 | { "vkQueueBindSparse", reinterpret_cast<PFN_vkVoidFunction>(QueueBindSparse) }, | 
|  | 623 | { "vkQueuePresentKHR", reinterpret_cast<PFN_vkVoidFunction>(QueuePresentKHR) }, | 
|  | 624 | { "vkQueueSubmit", reinterpret_cast<PFN_vkVoidFunction>(QueueSubmit) }, | 
|  | 625 | { "vkQueueWaitIdle", reinterpret_cast<PFN_vkVoidFunction>(QueueWaitIdle) }, | 
|  | 626 | { "vkResetCommandBuffer", reinterpret_cast<PFN_vkVoidFunction>(ResetCommandBuffer) }, | 
|  | 627 | { "vkResetCommandPool", reinterpret_cast<PFN_vkVoidFunction>(ResetCommandPool) }, | 
|  | 628 | { "vkResetDescriptorPool", reinterpret_cast<PFN_vkVoidFunction>(ResetDescriptorPool) }, | 
|  | 629 | { "vkResetEvent", reinterpret_cast<PFN_vkVoidFunction>(ResetEvent) }, | 
|  | 630 | { "vkResetFences", reinterpret_cast<PFN_vkVoidFunction>(ResetFences) }, | 
|  | 631 | { "vkSetEvent", reinterpret_cast<PFN_vkVoidFunction>(SetEvent) }, | 
|  | 632 | { "vkUnmapMemory", reinterpret_cast<PFN_vkVoidFunction>(UnmapMemory) }, | 
|  | 633 | { "vkUpdateDescriptorSets", reinterpret_cast<PFN_vkVoidFunction>(UpdateDescriptorSets) }, | 
|  | 634 | { "vkWaitForFences", reinterpret_cast<PFN_vkVoidFunction>(WaitForFences) }, | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 635 | }; | 
|  | 636 | // clang-format on | 
|  | 637 | constexpr size_t count = sizeof(hooks) / sizeof(hooks[0]); | 
|  | 638 | auto hook = std::lower_bound( | 
|  | 639 | hooks, hooks + count, pName, | 
|  | 640 | [](const Hook& h, const char* n) { return strcmp(h.name, n) < 0; }); | 
|  | 641 | if (hook < hooks + count && strcmp(hook->name, pName) == 0) { | 
| Chia-I Wu | 5beb2ac | 2016-05-04 16:37:23 +0800 | [diff] [blame] | 642 | if (!hook->proc) { | 
|  | 643 | vulkan::driver::Logger(instance).Err( | 
|  | 644 | instance, "invalid vkGetInstanceProcAddr(%p, \"%s\") call", | 
|  | 645 | instance, pName); | 
|  | 646 | } | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 647 | return hook->proc; | 
|  | 648 | } | 
|  | 649 | // clang-format off | 
|  | 650 |  | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 651 | return GetData(instance).dispatch.GetInstanceProcAddr(instance, pName); | 
|  | 652 | } | 
|  | 653 |  | 
|  | 654 | VKAPI_ATTR void GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties) { | 
|  | 655 | GetData(physicalDevice).dispatch.GetPhysicalDeviceProperties(physicalDevice, pProperties); | 
|  | 656 | } | 
|  | 657 |  | 
|  | 658 | VKAPI_ATTR void GetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties) { | 
|  | 659 | GetData(physicalDevice).dispatch.GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); | 
|  | 660 | } | 
|  | 661 |  | 
|  | 662 | VKAPI_ATTR void GetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties) { | 
|  | 663 | GetData(physicalDevice).dispatch.GetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties); | 
|  | 664 | } | 
|  | 665 |  | 
|  | 666 | VKAPI_ATTR void GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures) { | 
|  | 667 | GetData(physicalDevice).dispatch.GetPhysicalDeviceFeatures(physicalDevice, pFeatures); | 
|  | 668 | } | 
|  | 669 |  | 
|  | 670 | VKAPI_ATTR void GetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties) { | 
|  | 671 | GetData(physicalDevice).dispatch.GetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatProperties); | 
|  | 672 | } | 
|  | 673 |  | 
|  | 674 | VKAPI_ATTR VkResult GetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties) { | 
|  | 675 | return GetData(physicalDevice).dispatch.GetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties); | 
|  | 676 | } | 
|  | 677 |  | 
|  | 678 | VKAPI_ATTR void GetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue) { | 
|  | 679 | GetData(device).dispatch.GetDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue); | 
|  | 680 | } | 
|  | 681 |  | 
|  | 682 | VKAPI_ATTR VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence) { | 
|  | 683 | return GetData(queue).dispatch.QueueSubmit(queue, submitCount, pSubmits, fence); | 
|  | 684 | } | 
|  | 685 |  | 
|  | 686 | VKAPI_ATTR VkResult QueueWaitIdle(VkQueue queue) { | 
|  | 687 | return GetData(queue).dispatch.QueueWaitIdle(queue); | 
|  | 688 | } | 
|  | 689 |  | 
|  | 690 | VKAPI_ATTR VkResult DeviceWaitIdle(VkDevice device) { | 
|  | 691 | return GetData(device).dispatch.DeviceWaitIdle(device); | 
|  | 692 | } | 
|  | 693 |  | 
|  | 694 | VKAPI_ATTR VkResult AllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) { | 
|  | 695 | return GetData(device).dispatch.AllocateMemory(device, pAllocateInfo, pAllocator, pMemory); | 
|  | 696 | } | 
|  | 697 |  | 
|  | 698 | VKAPI_ATTR void FreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator) { | 
|  | 699 | GetData(device).dispatch.FreeMemory(device, memory, pAllocator); | 
|  | 700 | } | 
|  | 701 |  | 
|  | 702 | VKAPI_ATTR VkResult MapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData) { | 
|  | 703 | return GetData(device).dispatch.MapMemory(device, memory, offset, size, flags, ppData); | 
|  | 704 | } | 
|  | 705 |  | 
|  | 706 | VKAPI_ATTR void UnmapMemory(VkDevice device, VkDeviceMemory memory) { | 
|  | 707 | GetData(device).dispatch.UnmapMemory(device, memory); | 
|  | 708 | } | 
|  | 709 |  | 
|  | 710 | VKAPI_ATTR VkResult FlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges) { | 
|  | 711 | return GetData(device).dispatch.FlushMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); | 
|  | 712 | } | 
|  | 713 |  | 
|  | 714 | VKAPI_ATTR VkResult InvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges) { | 
|  | 715 | return GetData(device).dispatch.InvalidateMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); | 
|  | 716 | } | 
|  | 717 |  | 
|  | 718 | VKAPI_ATTR void GetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes) { | 
|  | 719 | GetData(device).dispatch.GetDeviceMemoryCommitment(device, memory, pCommittedMemoryInBytes); | 
|  | 720 | } | 
|  | 721 |  | 
|  | 722 | VKAPI_ATTR void GetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements) { | 
|  | 723 | GetData(device).dispatch.GetBufferMemoryRequirements(device, buffer, pMemoryRequirements); | 
|  | 724 | } | 
|  | 725 |  | 
|  | 726 | VKAPI_ATTR VkResult BindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset) { | 
|  | 727 | return GetData(device).dispatch.BindBufferMemory(device, buffer, memory, memoryOffset); | 
|  | 728 | } | 
|  | 729 |  | 
|  | 730 | VKAPI_ATTR void GetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements) { | 
|  | 731 | GetData(device).dispatch.GetImageMemoryRequirements(device, image, pMemoryRequirements); | 
|  | 732 | } | 
|  | 733 |  | 
|  | 734 | VKAPI_ATTR VkResult BindImageMemory(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset) { | 
|  | 735 | return GetData(device).dispatch.BindImageMemory(device, image, memory, memoryOffset); | 
|  | 736 | } | 
|  | 737 |  | 
|  | 738 | VKAPI_ATTR void GetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements) { | 
|  | 739 | GetData(device).dispatch.GetImageSparseMemoryRequirements(device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements); | 
|  | 740 | } | 
|  | 741 |  | 
|  | 742 | VKAPI_ATTR void GetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties) { | 
|  | 743 | GetData(physicalDevice).dispatch.GetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties); | 
|  | 744 | } | 
|  | 745 |  | 
|  | 746 | VKAPI_ATTR VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) { | 
|  | 747 | return GetData(queue).dispatch.QueueBindSparse(queue, bindInfoCount, pBindInfo, fence); | 
|  | 748 | } | 
|  | 749 |  | 
|  | 750 | VKAPI_ATTR VkResult CreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence) { | 
|  | 751 | return GetData(device).dispatch.CreateFence(device, pCreateInfo, pAllocator, pFence); | 
|  | 752 | } | 
|  | 753 |  | 
|  | 754 | VKAPI_ATTR void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator) { | 
|  | 755 | GetData(device).dispatch.DestroyFence(device, fence, pAllocator); | 
|  | 756 | } | 
|  | 757 |  | 
|  | 758 | VKAPI_ATTR VkResult ResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences) { | 
|  | 759 | return GetData(device).dispatch.ResetFences(device, fenceCount, pFences); | 
|  | 760 | } | 
|  | 761 |  | 
|  | 762 | VKAPI_ATTR VkResult GetFenceStatus(VkDevice device, VkFence fence) { | 
|  | 763 | return GetData(device).dispatch.GetFenceStatus(device, fence); | 
|  | 764 | } | 
|  | 765 |  | 
|  | 766 | VKAPI_ATTR VkResult WaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout) { | 
|  | 767 | return GetData(device).dispatch.WaitForFences(device, fenceCount, pFences, waitAll, timeout); | 
|  | 768 | } | 
|  | 769 |  | 
|  | 770 | VKAPI_ATTR VkResult CreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore) { | 
|  | 771 | return GetData(device).dispatch.CreateSemaphore(device, pCreateInfo, pAllocator, pSemaphore); | 
|  | 772 | } | 
|  | 773 |  | 
|  | 774 | VKAPI_ATTR void DestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator) { | 
|  | 775 | GetData(device).dispatch.DestroySemaphore(device, semaphore, pAllocator); | 
|  | 776 | } | 
|  | 777 |  | 
|  | 778 | VKAPI_ATTR VkResult CreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent) { | 
|  | 779 | return GetData(device).dispatch.CreateEvent(device, pCreateInfo, pAllocator, pEvent); | 
|  | 780 | } | 
|  | 781 |  | 
|  | 782 | VKAPI_ATTR void DestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator) { | 
|  | 783 | GetData(device).dispatch.DestroyEvent(device, event, pAllocator); | 
|  | 784 | } | 
|  | 785 |  | 
|  | 786 | VKAPI_ATTR VkResult GetEventStatus(VkDevice device, VkEvent event) { | 
|  | 787 | return GetData(device).dispatch.GetEventStatus(device, event); | 
|  | 788 | } | 
|  | 789 |  | 
|  | 790 | VKAPI_ATTR VkResult SetEvent(VkDevice device, VkEvent event) { | 
|  | 791 | return GetData(device).dispatch.SetEvent(device, event); | 
|  | 792 | } | 
|  | 793 |  | 
|  | 794 | VKAPI_ATTR VkResult ResetEvent(VkDevice device, VkEvent event) { | 
|  | 795 | return GetData(device).dispatch.ResetEvent(device, event); | 
|  | 796 | } | 
|  | 797 |  | 
|  | 798 | VKAPI_ATTR VkResult CreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool) { | 
|  | 799 | return GetData(device).dispatch.CreateQueryPool(device, pCreateInfo, pAllocator, pQueryPool); | 
|  | 800 | } | 
|  | 801 |  | 
|  | 802 | VKAPI_ATTR void DestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator) { | 
|  | 803 | GetData(device).dispatch.DestroyQueryPool(device, queryPool, pAllocator); | 
|  | 804 | } | 
|  | 805 |  | 
|  | 806 | VKAPI_ATTR VkResult GetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags) { | 
|  | 807 | return GetData(device).dispatch.GetQueryPoolResults(device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags); | 
|  | 808 | } | 
|  | 809 |  | 
|  | 810 | VKAPI_ATTR VkResult CreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer) { | 
|  | 811 | return GetData(device).dispatch.CreateBuffer(device, pCreateInfo, pAllocator, pBuffer); | 
|  | 812 | } | 
|  | 813 |  | 
|  | 814 | VKAPI_ATTR void DestroyBuffer(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator) { | 
|  | 815 | GetData(device).dispatch.DestroyBuffer(device, buffer, pAllocator); | 
|  | 816 | } | 
|  | 817 |  | 
|  | 818 | VKAPI_ATTR VkResult CreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView) { | 
|  | 819 | return GetData(device).dispatch.CreateBufferView(device, pCreateInfo, pAllocator, pView); | 
|  | 820 | } | 
|  | 821 |  | 
|  | 822 | VKAPI_ATTR void DestroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator) { | 
|  | 823 | GetData(device).dispatch.DestroyBufferView(device, bufferView, pAllocator); | 
|  | 824 | } | 
|  | 825 |  | 
|  | 826 | VKAPI_ATTR VkResult CreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage) { | 
|  | 827 | return GetData(device).dispatch.CreateImage(device, pCreateInfo, pAllocator, pImage); | 
|  | 828 | } | 
|  | 829 |  | 
|  | 830 | VKAPI_ATTR void DestroyImage(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator) { | 
|  | 831 | GetData(device).dispatch.DestroyImage(device, image, pAllocator); | 
|  | 832 | } | 
|  | 833 |  | 
|  | 834 | VKAPI_ATTR void GetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout) { | 
|  | 835 | GetData(device).dispatch.GetImageSubresourceLayout(device, image, pSubresource, pLayout); | 
|  | 836 | } | 
|  | 837 |  | 
|  | 838 | VKAPI_ATTR VkResult CreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView) { | 
|  | 839 | return GetData(device).dispatch.CreateImageView(device, pCreateInfo, pAllocator, pView); | 
|  | 840 | } | 
|  | 841 |  | 
|  | 842 | VKAPI_ATTR void DestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator) { | 
|  | 843 | GetData(device).dispatch.DestroyImageView(device, imageView, pAllocator); | 
|  | 844 | } | 
|  | 845 |  | 
|  | 846 | VKAPI_ATTR VkResult CreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule) { | 
|  | 847 | return GetData(device).dispatch.CreateShaderModule(device, pCreateInfo, pAllocator, pShaderModule); | 
|  | 848 | } | 
|  | 849 |  | 
|  | 850 | VKAPI_ATTR void DestroyShaderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator) { | 
|  | 851 | GetData(device).dispatch.DestroyShaderModule(device, shaderModule, pAllocator); | 
|  | 852 | } | 
|  | 853 |  | 
|  | 854 | VKAPI_ATTR VkResult CreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache) { | 
|  | 855 | return GetData(device).dispatch.CreatePipelineCache(device, pCreateInfo, pAllocator, pPipelineCache); | 
|  | 856 | } | 
|  | 857 |  | 
|  | 858 | VKAPI_ATTR void DestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator) { | 
|  | 859 | GetData(device).dispatch.DestroyPipelineCache(device, pipelineCache, pAllocator); | 
|  | 860 | } | 
|  | 861 |  | 
|  | 862 | VKAPI_ATTR VkResult GetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData) { | 
|  | 863 | return GetData(device).dispatch.GetPipelineCacheData(device, pipelineCache, pDataSize, pData); | 
|  | 864 | } | 
|  | 865 |  | 
|  | 866 | VKAPI_ATTR VkResult MergePipelineCaches(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches) { | 
|  | 867 | return GetData(device).dispatch.MergePipelineCaches(device, dstCache, srcCacheCount, pSrcCaches); | 
|  | 868 | } | 
|  | 869 |  | 
|  | 870 | VKAPI_ATTR VkResult CreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines) { | 
|  | 871 | return GetData(device).dispatch.CreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); | 
|  | 872 | } | 
|  | 873 |  | 
|  | 874 | VKAPI_ATTR VkResult CreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines) { | 
|  | 875 | return GetData(device).dispatch.CreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); | 
|  | 876 | } | 
|  | 877 |  | 
|  | 878 | VKAPI_ATTR void DestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator) { | 
|  | 879 | GetData(device).dispatch.DestroyPipeline(device, pipeline, pAllocator); | 
|  | 880 | } | 
|  | 881 |  | 
|  | 882 | VKAPI_ATTR VkResult CreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout) { | 
|  | 883 | return GetData(device).dispatch.CreatePipelineLayout(device, pCreateInfo, pAllocator, pPipelineLayout); | 
|  | 884 | } | 
|  | 885 |  | 
|  | 886 | VKAPI_ATTR void DestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator) { | 
|  | 887 | GetData(device).dispatch.DestroyPipelineLayout(device, pipelineLayout, pAllocator); | 
|  | 888 | } | 
|  | 889 |  | 
|  | 890 | VKAPI_ATTR VkResult CreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler) { | 
|  | 891 | return GetData(device).dispatch.CreateSampler(device, pCreateInfo, pAllocator, pSampler); | 
|  | 892 | } | 
|  | 893 |  | 
|  | 894 | VKAPI_ATTR void DestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator) { | 
|  | 895 | GetData(device).dispatch.DestroySampler(device, sampler, pAllocator); | 
|  | 896 | } | 
|  | 897 |  | 
|  | 898 | VKAPI_ATTR VkResult CreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout) { | 
|  | 899 | return GetData(device).dispatch.CreateDescriptorSetLayout(device, pCreateInfo, pAllocator, pSetLayout); | 
|  | 900 | } | 
|  | 901 |  | 
|  | 902 | VKAPI_ATTR void DestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator) { | 
|  | 903 | GetData(device).dispatch.DestroyDescriptorSetLayout(device, descriptorSetLayout, pAllocator); | 
|  | 904 | } | 
|  | 905 |  | 
|  | 906 | VKAPI_ATTR VkResult CreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool) { | 
|  | 907 | return GetData(device).dispatch.CreateDescriptorPool(device, pCreateInfo, pAllocator, pDescriptorPool); | 
|  | 908 | } | 
|  | 909 |  | 
|  | 910 | VKAPI_ATTR void DestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator) { | 
|  | 911 | GetData(device).dispatch.DestroyDescriptorPool(device, descriptorPool, pAllocator); | 
|  | 912 | } | 
|  | 913 |  | 
|  | 914 | VKAPI_ATTR VkResult ResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags) { | 
|  | 915 | return GetData(device).dispatch.ResetDescriptorPool(device, descriptorPool, flags); | 
|  | 916 | } | 
|  | 917 |  | 
|  | 918 | VKAPI_ATTR VkResult AllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets) { | 
|  | 919 | return GetData(device).dispatch.AllocateDescriptorSets(device, pAllocateInfo, pDescriptorSets); | 
|  | 920 | } | 
|  | 921 |  | 
|  | 922 | VKAPI_ATTR VkResult FreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets) { | 
|  | 923 | return GetData(device).dispatch.FreeDescriptorSets(device, descriptorPool, descriptorSetCount, pDescriptorSets); | 
|  | 924 | } | 
|  | 925 |  | 
|  | 926 | VKAPI_ATTR void UpdateDescriptorSets(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies) { | 
|  | 927 | GetData(device).dispatch.UpdateDescriptorSets(device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies); | 
|  | 928 | } | 
|  | 929 |  | 
|  | 930 | VKAPI_ATTR VkResult CreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer) { | 
|  | 931 | return GetData(device).dispatch.CreateFramebuffer(device, pCreateInfo, pAllocator, pFramebuffer); | 
|  | 932 | } | 
|  | 933 |  | 
|  | 934 | VKAPI_ATTR void DestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator) { | 
|  | 935 | GetData(device).dispatch.DestroyFramebuffer(device, framebuffer, pAllocator); | 
|  | 936 | } | 
|  | 937 |  | 
|  | 938 | VKAPI_ATTR VkResult CreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass) { | 
|  | 939 | return GetData(device).dispatch.CreateRenderPass(device, pCreateInfo, pAllocator, pRenderPass); | 
|  | 940 | } | 
|  | 941 |  | 
|  | 942 | VKAPI_ATTR void DestroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator) { | 
|  | 943 | GetData(device).dispatch.DestroyRenderPass(device, renderPass, pAllocator); | 
|  | 944 | } | 
|  | 945 |  | 
|  | 946 | VKAPI_ATTR void GetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity) { | 
|  | 947 | GetData(device).dispatch.GetRenderAreaGranularity(device, renderPass, pGranularity); | 
|  | 948 | } | 
|  | 949 |  | 
|  | 950 | VKAPI_ATTR VkResult CreateCommandPool(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool) { | 
|  | 951 | return GetData(device).dispatch.CreateCommandPool(device, pCreateInfo, pAllocator, pCommandPool); | 
|  | 952 | } | 
|  | 953 |  | 
|  | 954 | VKAPI_ATTR void DestroyCommandPool(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator) { | 
|  | 955 | GetData(device).dispatch.DestroyCommandPool(device, commandPool, pAllocator); | 
|  | 956 | } | 
|  | 957 |  | 
|  | 958 | VKAPI_ATTR VkResult ResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags) { | 
|  | 959 | return GetData(device).dispatch.ResetCommandPool(device, commandPool, flags); | 
|  | 960 | } | 
|  | 961 |  | 
|  | 962 | VKAPI_ATTR VkResult AllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers) { | 
|  | 963 | return GetData(device).dispatch.AllocateCommandBuffers(device, pAllocateInfo, pCommandBuffers); | 
|  | 964 | } | 
|  | 965 |  | 
|  | 966 | VKAPI_ATTR void FreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers) { | 
|  | 967 | GetData(device).dispatch.FreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers); | 
|  | 968 | } | 
|  | 969 |  | 
|  | 970 | VKAPI_ATTR VkResult BeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo) { | 
|  | 971 | return GetData(commandBuffer).dispatch.BeginCommandBuffer(commandBuffer, pBeginInfo); | 
|  | 972 | } | 
|  | 973 |  | 
|  | 974 | VKAPI_ATTR VkResult EndCommandBuffer(VkCommandBuffer commandBuffer) { | 
|  | 975 | return GetData(commandBuffer).dispatch.EndCommandBuffer(commandBuffer); | 
|  | 976 | } | 
|  | 977 |  | 
|  | 978 | VKAPI_ATTR VkResult ResetCommandBuffer(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags) { | 
|  | 979 | return GetData(commandBuffer).dispatch.ResetCommandBuffer(commandBuffer, flags); | 
|  | 980 | } | 
|  | 981 |  | 
|  | 982 | VKAPI_ATTR void CmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline) { | 
|  | 983 | GetData(commandBuffer).dispatch.CmdBindPipeline(commandBuffer, pipelineBindPoint, pipeline); | 
|  | 984 | } | 
|  | 985 |  | 
|  | 986 | VKAPI_ATTR void CmdSetViewport(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports) { | 
|  | 987 | GetData(commandBuffer).dispatch.CmdSetViewport(commandBuffer, firstViewport, viewportCount, pViewports); | 
|  | 988 | } | 
|  | 989 |  | 
|  | 990 | VKAPI_ATTR void CmdSetScissor(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors) { | 
|  | 991 | GetData(commandBuffer).dispatch.CmdSetScissor(commandBuffer, firstScissor, scissorCount, pScissors); | 
|  | 992 | } | 
|  | 993 |  | 
|  | 994 | VKAPI_ATTR void CmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth) { | 
|  | 995 | GetData(commandBuffer).dispatch.CmdSetLineWidth(commandBuffer, lineWidth); | 
|  | 996 | } | 
|  | 997 |  | 
|  | 998 | VKAPI_ATTR void CmdSetDepthBias(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor) { | 
|  | 999 | GetData(commandBuffer).dispatch.CmdSetDepthBias(commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor); | 
|  | 1000 | } | 
|  | 1001 |  | 
|  | 1002 | VKAPI_ATTR void CmdSetBlendConstants(VkCommandBuffer commandBuffer, const float blendConstants[4]) { | 
|  | 1003 | GetData(commandBuffer).dispatch.CmdSetBlendConstants(commandBuffer, blendConstants); | 
|  | 1004 | } | 
|  | 1005 |  | 
|  | 1006 | VKAPI_ATTR void CmdSetDepthBounds(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds) { | 
|  | 1007 | GetData(commandBuffer).dispatch.CmdSetDepthBounds(commandBuffer, minDepthBounds, maxDepthBounds); | 
|  | 1008 | } | 
|  | 1009 |  | 
|  | 1010 | VKAPI_ATTR void CmdSetStencilCompareMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask) { | 
|  | 1011 | GetData(commandBuffer).dispatch.CmdSetStencilCompareMask(commandBuffer, faceMask, compareMask); | 
|  | 1012 | } | 
|  | 1013 |  | 
|  | 1014 | VKAPI_ATTR void CmdSetStencilWriteMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask) { | 
|  | 1015 | GetData(commandBuffer).dispatch.CmdSetStencilWriteMask(commandBuffer, faceMask, writeMask); | 
|  | 1016 | } | 
|  | 1017 |  | 
|  | 1018 | VKAPI_ATTR void CmdSetStencilReference(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference) { | 
|  | 1019 | GetData(commandBuffer).dispatch.CmdSetStencilReference(commandBuffer, faceMask, reference); | 
|  | 1020 | } | 
|  | 1021 |  | 
|  | 1022 | VKAPI_ATTR void CmdBindDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets) { | 
|  | 1023 | GetData(commandBuffer).dispatch.CmdBindDescriptorSets(commandBuffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets); | 
|  | 1024 | } | 
|  | 1025 |  | 
|  | 1026 | VKAPI_ATTR void CmdBindIndexBuffer(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType) { | 
|  | 1027 | GetData(commandBuffer).dispatch.CmdBindIndexBuffer(commandBuffer, buffer, offset, indexType); | 
|  | 1028 | } | 
|  | 1029 |  | 
|  | 1030 | VKAPI_ATTR void CmdBindVertexBuffers(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets) { | 
|  | 1031 | GetData(commandBuffer).dispatch.CmdBindVertexBuffers(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets); | 
|  | 1032 | } | 
|  | 1033 |  | 
|  | 1034 | VKAPI_ATTR void CmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) { | 
|  | 1035 | GetData(commandBuffer).dispatch.CmdDraw(commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance); | 
|  | 1036 | } | 
|  | 1037 |  | 
|  | 1038 | VKAPI_ATTR void CmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance) { | 
|  | 1039 | GetData(commandBuffer).dispatch.CmdDrawIndexed(commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance); | 
|  | 1040 | } | 
|  | 1041 |  | 
|  | 1042 | VKAPI_ATTR void CmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) { | 
|  | 1043 | GetData(commandBuffer).dispatch.CmdDrawIndirect(commandBuffer, buffer, offset, drawCount, stride); | 
|  | 1044 | } | 
|  | 1045 |  | 
|  | 1046 | VKAPI_ATTR void CmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) { | 
|  | 1047 | GetData(commandBuffer).dispatch.CmdDrawIndexedIndirect(commandBuffer, buffer, offset, drawCount, stride); | 
|  | 1048 | } | 
|  | 1049 |  | 
|  | 1050 | VKAPI_ATTR void CmdDispatch(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z) { | 
|  | 1051 | GetData(commandBuffer).dispatch.CmdDispatch(commandBuffer, x, y, z); | 
|  | 1052 | } | 
|  | 1053 |  | 
|  | 1054 | VKAPI_ATTR void CmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset) { | 
|  | 1055 | GetData(commandBuffer).dispatch.CmdDispatchIndirect(commandBuffer, buffer, offset); | 
|  | 1056 | } | 
|  | 1057 |  | 
|  | 1058 | VKAPI_ATTR void CmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions) { | 
|  | 1059 | GetData(commandBuffer).dispatch.CmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions); | 
|  | 1060 | } | 
|  | 1061 |  | 
|  | 1062 | VKAPI_ATTR void CmdCopyImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions) { | 
|  | 1063 | GetData(commandBuffer).dispatch.CmdCopyImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); | 
|  | 1064 | } | 
|  | 1065 |  | 
|  | 1066 | VKAPI_ATTR void CmdBlitImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter) { | 
|  | 1067 | GetData(commandBuffer).dispatch.CmdBlitImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter); | 
|  | 1068 | } | 
|  | 1069 |  | 
|  | 1070 | VKAPI_ATTR void CmdCopyBufferToImage(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions) { | 
|  | 1071 | GetData(commandBuffer).dispatch.CmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions); | 
|  | 1072 | } | 
|  | 1073 |  | 
|  | 1074 | VKAPI_ATTR void CmdCopyImageToBuffer(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions) { | 
|  | 1075 | GetData(commandBuffer).dispatch.CmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions); | 
|  | 1076 | } | 
|  | 1077 |  | 
| Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1078 | VKAPI_ATTR void CmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1079 | GetData(commandBuffer).dispatch.CmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, dataSize, pData); | 
|  | 1080 | } | 
|  | 1081 |  | 
|  | 1082 | VKAPI_ATTR void CmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data) { | 
|  | 1083 | GetData(commandBuffer).dispatch.CmdFillBuffer(commandBuffer, dstBuffer, dstOffset, size, data); | 
|  | 1084 | } | 
|  | 1085 |  | 
|  | 1086 | VKAPI_ATTR void CmdClearColorImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { | 
|  | 1087 | GetData(commandBuffer).dispatch.CmdClearColorImage(commandBuffer, image, imageLayout, pColor, rangeCount, pRanges); | 
|  | 1088 | } | 
|  | 1089 |  | 
|  | 1090 | VKAPI_ATTR void CmdClearDepthStencilImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { | 
|  | 1091 | GetData(commandBuffer).dispatch.CmdClearDepthStencilImage(commandBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges); | 
|  | 1092 | } | 
|  | 1093 |  | 
|  | 1094 | VKAPI_ATTR void CmdClearAttachments(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects) { | 
|  | 1095 | GetData(commandBuffer).dispatch.CmdClearAttachments(commandBuffer, attachmentCount, pAttachments, rectCount, pRects); | 
|  | 1096 | } | 
|  | 1097 |  | 
|  | 1098 | VKAPI_ATTR void CmdResolveImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions) { | 
|  | 1099 | GetData(commandBuffer).dispatch.CmdResolveImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); | 
|  | 1100 | } | 
|  | 1101 |  | 
|  | 1102 | VKAPI_ATTR void CmdSetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask) { | 
|  | 1103 | GetData(commandBuffer).dispatch.CmdSetEvent(commandBuffer, event, stageMask); | 
|  | 1104 | } | 
|  | 1105 |  | 
|  | 1106 | VKAPI_ATTR void CmdResetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask) { | 
|  | 1107 | GetData(commandBuffer).dispatch.CmdResetEvent(commandBuffer, event, stageMask); | 
|  | 1108 | } | 
|  | 1109 |  | 
|  | 1110 | VKAPI_ATTR void CmdWaitEvents(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers) { | 
|  | 1111 | GetData(commandBuffer).dispatch.CmdWaitEvents(commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); | 
|  | 1112 | } | 
|  | 1113 |  | 
|  | 1114 | VKAPI_ATTR void CmdPipelineBarrier(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers) { | 
|  | 1115 | GetData(commandBuffer).dispatch.CmdPipelineBarrier(commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); | 
|  | 1116 | } | 
|  | 1117 |  | 
|  | 1118 | VKAPI_ATTR void CmdBeginQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags) { | 
|  | 1119 | GetData(commandBuffer).dispatch.CmdBeginQuery(commandBuffer, queryPool, query, flags); | 
|  | 1120 | } | 
|  | 1121 |  | 
|  | 1122 | VKAPI_ATTR void CmdEndQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query) { | 
|  | 1123 | GetData(commandBuffer).dispatch.CmdEndQuery(commandBuffer, queryPool, query); | 
|  | 1124 | } | 
|  | 1125 |  | 
|  | 1126 | VKAPI_ATTR void CmdResetQueryPool(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount) { | 
|  | 1127 | GetData(commandBuffer).dispatch.CmdResetQueryPool(commandBuffer, queryPool, firstQuery, queryCount); | 
|  | 1128 | } | 
|  | 1129 |  | 
|  | 1130 | VKAPI_ATTR void CmdWriteTimestamp(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query) { | 
|  | 1131 | GetData(commandBuffer).dispatch.CmdWriteTimestamp(commandBuffer, pipelineStage, queryPool, query); | 
|  | 1132 | } | 
|  | 1133 |  | 
|  | 1134 | VKAPI_ATTR void CmdCopyQueryPoolResults(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags) { | 
|  | 1135 | GetData(commandBuffer).dispatch.CmdCopyQueryPoolResults(commandBuffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags); | 
|  | 1136 | } | 
|  | 1137 |  | 
|  | 1138 | VKAPI_ATTR void CmdPushConstants(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues) { | 
|  | 1139 | GetData(commandBuffer).dispatch.CmdPushConstants(commandBuffer, layout, stageFlags, offset, size, pValues); | 
|  | 1140 | } | 
|  | 1141 |  | 
|  | 1142 | VKAPI_ATTR void CmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents) { | 
|  | 1143 | GetData(commandBuffer).dispatch.CmdBeginRenderPass(commandBuffer, pRenderPassBegin, contents); | 
|  | 1144 | } | 
|  | 1145 |  | 
|  | 1146 | VKAPI_ATTR void CmdNextSubpass(VkCommandBuffer commandBuffer, VkSubpassContents contents) { | 
|  | 1147 | GetData(commandBuffer).dispatch.CmdNextSubpass(commandBuffer, contents); | 
|  | 1148 | } | 
|  | 1149 |  | 
|  | 1150 | VKAPI_ATTR void CmdEndRenderPass(VkCommandBuffer commandBuffer) { | 
|  | 1151 | GetData(commandBuffer).dispatch.CmdEndRenderPass(commandBuffer); | 
|  | 1152 | } | 
|  | 1153 |  | 
|  | 1154 | VKAPI_ATTR void CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers) { | 
|  | 1155 | GetData(commandBuffer).dispatch.CmdExecuteCommands(commandBuffer, commandBufferCount, pCommandBuffers); | 
|  | 1156 | } | 
|  | 1157 |  | 
|  | 1158 | VKAPI_ATTR void DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator) { | 
|  | 1159 | GetData(instance).dispatch.DestroySurfaceKHR(instance, surface, pAllocator); | 
|  | 1160 | } | 
|  | 1161 |  | 
|  | 1162 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported) { | 
|  | 1163 | return GetData(physicalDevice).dispatch.GetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, pSupported); | 
|  | 1164 | } | 
|  | 1165 |  | 
|  | 1166 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities) { | 
|  | 1167 | return GetData(physicalDevice).dispatch.GetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface, pSurfaceCapabilities); | 
|  | 1168 | } | 
|  | 1169 |  | 
|  | 1170 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats) { | 
|  | 1171 | return GetData(physicalDevice).dispatch.GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, pSurfaceFormatCount, pSurfaceFormats); | 
|  | 1172 | } | 
|  | 1173 |  | 
|  | 1174 | VKAPI_ATTR VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes) { | 
|  | 1175 | return GetData(physicalDevice).dispatch.GetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, pPresentModeCount, pPresentModes); | 
|  | 1176 | } | 
|  | 1177 |  | 
|  | 1178 | VKAPI_ATTR VkResult CreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain) { | 
|  | 1179 | return GetData(device).dispatch.CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); | 
|  | 1180 | } | 
|  | 1181 |  | 
|  | 1182 | VKAPI_ATTR void DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) { | 
|  | 1183 | GetData(device).dispatch.DestroySwapchainKHR(device, swapchain, pAllocator); | 
|  | 1184 | } | 
|  | 1185 |  | 
|  | 1186 | VKAPI_ATTR VkResult GetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages) { | 
|  | 1187 | return GetData(device).dispatch.GetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages); | 
|  | 1188 | } | 
|  | 1189 |  | 
|  | 1190 | VKAPI_ATTR VkResult AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) { | 
|  | 1191 | return GetData(device).dispatch.AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex); | 
|  | 1192 | } | 
|  | 1193 |  | 
|  | 1194 | VKAPI_ATTR VkResult QueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* pPresentInfo) { | 
|  | 1195 | return GetData(queue).dispatch.QueuePresentKHR(queue, pPresentInfo); | 
|  | 1196 | } | 
|  | 1197 |  | 
|  | 1198 | VKAPI_ATTR VkResult CreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface) { | 
|  | 1199 | return GetData(instance).dispatch.CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); | 
|  | 1200 | } | 
|  | 1201 |  | 
|  | 1202 |  | 
|  | 1203 | }  // anonymous namespace | 
|  | 1204 |  | 
|  | 1205 | // clang-format on | 
|  | 1206 |  | 
|  | 1207 | }  // namespace api | 
|  | 1208 | }  // namespace vulkan | 
|  | 1209 |  | 
|  | 1210 | // clang-format off | 
|  | 1211 |  | 
|  | 1212 | __attribute__((visibility("default"))) | 
|  | 1213 | VKAPI_ATTR VkResult vkCreateInstance(const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance) { | 
|  | 1214 | return vulkan::api::CreateInstance(pCreateInfo, pAllocator, pInstance); | 
|  | 1215 | } | 
|  | 1216 |  | 
|  | 1217 | __attribute__((visibility("default"))) | 
|  | 1218 | VKAPI_ATTR void vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator) { | 
|  | 1219 | vulkan::api::DestroyInstance(instance, pAllocator); | 
|  | 1220 | } | 
|  | 1221 |  | 
|  | 1222 | __attribute__((visibility("default"))) | 
|  | 1223 | VKAPI_ATTR VkResult vkEnumeratePhysicalDevices(VkInstance instance, uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices) { | 
|  | 1224 | return vulkan::api::EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices); | 
|  | 1225 | } | 
|  | 1226 |  | 
|  | 1227 | __attribute__((visibility("default"))) | 
|  | 1228 | VKAPI_ATTR PFN_vkVoidFunction vkGetDeviceProcAddr(VkDevice device, const char* pName) { | 
|  | 1229 | return vulkan::api::GetDeviceProcAddr(device, pName); | 
|  | 1230 | } | 
|  | 1231 |  | 
|  | 1232 | __attribute__((visibility("default"))) | 
|  | 1233 | VKAPI_ATTR PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance instance, const char* pName) { | 
|  | 1234 | return vulkan::api::GetInstanceProcAddr(instance, pName); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1235 | } | 
|  | 1236 |  | 
|  | 1237 | __attribute__((visibility("default"))) | 
|  | 1238 | VKAPI_ATTR void vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties* pProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1239 | vulkan::api::GetPhysicalDeviceProperties(physicalDevice, pProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1240 | } | 
|  | 1241 |  | 
|  | 1242 | __attribute__((visibility("default"))) | 
|  | 1243 | VKAPI_ATTR void vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t* pQueueFamilyPropertyCount, VkQueueFamilyProperties* pQueueFamilyProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1244 | vulkan::api::GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1245 | } | 
|  | 1246 |  | 
|  | 1247 | __attribute__((visibility("default"))) | 
|  | 1248 | VKAPI_ATTR void vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties* pMemoryProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1249 | vulkan::api::GetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1250 | } | 
|  | 1251 |  | 
|  | 1252 | __attribute__((visibility("default"))) | 
|  | 1253 | VKAPI_ATTR void vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1254 | vulkan::api::GetPhysicalDeviceFeatures(physicalDevice, pFeatures); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1255 | } | 
|  | 1256 |  | 
|  | 1257 | __attribute__((visibility("default"))) | 
|  | 1258 | VKAPI_ATTR void vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties* pFormatProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1259 | vulkan::api::GetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1260 | } | 
|  | 1261 |  | 
|  | 1262 | __attribute__((visibility("default"))) | 
|  | 1263 | VKAPI_ATTR VkResult vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1264 | return vulkan::api::GetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1265 | } | 
|  | 1266 |  | 
|  | 1267 | __attribute__((visibility("default"))) | 
|  | 1268 | VKAPI_ATTR VkResult vkCreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1269 | return vulkan::api::CreateDevice(physicalDevice, pCreateInfo, pAllocator, pDevice); | 
|  | 1270 | } | 
|  | 1271 |  | 
|  | 1272 | __attribute__((visibility("default"))) | 
|  | 1273 | VKAPI_ATTR void vkDestroyDevice(VkDevice device, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1274 | vulkan::api::DestroyDevice(device, pAllocator); | 
|  | 1275 | } | 
|  | 1276 |  | 
|  | 1277 | __attribute__((visibility("default"))) | 
|  | 1278 | VKAPI_ATTR VkResult vkEnumerateInstanceLayerProperties(uint32_t* pPropertyCount, VkLayerProperties* pProperties) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1279 | return vulkan::api::EnumerateInstanceLayerProperties(pPropertyCount, pProperties); | 
|  | 1280 | } | 
|  | 1281 |  | 
|  | 1282 | __attribute__((visibility("default"))) | 
|  | 1283 | VKAPI_ATTR VkResult vkEnumerateInstanceExtensionProperties(const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1284 | return vulkan::api::EnumerateInstanceExtensionProperties(pLayerName, pPropertyCount, pProperties); | 
|  | 1285 | } | 
|  | 1286 |  | 
|  | 1287 | __attribute__((visibility("default"))) | 
|  | 1288 | VKAPI_ATTR VkResult vkEnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t* pPropertyCount, VkLayerProperties* pProperties) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1289 | return vulkan::api::EnumerateDeviceLayerProperties(physicalDevice, pPropertyCount, pProperties); | 
|  | 1290 | } | 
|  | 1291 |  | 
|  | 1292 | __attribute__((visibility("default"))) | 
|  | 1293 | VKAPI_ATTR VkResult vkEnumerateDeviceExtensionProperties(VkPhysicalDevice physicalDevice, const char* pLayerName, uint32_t* pPropertyCount, VkExtensionProperties* pProperties) { | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1294 | return vulkan::api::EnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pPropertyCount, pProperties); | 
|  | 1295 | } | 
|  | 1296 |  | 
|  | 1297 | __attribute__((visibility("default"))) | 
|  | 1298 | VKAPI_ATTR void vkGetDeviceQueue(VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1299 | vulkan::api::GetDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1300 | } | 
|  | 1301 |  | 
|  | 1302 | __attribute__((visibility("default"))) | 
|  | 1303 | VKAPI_ATTR VkResult vkQueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1304 | return vulkan::api::QueueSubmit(queue, submitCount, pSubmits, fence); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1305 | } | 
|  | 1306 |  | 
|  | 1307 | __attribute__((visibility("default"))) | 
|  | 1308 | VKAPI_ATTR VkResult vkQueueWaitIdle(VkQueue queue) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1309 | return vulkan::api::QueueWaitIdle(queue); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1310 | } | 
|  | 1311 |  | 
|  | 1312 | __attribute__((visibility("default"))) | 
|  | 1313 | VKAPI_ATTR VkResult vkDeviceWaitIdle(VkDevice device) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1314 | return vulkan::api::DeviceWaitIdle(device); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1315 | } | 
|  | 1316 |  | 
|  | 1317 | __attribute__((visibility("default"))) | 
|  | 1318 | VKAPI_ATTR VkResult vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1319 | return vulkan::api::AllocateMemory(device, pAllocateInfo, pAllocator, pMemory); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1320 | } | 
|  | 1321 |  | 
|  | 1322 | __attribute__((visibility("default"))) | 
|  | 1323 | VKAPI_ATTR void vkFreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1324 | vulkan::api::FreeMemory(device, memory, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1325 | } | 
|  | 1326 |  | 
|  | 1327 | __attribute__((visibility("default"))) | 
|  | 1328 | VKAPI_ATTR VkResult vkMapMemory(VkDevice device, VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void** ppData) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1329 | return vulkan::api::MapMemory(device, memory, offset, size, flags, ppData); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1330 | } | 
|  | 1331 |  | 
|  | 1332 | __attribute__((visibility("default"))) | 
|  | 1333 | VKAPI_ATTR void vkUnmapMemory(VkDevice device, VkDeviceMemory memory) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1334 | vulkan::api::UnmapMemory(device, memory); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1335 | } | 
|  | 1336 |  | 
|  | 1337 | __attribute__((visibility("default"))) | 
|  | 1338 | VKAPI_ATTR VkResult vkFlushMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1339 | return vulkan::api::FlushMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1340 | } | 
|  | 1341 |  | 
|  | 1342 | __attribute__((visibility("default"))) | 
|  | 1343 | VKAPI_ATTR VkResult vkInvalidateMappedMemoryRanges(VkDevice device, uint32_t memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1344 | return vulkan::api::InvalidateMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1345 | } | 
|  | 1346 |  | 
|  | 1347 | __attribute__((visibility("default"))) | 
|  | 1348 | VKAPI_ATTR void vkGetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1349 | vulkan::api::GetDeviceMemoryCommitment(device, memory, pCommittedMemoryInBytes); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1350 | } | 
|  | 1351 |  | 
|  | 1352 | __attribute__((visibility("default"))) | 
|  | 1353 | VKAPI_ATTR void vkGetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1354 | vulkan::api::GetBufferMemoryRequirements(device, buffer, pMemoryRequirements); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1355 | } | 
|  | 1356 |  | 
|  | 1357 | __attribute__((visibility("default"))) | 
|  | 1358 | VKAPI_ATTR VkResult vkBindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1359 | return vulkan::api::BindBufferMemory(device, buffer, memory, memoryOffset); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1360 | } | 
|  | 1361 |  | 
|  | 1362 | __attribute__((visibility("default"))) | 
|  | 1363 | VKAPI_ATTR void vkGetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1364 | vulkan::api::GetImageMemoryRequirements(device, image, pMemoryRequirements); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1365 | } | 
|  | 1366 |  | 
|  | 1367 | __attribute__((visibility("default"))) | 
|  | 1368 | VKAPI_ATTR VkResult vkBindImageMemory(VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1369 | return vulkan::api::BindImageMemory(device, image, memory, memoryOffset); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1370 | } | 
|  | 1371 |  | 
|  | 1372 | __attribute__((visibility("default"))) | 
|  | 1373 | VKAPI_ATTR void vkGetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1374 | vulkan::api::GetImageSparseMemoryRequirements(device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1375 | } | 
|  | 1376 |  | 
|  | 1377 | __attribute__((visibility("default"))) | 
|  | 1378 | VKAPI_ATTR void vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pPropertyCount, VkSparseImageFormatProperties* pProperties) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1379 | vulkan::api::GetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1380 | } | 
|  | 1381 |  | 
|  | 1382 | __attribute__((visibility("default"))) | 
|  | 1383 | VKAPI_ATTR VkResult vkQueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1384 | return vulkan::api::QueueBindSparse(queue, bindInfoCount, pBindInfo, fence); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1385 | } | 
|  | 1386 |  | 
|  | 1387 | __attribute__((visibility("default"))) | 
|  | 1388 | VKAPI_ATTR VkResult vkCreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1389 | return vulkan::api::CreateFence(device, pCreateInfo, pAllocator, pFence); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1390 | } | 
|  | 1391 |  | 
|  | 1392 | __attribute__((visibility("default"))) | 
|  | 1393 | VKAPI_ATTR void vkDestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1394 | vulkan::api::DestroyFence(device, fence, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1395 | } | 
|  | 1396 |  | 
|  | 1397 | __attribute__((visibility("default"))) | 
|  | 1398 | VKAPI_ATTR VkResult vkResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1399 | return vulkan::api::ResetFences(device, fenceCount, pFences); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1400 | } | 
|  | 1401 |  | 
|  | 1402 | __attribute__((visibility("default"))) | 
|  | 1403 | VKAPI_ATTR VkResult vkGetFenceStatus(VkDevice device, VkFence fence) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1404 | return vulkan::api::GetFenceStatus(device, fence); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1405 | } | 
|  | 1406 |  | 
|  | 1407 | __attribute__((visibility("default"))) | 
|  | 1408 | VKAPI_ATTR VkResult vkWaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1409 | return vulkan::api::WaitForFences(device, fenceCount, pFences, waitAll, timeout); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1410 | } | 
|  | 1411 |  | 
|  | 1412 | __attribute__((visibility("default"))) | 
|  | 1413 | VKAPI_ATTR VkResult vkCreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1414 | return vulkan::api::CreateSemaphore(device, pCreateInfo, pAllocator, pSemaphore); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1415 | } | 
|  | 1416 |  | 
|  | 1417 | __attribute__((visibility("default"))) | 
|  | 1418 | VKAPI_ATTR void vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1419 | vulkan::api::DestroySemaphore(device, semaphore, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1420 | } | 
|  | 1421 |  | 
|  | 1422 | __attribute__((visibility("default"))) | 
|  | 1423 | VKAPI_ATTR VkResult vkCreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1424 | return vulkan::api::CreateEvent(device, pCreateInfo, pAllocator, pEvent); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1425 | } | 
|  | 1426 |  | 
|  | 1427 | __attribute__((visibility("default"))) | 
|  | 1428 | VKAPI_ATTR void vkDestroyEvent(VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1429 | vulkan::api::DestroyEvent(device, event, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1430 | } | 
|  | 1431 |  | 
|  | 1432 | __attribute__((visibility("default"))) | 
|  | 1433 | VKAPI_ATTR VkResult vkGetEventStatus(VkDevice device, VkEvent event) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1434 | return vulkan::api::GetEventStatus(device, event); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1435 | } | 
|  | 1436 |  | 
|  | 1437 | __attribute__((visibility("default"))) | 
|  | 1438 | VKAPI_ATTR VkResult vkSetEvent(VkDevice device, VkEvent event) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1439 | return vulkan::api::SetEvent(device, event); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1440 | } | 
|  | 1441 |  | 
|  | 1442 | __attribute__((visibility("default"))) | 
|  | 1443 | VKAPI_ATTR VkResult vkResetEvent(VkDevice device, VkEvent event) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1444 | return vulkan::api::ResetEvent(device, event); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1445 | } | 
|  | 1446 |  | 
|  | 1447 | __attribute__((visibility("default"))) | 
|  | 1448 | VKAPI_ATTR VkResult vkCreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1449 | return vulkan::api::CreateQueryPool(device, pCreateInfo, pAllocator, pQueryPool); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1450 | } | 
|  | 1451 |  | 
|  | 1452 | __attribute__((visibility("default"))) | 
|  | 1453 | VKAPI_ATTR void vkDestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1454 | vulkan::api::DestroyQueryPool(device, queryPool, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1455 | } | 
|  | 1456 |  | 
|  | 1457 | __attribute__((visibility("default"))) | 
|  | 1458 | VKAPI_ATTR VkResult vkGetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1459 | return vulkan::api::GetQueryPoolResults(device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1460 | } | 
|  | 1461 |  | 
|  | 1462 | __attribute__((visibility("default"))) | 
|  | 1463 | VKAPI_ATTR VkResult vkCreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1464 | return vulkan::api::CreateBuffer(device, pCreateInfo, pAllocator, pBuffer); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1465 | } | 
|  | 1466 |  | 
|  | 1467 | __attribute__((visibility("default"))) | 
|  | 1468 | VKAPI_ATTR void vkDestroyBuffer(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1469 | vulkan::api::DestroyBuffer(device, buffer, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1470 | } | 
|  | 1471 |  | 
|  | 1472 | __attribute__((visibility("default"))) | 
|  | 1473 | VKAPI_ATTR VkResult vkCreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1474 | return vulkan::api::CreateBufferView(device, pCreateInfo, pAllocator, pView); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1475 | } | 
|  | 1476 |  | 
|  | 1477 | __attribute__((visibility("default"))) | 
|  | 1478 | VKAPI_ATTR void vkDestroyBufferView(VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1479 | vulkan::api::DestroyBufferView(device, bufferView, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1480 | } | 
|  | 1481 |  | 
|  | 1482 | __attribute__((visibility("default"))) | 
|  | 1483 | VKAPI_ATTR VkResult vkCreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1484 | return vulkan::api::CreateImage(device, pCreateInfo, pAllocator, pImage); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1485 | } | 
|  | 1486 |  | 
|  | 1487 | __attribute__((visibility("default"))) | 
|  | 1488 | VKAPI_ATTR void vkDestroyImage(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1489 | vulkan::api::DestroyImage(device, image, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1490 | } | 
|  | 1491 |  | 
|  | 1492 | __attribute__((visibility("default"))) | 
|  | 1493 | VKAPI_ATTR void vkGetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1494 | vulkan::api::GetImageSubresourceLayout(device, image, pSubresource, pLayout); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1495 | } | 
|  | 1496 |  | 
|  | 1497 | __attribute__((visibility("default"))) | 
|  | 1498 | VKAPI_ATTR VkResult vkCreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1499 | return vulkan::api::CreateImageView(device, pCreateInfo, pAllocator, pView); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1500 | } | 
|  | 1501 |  | 
|  | 1502 | __attribute__((visibility("default"))) | 
|  | 1503 | VKAPI_ATTR void vkDestroyImageView(VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1504 | vulkan::api::DestroyImageView(device, imageView, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1505 | } | 
|  | 1506 |  | 
|  | 1507 | __attribute__((visibility("default"))) | 
|  | 1508 | VKAPI_ATTR VkResult vkCreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1509 | return vulkan::api::CreateShaderModule(device, pCreateInfo, pAllocator, pShaderModule); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1510 | } | 
|  | 1511 |  | 
|  | 1512 | __attribute__((visibility("default"))) | 
|  | 1513 | VKAPI_ATTR void vkDestroyShaderModule(VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1514 | vulkan::api::DestroyShaderModule(device, shaderModule, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1515 | } | 
|  | 1516 |  | 
|  | 1517 | __attribute__((visibility("default"))) | 
|  | 1518 | VKAPI_ATTR VkResult vkCreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1519 | return vulkan::api::CreatePipelineCache(device, pCreateInfo, pAllocator, pPipelineCache); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1520 | } | 
|  | 1521 |  | 
|  | 1522 | __attribute__((visibility("default"))) | 
|  | 1523 | VKAPI_ATTR void vkDestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1524 | vulkan::api::DestroyPipelineCache(device, pipelineCache, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1525 | } | 
|  | 1526 |  | 
|  | 1527 | __attribute__((visibility("default"))) | 
|  | 1528 | VKAPI_ATTR VkResult vkGetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, size_t* pDataSize, void* pData) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1529 | return vulkan::api::GetPipelineCacheData(device, pipelineCache, pDataSize, pData); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1530 | } | 
|  | 1531 |  | 
|  | 1532 | __attribute__((visibility("default"))) | 
|  | 1533 | VKAPI_ATTR VkResult vkMergePipelineCaches(VkDevice device, VkPipelineCache dstCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1534 | return vulkan::api::MergePipelineCaches(device, dstCache, srcCacheCount, pSrcCaches); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1535 | } | 
|  | 1536 |  | 
|  | 1537 | __attribute__((visibility("default"))) | 
|  | 1538 | VKAPI_ATTR VkResult vkCreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkGraphicsPipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1539 | return vulkan::api::CreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1540 | } | 
|  | 1541 |  | 
|  | 1542 | __attribute__((visibility("default"))) | 
|  | 1543 | VKAPI_ATTR VkResult vkCreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t createInfoCount, const VkComputePipelineCreateInfo* pCreateInfos, const VkAllocationCallbacks* pAllocator, VkPipeline* pPipelines) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1544 | return vulkan::api::CreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1545 | } | 
|  | 1546 |  | 
|  | 1547 | __attribute__((visibility("default"))) | 
|  | 1548 | VKAPI_ATTR void vkDestroyPipeline(VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1549 | vulkan::api::DestroyPipeline(device, pipeline, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1550 | } | 
|  | 1551 |  | 
|  | 1552 | __attribute__((visibility("default"))) | 
|  | 1553 | VKAPI_ATTR VkResult vkCreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1554 | return vulkan::api::CreatePipelineLayout(device, pCreateInfo, pAllocator, pPipelineLayout); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1555 | } | 
|  | 1556 |  | 
|  | 1557 | __attribute__((visibility("default"))) | 
|  | 1558 | VKAPI_ATTR void vkDestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1559 | vulkan::api::DestroyPipelineLayout(device, pipelineLayout, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1560 | } | 
|  | 1561 |  | 
|  | 1562 | __attribute__((visibility("default"))) | 
|  | 1563 | VKAPI_ATTR VkResult vkCreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1564 | return vulkan::api::CreateSampler(device, pCreateInfo, pAllocator, pSampler); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1565 | } | 
|  | 1566 |  | 
|  | 1567 | __attribute__((visibility("default"))) | 
|  | 1568 | VKAPI_ATTR void vkDestroySampler(VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1569 | vulkan::api::DestroySampler(device, sampler, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1570 | } | 
|  | 1571 |  | 
|  | 1572 | __attribute__((visibility("default"))) | 
|  | 1573 | VKAPI_ATTR VkResult vkCreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1574 | return vulkan::api::CreateDescriptorSetLayout(device, pCreateInfo, pAllocator, pSetLayout); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1575 | } | 
|  | 1576 |  | 
|  | 1577 | __attribute__((visibility("default"))) | 
|  | 1578 | VKAPI_ATTR void vkDestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1579 | vulkan::api::DestroyDescriptorSetLayout(device, descriptorSetLayout, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1580 | } | 
|  | 1581 |  | 
|  | 1582 | __attribute__((visibility("default"))) | 
|  | 1583 | VKAPI_ATTR VkResult vkCreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1584 | return vulkan::api::CreateDescriptorPool(device, pCreateInfo, pAllocator, pDescriptorPool); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1585 | } | 
|  | 1586 |  | 
|  | 1587 | __attribute__((visibility("default"))) | 
|  | 1588 | VKAPI_ATTR void vkDestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1589 | vulkan::api::DestroyDescriptorPool(device, descriptorPool, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1590 | } | 
|  | 1591 |  | 
|  | 1592 | __attribute__((visibility("default"))) | 
|  | 1593 | VKAPI_ATTR VkResult vkResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1594 | return vulkan::api::ResetDescriptorPool(device, descriptorPool, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1595 | } | 
|  | 1596 |  | 
|  | 1597 | __attribute__((visibility("default"))) | 
|  | 1598 | VKAPI_ATTR VkResult vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo* pAllocateInfo, VkDescriptorSet* pDescriptorSets) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1599 | return vulkan::api::AllocateDescriptorSets(device, pAllocateInfo, pDescriptorSets); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1600 | } | 
|  | 1601 |  | 
|  | 1602 | __attribute__((visibility("default"))) | 
|  | 1603 | VKAPI_ATTR VkResult vkFreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1604 | return vulkan::api::FreeDescriptorSets(device, descriptorPool, descriptorSetCount, pDescriptorSets); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1605 | } | 
|  | 1606 |  | 
|  | 1607 | __attribute__((visibility("default"))) | 
|  | 1608 | VKAPI_ATTR void vkUpdateDescriptorSets(VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1609 | vulkan::api::UpdateDescriptorSets(device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1610 | } | 
|  | 1611 |  | 
|  | 1612 | __attribute__((visibility("default"))) | 
|  | 1613 | VKAPI_ATTR VkResult vkCreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1614 | return vulkan::api::CreateFramebuffer(device, pCreateInfo, pAllocator, pFramebuffer); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1615 | } | 
|  | 1616 |  | 
|  | 1617 | __attribute__((visibility("default"))) | 
|  | 1618 | VKAPI_ATTR void vkDestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1619 | vulkan::api::DestroyFramebuffer(device, framebuffer, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1620 | } | 
|  | 1621 |  | 
|  | 1622 | __attribute__((visibility("default"))) | 
|  | 1623 | VKAPI_ATTR VkResult vkCreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1624 | return vulkan::api::CreateRenderPass(device, pCreateInfo, pAllocator, pRenderPass); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1625 | } | 
|  | 1626 |  | 
|  | 1627 | __attribute__((visibility("default"))) | 
|  | 1628 | VKAPI_ATTR void vkDestroyRenderPass(VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1629 | vulkan::api::DestroyRenderPass(device, renderPass, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1630 | } | 
|  | 1631 |  | 
|  | 1632 | __attribute__((visibility("default"))) | 
|  | 1633 | VKAPI_ATTR void vkGetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1634 | vulkan::api::GetRenderAreaGranularity(device, renderPass, pGranularity); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1635 | } | 
|  | 1636 |  | 
|  | 1637 | __attribute__((visibility("default"))) | 
|  | 1638 | VKAPI_ATTR VkResult vkCreateCommandPool(VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1639 | return vulkan::api::CreateCommandPool(device, pCreateInfo, pAllocator, pCommandPool); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1640 | } | 
|  | 1641 |  | 
|  | 1642 | __attribute__((visibility("default"))) | 
|  | 1643 | VKAPI_ATTR void vkDestroyCommandPool(VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1644 | vulkan::api::DestroyCommandPool(device, commandPool, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1645 | } | 
|  | 1646 |  | 
|  | 1647 | __attribute__((visibility("default"))) | 
|  | 1648 | VKAPI_ATTR VkResult vkResetCommandPool(VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1649 | return vulkan::api::ResetCommandPool(device, commandPool, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1650 | } | 
|  | 1651 |  | 
|  | 1652 | __attribute__((visibility("default"))) | 
|  | 1653 | VKAPI_ATTR VkResult vkAllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1654 | return vulkan::api::AllocateCommandBuffers(device, pAllocateInfo, pCommandBuffers); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1655 | } | 
|  | 1656 |  | 
|  | 1657 | __attribute__((visibility("default"))) | 
|  | 1658 | VKAPI_ATTR void vkFreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1659 | vulkan::api::FreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1660 | } | 
|  | 1661 |  | 
|  | 1662 | __attribute__((visibility("default"))) | 
|  | 1663 | VKAPI_ATTR VkResult vkBeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1664 | return vulkan::api::BeginCommandBuffer(commandBuffer, pBeginInfo); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1665 | } | 
|  | 1666 |  | 
|  | 1667 | __attribute__((visibility("default"))) | 
|  | 1668 | VKAPI_ATTR VkResult vkEndCommandBuffer(VkCommandBuffer commandBuffer) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1669 | return vulkan::api::EndCommandBuffer(commandBuffer); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1670 | } | 
|  | 1671 |  | 
|  | 1672 | __attribute__((visibility("default"))) | 
|  | 1673 | VKAPI_ATTR VkResult vkResetCommandBuffer(VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1674 | return vulkan::api::ResetCommandBuffer(commandBuffer, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1675 | } | 
|  | 1676 |  | 
|  | 1677 | __attribute__((visibility("default"))) | 
|  | 1678 | VKAPI_ATTR void vkCmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1679 | vulkan::api::CmdBindPipeline(commandBuffer, pipelineBindPoint, pipeline); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1680 | } | 
|  | 1681 |  | 
|  | 1682 | __attribute__((visibility("default"))) | 
|  | 1683 | VKAPI_ATTR void vkCmdSetViewport(VkCommandBuffer commandBuffer, uint32_t firstViewport, uint32_t viewportCount, const VkViewport* pViewports) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1684 | vulkan::api::CmdSetViewport(commandBuffer, firstViewport, viewportCount, pViewports); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1685 | } | 
|  | 1686 |  | 
|  | 1687 | __attribute__((visibility("default"))) | 
|  | 1688 | VKAPI_ATTR void vkCmdSetScissor(VkCommandBuffer commandBuffer, uint32_t firstScissor, uint32_t scissorCount, const VkRect2D* pScissors) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1689 | vulkan::api::CmdSetScissor(commandBuffer, firstScissor, scissorCount, pScissors); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1690 | } | 
|  | 1691 |  | 
|  | 1692 | __attribute__((visibility("default"))) | 
|  | 1693 | VKAPI_ATTR void vkCmdSetLineWidth(VkCommandBuffer commandBuffer, float lineWidth) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1694 | vulkan::api::CmdSetLineWidth(commandBuffer, lineWidth); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1695 | } | 
|  | 1696 |  | 
|  | 1697 | __attribute__((visibility("default"))) | 
|  | 1698 | VKAPI_ATTR void vkCmdSetDepthBias(VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1699 | vulkan::api::CmdSetDepthBias(commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1700 | } | 
|  | 1701 |  | 
|  | 1702 | __attribute__((visibility("default"))) | 
|  | 1703 | VKAPI_ATTR void vkCmdSetBlendConstants(VkCommandBuffer commandBuffer, const float blendConstants[4]) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1704 | vulkan::api::CmdSetBlendConstants(commandBuffer, blendConstants); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1705 | } | 
|  | 1706 |  | 
|  | 1707 | __attribute__((visibility("default"))) | 
|  | 1708 | VKAPI_ATTR void vkCmdSetDepthBounds(VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1709 | vulkan::api::CmdSetDepthBounds(commandBuffer, minDepthBounds, maxDepthBounds); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1710 | } | 
|  | 1711 |  | 
|  | 1712 | __attribute__((visibility("default"))) | 
|  | 1713 | VKAPI_ATTR void vkCmdSetStencilCompareMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t compareMask) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1714 | vulkan::api::CmdSetStencilCompareMask(commandBuffer, faceMask, compareMask); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1715 | } | 
|  | 1716 |  | 
|  | 1717 | __attribute__((visibility("default"))) | 
|  | 1718 | VKAPI_ATTR void vkCmdSetStencilWriteMask(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t writeMask) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1719 | vulkan::api::CmdSetStencilWriteMask(commandBuffer, faceMask, writeMask); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1720 | } | 
|  | 1721 |  | 
|  | 1722 | __attribute__((visibility("default"))) | 
|  | 1723 | VKAPI_ATTR void vkCmdSetStencilReference(VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, uint32_t reference) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1724 | vulkan::api::CmdSetStencilReference(commandBuffer, faceMask, reference); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1725 | } | 
|  | 1726 |  | 
|  | 1727 | __attribute__((visibility("default"))) | 
|  | 1728 | VKAPI_ATTR void vkCmdBindDescriptorSets(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t descriptorSetCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1729 | vulkan::api::CmdBindDescriptorSets(commandBuffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1730 | } | 
|  | 1731 |  | 
|  | 1732 | __attribute__((visibility("default"))) | 
|  | 1733 | VKAPI_ATTR void vkCmdBindIndexBuffer(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1734 | vulkan::api::CmdBindIndexBuffer(commandBuffer, buffer, offset, indexType); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1735 | } | 
|  | 1736 |  | 
|  | 1737 | __attribute__((visibility("default"))) | 
|  | 1738 | VKAPI_ATTR void vkCmdBindVertexBuffers(VkCommandBuffer commandBuffer, uint32_t firstBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1739 | vulkan::api::CmdBindVertexBuffers(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1740 | } | 
|  | 1741 |  | 
|  | 1742 | __attribute__((visibility("default"))) | 
|  | 1743 | VKAPI_ATTR void vkCmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1744 | vulkan::api::CmdDraw(commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1745 | } | 
|  | 1746 |  | 
|  | 1747 | __attribute__((visibility("default"))) | 
|  | 1748 | VKAPI_ATTR void vkCmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1749 | vulkan::api::CmdDrawIndexed(commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1750 | } | 
|  | 1751 |  | 
|  | 1752 | __attribute__((visibility("default"))) | 
|  | 1753 | VKAPI_ATTR void vkCmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1754 | vulkan::api::CmdDrawIndirect(commandBuffer, buffer, offset, drawCount, stride); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1755 | } | 
|  | 1756 |  | 
|  | 1757 | __attribute__((visibility("default"))) | 
|  | 1758 | VKAPI_ATTR void vkCmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1759 | vulkan::api::CmdDrawIndexedIndirect(commandBuffer, buffer, offset, drawCount, stride); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1760 | } | 
|  | 1761 |  | 
|  | 1762 | __attribute__((visibility("default"))) | 
|  | 1763 | VKAPI_ATTR void vkCmdDispatch(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1764 | vulkan::api::CmdDispatch(commandBuffer, x, y, z); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1765 | } | 
|  | 1766 |  | 
|  | 1767 | __attribute__((visibility("default"))) | 
|  | 1768 | VKAPI_ATTR void vkCmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1769 | vulkan::api::CmdDispatchIndirect(commandBuffer, buffer, offset); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1770 | } | 
|  | 1771 |  | 
|  | 1772 | __attribute__((visibility("default"))) | 
|  | 1773 | VKAPI_ATTR void vkCmdCopyBuffer(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferCopy* pRegions) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1774 | vulkan::api::CmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1775 | } | 
|  | 1776 |  | 
|  | 1777 | __attribute__((visibility("default"))) | 
|  | 1778 | VKAPI_ATTR void vkCmdCopyImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageCopy* pRegions) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1779 | vulkan::api::CmdCopyImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1780 | } | 
|  | 1781 |  | 
|  | 1782 | __attribute__((visibility("default"))) | 
|  | 1783 | VKAPI_ATTR void vkCmdBlitImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkFilter filter) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1784 | vulkan::api::CmdBlitImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1785 | } | 
|  | 1786 |  | 
|  | 1787 | __attribute__((visibility("default"))) | 
|  | 1788 | VKAPI_ATTR void vkCmdCopyBufferToImage(VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1789 | vulkan::api::CmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1790 | } | 
|  | 1791 |  | 
|  | 1792 | __attribute__((visibility("default"))) | 
|  | 1793 | VKAPI_ATTR void vkCmdCopyImageToBuffer(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1794 | vulkan::api::CmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1795 | } | 
|  | 1796 |  | 
|  | 1797 | __attribute__((visibility("default"))) | 
| Jesse Hall | 56d386a | 2016-07-26 15:20:40 -0700 | [diff] [blame] | 1798 | VKAPI_ATTR void vkCmdUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1799 | vulkan::api::CmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, dataSize, pData); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1800 | } | 
|  | 1801 |  | 
|  | 1802 | __attribute__((visibility("default"))) | 
|  | 1803 | VKAPI_ATTR void vkCmdFillBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, uint32_t data) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1804 | vulkan::api::CmdFillBuffer(commandBuffer, dstBuffer, dstOffset, size, data); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1805 | } | 
|  | 1806 |  | 
|  | 1807 | __attribute__((visibility("default"))) | 
|  | 1808 | VKAPI_ATTR void vkCmdClearColorImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1809 | vulkan::api::CmdClearColorImage(commandBuffer, image, imageLayout, pColor, rangeCount, pRanges); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1810 | } | 
|  | 1811 |  | 
|  | 1812 | __attribute__((visibility("default"))) | 
|  | 1813 | VKAPI_ATTR void vkCmdClearDepthStencilImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1814 | vulkan::api::CmdClearDepthStencilImage(commandBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1815 | } | 
|  | 1816 |  | 
|  | 1817 | __attribute__((visibility("default"))) | 
|  | 1818 | VKAPI_ATTR void vkCmdClearAttachments(VkCommandBuffer commandBuffer, uint32_t attachmentCount, const VkClearAttachment* pAttachments, uint32_t rectCount, const VkClearRect* pRects) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1819 | vulkan::api::CmdClearAttachments(commandBuffer, attachmentCount, pAttachments, rectCount, pRects); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1820 | } | 
|  | 1821 |  | 
|  | 1822 | __attribute__((visibility("default"))) | 
|  | 1823 | VKAPI_ATTR void vkCmdResolveImage(VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, uint32_t regionCount, const VkImageResolve* pRegions) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1824 | vulkan::api::CmdResolveImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1825 | } | 
|  | 1826 |  | 
|  | 1827 | __attribute__((visibility("default"))) | 
|  | 1828 | VKAPI_ATTR void vkCmdSetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1829 | vulkan::api::CmdSetEvent(commandBuffer, event, stageMask); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1830 | } | 
|  | 1831 |  | 
|  | 1832 | __attribute__((visibility("default"))) | 
|  | 1833 | VKAPI_ATTR void vkCmdResetEvent(VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1834 | vulkan::api::CmdResetEvent(commandBuffer, event, stageMask); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1835 | } | 
|  | 1836 |  | 
|  | 1837 | __attribute__((visibility("default"))) | 
|  | 1838 | VKAPI_ATTR void vkCmdWaitEvents(VkCommandBuffer commandBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1839 | vulkan::api::CmdWaitEvents(commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1840 | } | 
|  | 1841 |  | 
|  | 1842 | __attribute__((visibility("default"))) | 
|  | 1843 | VKAPI_ATTR void vkCmdPipelineBarrier(VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, uint32_t memoryBarrierCount, const VkMemoryBarrier* pMemoryBarriers, uint32_t bufferMemoryBarrierCount, const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1844 | vulkan::api::CmdPipelineBarrier(commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1845 | } | 
|  | 1846 |  | 
|  | 1847 | __attribute__((visibility("default"))) | 
|  | 1848 | VKAPI_ATTR void vkCmdBeginQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query, VkQueryControlFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1849 | vulkan::api::CmdBeginQuery(commandBuffer, queryPool, query, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1850 | } | 
|  | 1851 |  | 
|  | 1852 | __attribute__((visibility("default"))) | 
|  | 1853 | VKAPI_ATTR void vkCmdEndQuery(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1854 | vulkan::api::CmdEndQuery(commandBuffer, queryPool, query); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1855 | } | 
|  | 1856 |  | 
|  | 1857 | __attribute__((visibility("default"))) | 
|  | 1858 | VKAPI_ATTR void vkCmdResetQueryPool(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1859 | vulkan::api::CmdResetQueryPool(commandBuffer, queryPool, firstQuery, queryCount); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1860 | } | 
|  | 1861 |  | 
|  | 1862 | __attribute__((visibility("default"))) | 
|  | 1863 | VKAPI_ATTR void vkCmdWriteTimestamp(VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, uint32_t query) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1864 | vulkan::api::CmdWriteTimestamp(commandBuffer, pipelineStage, queryPool, query); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1865 | } | 
|  | 1866 |  | 
|  | 1867 | __attribute__((visibility("default"))) | 
|  | 1868 | VKAPI_ATTR void vkCmdCopyQueryPoolResults(VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1869 | vulkan::api::CmdCopyQueryPoolResults(commandBuffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1870 | } | 
|  | 1871 |  | 
|  | 1872 | __attribute__((visibility("default"))) | 
|  | 1873 | VKAPI_ATTR void vkCmdPushConstants(VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size, const void* pValues) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1874 | vulkan::api::CmdPushConstants(commandBuffer, layout, stageFlags, offset, size, pValues); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1875 | } | 
|  | 1876 |  | 
|  | 1877 | __attribute__((visibility("default"))) | 
|  | 1878 | VKAPI_ATTR void vkCmdBeginRenderPass(VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1879 | vulkan::api::CmdBeginRenderPass(commandBuffer, pRenderPassBegin, contents); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1880 | } | 
|  | 1881 |  | 
|  | 1882 | __attribute__((visibility("default"))) | 
|  | 1883 | VKAPI_ATTR void vkCmdNextSubpass(VkCommandBuffer commandBuffer, VkSubpassContents contents) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1884 | vulkan::api::CmdNextSubpass(commandBuffer, contents); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1885 | } | 
|  | 1886 |  | 
|  | 1887 | __attribute__((visibility("default"))) | 
|  | 1888 | VKAPI_ATTR void vkCmdEndRenderPass(VkCommandBuffer commandBuffer) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1889 | vulkan::api::CmdEndRenderPass(commandBuffer); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1890 | } | 
|  | 1891 |  | 
|  | 1892 | __attribute__((visibility("default"))) | 
|  | 1893 | VKAPI_ATTR void vkCmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCount, const VkCommandBuffer* pCommandBuffers) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1894 | vulkan::api::CmdExecuteCommands(commandBuffer, commandBufferCount, pCommandBuffers); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1895 | } | 
|  | 1896 |  | 
|  | 1897 | __attribute__((visibility("default"))) | 
|  | 1898 | VKAPI_ATTR void vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1899 | vulkan::api::DestroySurfaceKHR(instance, surface, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1900 | } | 
|  | 1901 |  | 
|  | 1902 | __attribute__((visibility("default"))) | 
|  | 1903 | VKAPI_ATTR VkResult vkGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, VkSurfaceKHR surface, VkBool32* pSupported) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1904 | return vulkan::api::GetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, pSupported); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1905 | } | 
|  | 1906 |  | 
|  | 1907 | __attribute__((visibility("default"))) | 
|  | 1908 | VKAPI_ATTR VkResult vkGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1909 | return vulkan::api::GetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface, pSurfaceCapabilities); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1910 | } | 
|  | 1911 |  | 
|  | 1912 | __attribute__((visibility("default"))) | 
|  | 1913 | VKAPI_ATTR VkResult vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pSurfaceFormatCount, VkSurfaceFormatKHR* pSurfaceFormats) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1914 | return vulkan::api::GetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, pSurfaceFormatCount, pSurfaceFormats); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1915 | } | 
|  | 1916 |  | 
|  | 1917 | __attribute__((visibility("default"))) | 
|  | 1918 | VKAPI_ATTR VkResult vkGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t* pPresentModeCount, VkPresentModeKHR* pPresentModes) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1919 | return vulkan::api::GetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, pPresentModeCount, pPresentModes); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1920 | } | 
|  | 1921 |  | 
|  | 1922 | __attribute__((visibility("default"))) | 
|  | 1923 | VKAPI_ATTR VkResult vkCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSwapchainKHR* pSwapchain) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1924 | return vulkan::api::CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1925 | } | 
|  | 1926 |  | 
|  | 1927 | __attribute__((visibility("default"))) | 
|  | 1928 | VKAPI_ATTR void vkDestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1929 | vulkan::api::DestroySwapchainKHR(device, swapchain, pAllocator); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1930 | } | 
|  | 1931 |  | 
|  | 1932 | __attribute__((visibility("default"))) | 
|  | 1933 | VKAPI_ATTR VkResult vkGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR swapchain, uint32_t* pSwapchainImageCount, VkImage* pSwapchainImages) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1934 | return vulkan::api::GetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1935 | } | 
|  | 1936 |  | 
|  | 1937 | __attribute__((visibility("default"))) | 
|  | 1938 | VKAPI_ATTR VkResult vkAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1939 | return vulkan::api::AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1940 | } | 
|  | 1941 |  | 
|  | 1942 | __attribute__((visibility("default"))) | 
|  | 1943 | VKAPI_ATTR VkResult vkQueuePresentKHR(VkQueue queue, const VkPresentInfoKHR* pPresentInfo) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1944 | return vulkan::api::QueuePresentKHR(queue, pPresentInfo); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1945 | } | 
|  | 1946 |  | 
|  | 1947 | __attribute__((visibility("default"))) | 
|  | 1948 | VKAPI_ATTR VkResult vkCreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface) { | 
| Chia-I Wu | 3e654dc | 2016-05-20 16:15:06 +0800 | [diff] [blame] | 1949 | return vulkan::api::CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); | 
| Chia-I Wu | 0c20324 | 2016-03-15 13:44:51 +0800 | [diff] [blame] | 1950 | } | 
|  | 1951 |  | 
|  | 1952 | // clang-format on |