Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Vulkan |
| 3 | * |
| 4 | * Copyright (C) 2014 LunarG, Inc. |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 7 | * copy of this software and associated documentation files (the "Software"), |
| 8 | * to deal in the Software without restriction, including without limitation |
| 9 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 10 | * and/or sell copies of the Software, and to permit persons to whom the |
| 11 | * Software is furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included |
| 14 | * in all copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 22 | * DEALINGS IN THE SOFTWARE. |
| 23 | */ |
Courtney Goeltzenleuchter | 7f5aafc | 2015-07-05 11:28:29 -0600 | [diff] [blame] | 24 | #define _GNU_SOURCE |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 25 | #include <stdlib.h> |
| 26 | #include <string.h> |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 27 | |
Tobin Ehlis | b835d1b | 2015-07-03 10:34:49 -0600 | [diff] [blame] | 28 | #include "vk_loader_platform.h" |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 29 | #include "loader.h" |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 30 | #include "debug_report.h" |
Ian Elliott | d3ef02f | 2015-07-06 14:36:13 -0600 | [diff] [blame] | 31 | #include "wsi_swapchain.h" |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 32 | |
Tobin Ehlis | f37926f | 2015-05-13 11:57:18 -0600 | [diff] [blame] | 33 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 34 | /* Trampoline entrypoints */ |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 35 | LOADER_EXPORT VkResult VKAPI vkCreateInstance( |
Courtney Goeltzenleuchter | 57fb157 | 2015-06-08 15:13:50 -0600 | [diff] [blame] | 36 | const VkInstanceCreateInfo* pCreateInfo, |
| 37 | VkInstance* pInstance) |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 38 | { |
| 39 | struct loader_instance *ptr_instance = NULL; |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 40 | VkResult res = VK_ERROR_INITIALIZATION_FAILED; |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 41 | |
Jon Ashburn | 8810c5f | 2015-08-18 18:04:47 -0600 | [diff] [blame] | 42 | loader_platform_thread_once(&once_init, loader_initialize); |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 43 | |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 44 | if (pCreateInfo->pAllocCb |
| 45 | && pCreateInfo->pAllocCb->pfnAlloc |
| 46 | && pCreateInfo->pAllocCb->pfnFree) { |
| 47 | ptr_instance = (struct loader_instance *) pCreateInfo->pAllocCb->pfnAlloc( |
| 48 | pCreateInfo->pAllocCb->pUserData, |
| 49 | sizeof(struct loader_instance), |
| 50 | sizeof(VkInstance), |
| 51 | VK_SYSTEM_ALLOC_TYPE_API_OBJECT); |
| 52 | } else { |
| 53 | ptr_instance = (struct loader_instance *) malloc(sizeof(struct loader_instance)); |
| 54 | } |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 55 | if (ptr_instance == NULL) { |
| 56 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 57 | } |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 58 | |
Jon Ashburn | 87d6aa9 | 2015-08-28 15:19:27 -0600 | [diff] [blame] | 59 | tls_instance = ptr_instance; |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 60 | loader_platform_thread_lock_mutex(&loader_lock); |
Jon Ashburn | b82c185 | 2015-08-11 14:49:54 -0600 | [diff] [blame] | 61 | memset(ptr_instance, 0, sizeof(struct loader_instance)); |
Jon Ashburn | 07daee7 | 2015-05-21 18:13:33 -0600 | [diff] [blame] | 62 | |
Courtney Goeltzenleuchter | 7f5aafc | 2015-07-05 11:28:29 -0600 | [diff] [blame] | 63 | if (pCreateInfo->pAllocCb |
| 64 | && pCreateInfo->pAllocCb->pfnAlloc |
| 65 | && pCreateInfo->pAllocCb->pfnFree) { |
| 66 | ptr_instance->alloc_callbacks.pUserData = pCreateInfo->pAllocCb->pUserData; |
| 67 | ptr_instance->alloc_callbacks.pfnAlloc = pCreateInfo->pAllocCb->pfnAlloc; |
| 68 | ptr_instance->alloc_callbacks.pfnFree = pCreateInfo->pAllocCb->pfnFree; |
| 69 | } |
| 70 | |
Jon Ashburn | 3d00233 | 2015-08-20 16:35:30 -0600 | [diff] [blame] | 71 | /* Due to implicit layers need to get layer list even if |
| 72 | * layerCount == 0 and VK_INSTANCE_LAYERS is unset. For now always |
| 73 | * get layer list (both instance and device) via loader_layer_scan(). */ |
| 74 | memset(&ptr_instance->instance_layer_list, 0, sizeof(ptr_instance->instance_layer_list)); |
| 75 | memset(&ptr_instance->device_layer_list, 0, sizeof(ptr_instance->device_layer_list)); |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 76 | loader_layer_scan(ptr_instance, |
| 77 | |
| 78 | |
| 79 | &ptr_instance->instance_layer_list, |
| 80 | &ptr_instance->device_layer_list); |
Jon Ashburn | 3d00233 | 2015-08-20 16:35:30 -0600 | [diff] [blame] | 81 | |
| 82 | /* validate the app requested layers to be enabled */ |
| 83 | if (pCreateInfo->layerCount > 0) { |
| 84 | res = loader_validate_layers(pCreateInfo->layerCount, |
| 85 | pCreateInfo->ppEnabledLayerNames, |
| 86 | &ptr_instance->instance_layer_list); |
| 87 | if (res != VK_SUCCESS) { |
| 88 | return res; |
| 89 | } |
| 90 | } |
| 91 | |
Jon Ashburn | 8810c5f | 2015-08-18 18:04:47 -0600 | [diff] [blame] | 92 | /* Scan/discover all ICD libraries */ |
| 93 | memset(&ptr_instance->icd_libs, 0, sizeof(ptr_instance->icd_libs)); |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 94 | loader_icd_scan(ptr_instance, &ptr_instance->icd_libs); |
Jon Ashburn | 8810c5f | 2015-08-18 18:04:47 -0600 | [diff] [blame] | 95 | |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 96 | /* get extensions from all ICD's, merge so no duplicates, then validate */ |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 97 | loader_get_icd_loader_instance_extensions(ptr_instance, |
| 98 | &ptr_instance->icd_libs, |
| 99 | &ptr_instance->ext_list); |
| 100 | res = loader_validate_instance_extensions(&ptr_instance->ext_list, |
| 101 | &ptr_instance->instance_layer_list, |
| 102 | pCreateInfo); |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 103 | if (res != VK_SUCCESS) { |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 104 | loader_delete_layer_properties(ptr_instance, |
| 105 | &ptr_instance->device_layer_list); |
| 106 | loader_delete_layer_properties(ptr_instance, |
| 107 | &ptr_instance->instance_layer_list); |
| 108 | loader_scanned_icd_clear(ptr_instance, &ptr_instance->icd_libs); |
| 109 | loader_destroy_ext_list(ptr_instance, &ptr_instance->ext_list); |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 110 | loader_platform_thread_unlock_mutex(&loader_lock); |
| 111 | loader_heap_free(ptr_instance, ptr_instance); |
| 112 | return res; |
| 113 | } |
| 114 | |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 115 | ptr_instance->disp = loader_heap_alloc( |
| 116 | ptr_instance, |
| 117 | sizeof(VkLayerInstanceDispatchTable), |
| 118 | VK_SYSTEM_ALLOC_TYPE_INTERNAL); |
| 119 | if (ptr_instance->disp == NULL) { |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 120 | loader_delete_layer_properties(ptr_instance, |
| 121 | &ptr_instance->device_layer_list); |
| 122 | loader_delete_layer_properties(ptr_instance, |
| 123 | &ptr_instance->instance_layer_list); |
| 124 | loader_scanned_icd_clear(ptr_instance, |
| 125 | &ptr_instance->icd_libs); |
| 126 | loader_destroy_ext_list(ptr_instance, |
| 127 | &ptr_instance->ext_list); |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 128 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 129 | loader_heap_free(ptr_instance, ptr_instance); |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 130 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 131 | } |
| 132 | memcpy(ptr_instance->disp, &instance_disp, sizeof(instance_disp)); |
| 133 | ptr_instance->next = loader.instances; |
| 134 | loader.instances = ptr_instance; |
| 135 | |
Jon Ashburn | b82c185 | 2015-08-11 14:49:54 -0600 | [diff] [blame] | 136 | /* activate any layers on instance chain */ |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 137 | res = loader_enable_instance_layers(ptr_instance, |
| 138 | pCreateInfo, |
| 139 | &ptr_instance->instance_layer_list); |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 140 | if (res != VK_SUCCESS) { |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 141 | loader_delete_layer_properties(ptr_instance, |
| 142 | &ptr_instance->device_layer_list); |
| 143 | loader_delete_layer_properties(ptr_instance, |
| 144 | &ptr_instance->instance_layer_list); |
| 145 | loader_scanned_icd_clear(ptr_instance, |
| 146 | &ptr_instance->icd_libs); |
| 147 | loader_destroy_ext_list(ptr_instance, |
| 148 | &ptr_instance->ext_list); |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 149 | loader.instances = ptr_instance->next; |
| 150 | loader_platform_thread_unlock_mutex(&loader_lock); |
Courtney Goeltzenleuchter | 8109510 | 2015-07-06 09:08:37 -0600 | [diff] [blame] | 151 | loader_heap_free(ptr_instance, ptr_instance->disp); |
| 152 | loader_heap_free(ptr_instance, ptr_instance); |
| 153 | return res; |
| 154 | } |
Jon Ashburn | b82c185 | 2015-08-11 14:49:54 -0600 | [diff] [blame] | 155 | loader_activate_instance_layers(ptr_instance); |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 156 | |
Ian Elliott | d3ef02f | 2015-07-06 14:36:13 -0600 | [diff] [blame] | 157 | wsi_swapchain_create_instance(ptr_instance, pCreateInfo); |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 158 | debug_report_create_instance(ptr_instance, pCreateInfo); |
Jon Ashburn | 07daee7 | 2015-05-21 18:13:33 -0600 | [diff] [blame] | 159 | |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 160 | |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 161 | *pInstance = (VkInstance) ptr_instance; |
Jon Ashburn | eed0c00 | 2015-05-21 17:42:17 -0600 | [diff] [blame] | 162 | |
| 163 | res = ptr_instance->disp->CreateInstance(pCreateInfo, pInstance); |
| 164 | |
Courtney Goeltzenleuchter | d971b61 | 2015-06-17 20:51:59 -0600 | [diff] [blame] | 165 | /* |
| 166 | * Finally have the layers in place and everyone has seen |
| 167 | * the CreateInstance command go by. This allows the layer's |
| 168 | * GetInstanceProcAddr functions to return valid extension functions |
| 169 | * if enabled. |
| 170 | */ |
| 171 | loader_activate_instance_layer_extensions(ptr_instance); |
| 172 | |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 173 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 174 | return res; |
| 175 | } |
| 176 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 177 | LOADER_EXPORT void VKAPI vkDestroyInstance( |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 178 | VkInstance instance) |
| 179 | { |
| 180 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | e0e6457 | 2015-09-30 12:56:42 -0600 | [diff] [blame] | 181 | struct loader_instance *ptr_instance = NULL; |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 182 | disp = loader_get_instance_dispatch(instance); |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 183 | |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 184 | loader_platform_thread_lock_mutex(&loader_lock); |
| 185 | |
Jon Ashburn | e0e6457 | 2015-09-30 12:56:42 -0600 | [diff] [blame] | 186 | ptr_instance = loader_get_instance(instance); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 187 | disp->DestroyInstance(instance); |
Courtney Goeltzenleuchter | f579fa6 | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 188 | |
Courtney Goeltzenleuchter | 7d0023c | 2015-06-08 15:09:22 -0600 | [diff] [blame] | 189 | loader_deactivate_instance_layers(ptr_instance); |
Jon Ashburn | eacfa3a | 2015-08-14 12:51:47 -0600 | [diff] [blame] | 190 | loader_heap_free(ptr_instance, ptr_instance->disp); |
| 191 | loader_heap_free(ptr_instance, ptr_instance); |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 192 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 193 | } |
Jon Ashburn | 95a77ba | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 194 | |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 195 | LOADER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( |
| 196 | VkInstance instance, |
| 197 | uint32_t* pPhysicalDeviceCount, |
| 198 | VkPhysicalDevice* pPhysicalDevices) |
| 199 | { |
| 200 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 201 | VkResult res; |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 202 | disp = loader_get_instance_dispatch(instance); |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 203 | |
| 204 | loader_platform_thread_lock_mutex(&loader_lock); |
| 205 | res = disp->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 206 | pPhysicalDevices); |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 207 | loader_platform_thread_unlock_mutex(&loader_lock); |
| 208 | return res; |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 209 | } |
| 210 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFeatures( |
| 217 | VkPhysicalDevice gpu, |
| 218 | VkPhysicalDeviceFeatures *pFeatures) |
| 219 | { |
| 220 | const VkLayerInstanceDispatchTable *disp; |
| 221 | VkResult res; |
| 222 | |
| 223 | disp = loader_get_instance_dispatch(gpu); |
| 224 | res = disp->GetPhysicalDeviceFeatures(gpu, pFeatures); |
| 225 | return res; |
| 226 | } |
| 227 | |
| 228 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceFormatProperties( |
| 229 | VkPhysicalDevice gpu, |
| 230 | VkFormat format, |
| 231 | VkFormatProperties *pFormatInfo) |
| 232 | { |
| 233 | const VkLayerInstanceDispatchTable *disp; |
| 234 | VkResult res; |
| 235 | |
| 236 | disp = loader_get_instance_dispatch(gpu); |
| 237 | res = disp->GetPhysicalDeviceFormatProperties(gpu, format, pFormatInfo); |
| 238 | return res; |
| 239 | } |
| 240 | |
Courtney Goeltzenleuchter | a22097a | 2015-09-10 13:44:12 -0600 | [diff] [blame] | 241 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties) |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 242 | { |
| 243 | const VkLayerInstanceDispatchTable *disp; |
| 244 | VkResult res; |
| 245 | |
| 246 | disp = loader_get_instance_dispatch(physicalDevice); |
Courtney Goeltzenleuchter | a22097a | 2015-09-10 13:44:12 -0600 | [diff] [blame] | 247 | res = disp->GetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties); |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 248 | return res; |
| 249 | } |
| 250 | |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 251 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceProperties( |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 252 | VkPhysicalDevice gpu, |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 253 | VkPhysicalDeviceProperties* pProperties) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 254 | { |
Jon Ashburn | 95a77ba | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 255 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 256 | VkResult res; |
| 257 | |
Jon Ashburn | 95a77ba | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 258 | disp = loader_get_instance_dispatch(gpu); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 259 | res = disp->GetPhysicalDeviceProperties(gpu, pProperties); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 260 | return res; |
| 261 | } |
| 262 | |
Cody Northrop | d080288 | 2015-08-03 17:04:53 -0600 | [diff] [blame] | 263 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueFamilyProperties( |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 264 | VkPhysicalDevice gpu, |
Cody Northrop | d080288 | 2015-08-03 17:04:53 -0600 | [diff] [blame] | 265 | uint32_t* pCount, |
| 266 | VkQueueFamilyProperties* pQueueProperties) |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 267 | { |
| 268 | const VkLayerInstanceDispatchTable *disp; |
| 269 | VkResult res; |
| 270 | |
| 271 | disp = loader_get_instance_dispatch(gpu); |
Cody Northrop | d080288 | 2015-08-03 17:04:53 -0600 | [diff] [blame] | 272 | res = disp->GetPhysicalDeviceQueueFamilyProperties(gpu, pCount, pQueueProperties); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 273 | return res; |
| 274 | } |
| 275 | |
| 276 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceMemoryProperties( |
| 277 | VkPhysicalDevice gpu, |
| 278 | VkPhysicalDeviceMemoryProperties* pMemoryProperties) |
| 279 | { |
| 280 | const VkLayerInstanceDispatchTable *disp; |
| 281 | VkResult res; |
| 282 | |
| 283 | disp = loader_get_instance_dispatch(gpu); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 284 | res = disp->GetPhysicalDeviceMemoryProperties(gpu, pMemoryProperties); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 285 | return res; |
| 286 | } |
| 287 | |
Jon Ashburn | 95a77ba | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 288 | LOADER_EXPORT VkResult VKAPI vkCreateDevice( |
Courtney Goeltzenleuchter | ca173b8 | 2015-06-25 18:01:43 -0600 | [diff] [blame] | 289 | VkPhysicalDevice gpu, |
| 290 | const VkDeviceCreateInfo* pCreateInfo, |
| 291 | VkDevice* pDevice) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 292 | { |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 293 | VkResult res; |
| 294 | |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 295 | loader_platform_thread_lock_mutex(&loader_lock); |
Courtney Goeltzenleuchter | ca173b8 | 2015-06-25 18:01:43 -0600 | [diff] [blame] | 296 | |
| 297 | res = loader_CreateDevice(gpu, pCreateInfo, pDevice); |
| 298 | |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 299 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 300 | return res; |
| 301 | } |
| 302 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 303 | LOADER_EXPORT void VKAPI vkDestroyDevice(VkDevice device) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 304 | { |
| 305 | const VkLayerDispatchTable *disp; |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 306 | struct loader_device *dev; |
| 307 | struct loader_icd *icd = loader_get_icd_and_device(device, &dev); |
| 308 | const struct loader_instance *inst = icd->this_instance; |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 309 | disp = loader_get_dispatch(device); |
| 310 | |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 311 | loader_platform_thread_lock_mutex(&loader_lock); |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 312 | disp->DestroyDevice(device); |
Jon Ashburn | e39a4f8 | 2015-08-28 13:38:21 -0600 | [diff] [blame] | 313 | loader_remove_logical_device(inst, device); |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 314 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 315 | } |
| 316 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 317 | LOADER_EXPORT VkResult VKAPI vkEnumerateDeviceExtensionProperties( |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 318 | VkPhysicalDevice physicalDevice, |
| 319 | const char* pLayerName, |
| 320 | uint32_t* pCount, |
| 321 | VkExtensionProperties* pProperties) |
Jon Ashburn | 6301a0f | 2015-05-29 13:15:39 -0600 | [diff] [blame] | 322 | { |
| 323 | VkResult res; |
| 324 | |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 325 | loader_platform_thread_lock_mutex(&loader_lock); |
Jon Ashburn | b2ef137 | 2015-07-16 17:19:31 -0600 | [diff] [blame] | 326 | //TODO convert over to using instance chain dispatch |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 327 | res = loader_EnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pCount, pProperties); |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 328 | loader_platform_thread_unlock_mutex(&loader_lock); |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 329 | return res; |
| 330 | } |
| 331 | |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 332 | LOADER_EXPORT VkResult VKAPI vkEnumerateDeviceLayerProperties( |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 333 | VkPhysicalDevice physicalDevice, |
| 334 | uint32_t* pCount, |
| 335 | VkLayerProperties* pProperties) |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 336 | { |
| 337 | VkResult res; |
| 338 | |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 339 | loader_platform_thread_lock_mutex(&loader_lock); |
Jon Ashburn | b2ef137 | 2015-07-16 17:19:31 -0600 | [diff] [blame] | 340 | //TODO convert over to using instance chain dispatch |
Courtney Goeltzenleuchter | 35985f6 | 2015-09-14 17:22:16 -0600 | [diff] [blame] | 341 | res = loader_EnumerateDeviceLayerProperties(physicalDevice, pCount, pProperties); |
Courtney Goeltzenleuchter | 110fdf9 | 2015-06-29 15:39:26 -0600 | [diff] [blame] | 342 | loader_platform_thread_unlock_mutex(&loader_lock); |
Jon Ashburn | 27cd584 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 343 | return res; |
| 344 | } |
| 345 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 346 | LOADER_EXPORT VkResult VKAPI vkGetDeviceQueue(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue) |
| 347 | { |
| 348 | const VkLayerDispatchTable *disp; |
| 349 | VkResult res; |
| 350 | |
| 351 | disp = loader_get_dispatch(device); |
| 352 | |
| 353 | res = disp->GetDeviceQueue(device, queueNodeIndex, queueIndex, pQueue); |
| 354 | if (res == VK_SUCCESS) { |
| 355 | loader_set_dispatch(*pQueue, disp); |
| 356 | } |
| 357 | |
| 358 | return res; |
| 359 | } |
| 360 | |
| 361 | LOADER_EXPORT VkResult VKAPI vkQueueSubmit(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence) |
| 362 | { |
| 363 | const VkLayerDispatchTable *disp; |
| 364 | |
| 365 | disp = loader_get_dispatch(queue); |
| 366 | |
| 367 | return disp->QueueSubmit(queue, cmdBufferCount, pCmdBuffers, fence); |
| 368 | } |
| 369 | |
| 370 | LOADER_EXPORT VkResult VKAPI vkQueueWaitIdle(VkQueue queue) |
| 371 | { |
| 372 | const VkLayerDispatchTable *disp; |
| 373 | |
| 374 | disp = loader_get_dispatch(queue); |
| 375 | |
| 376 | return disp->QueueWaitIdle(queue); |
| 377 | } |
| 378 | |
| 379 | LOADER_EXPORT VkResult VKAPI vkDeviceWaitIdle(VkDevice device) |
| 380 | { |
| 381 | const VkLayerDispatchTable *disp; |
| 382 | |
| 383 | disp = loader_get_dispatch(device); |
| 384 | |
| 385 | return disp->DeviceWaitIdle(device); |
| 386 | } |
| 387 | |
| 388 | LOADER_EXPORT VkResult VKAPI vkAllocMemory(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem) |
| 389 | { |
| 390 | const VkLayerDispatchTable *disp; |
| 391 | |
| 392 | disp = loader_get_dispatch(device); |
| 393 | |
| 394 | return disp->AllocMemory(device, pAllocInfo, pMem); |
| 395 | } |
| 396 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 397 | LOADER_EXPORT void VKAPI vkFreeMemory(VkDevice device, VkDeviceMemory mem) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 398 | { |
| 399 | const VkLayerDispatchTable *disp; |
| 400 | |
| 401 | disp = loader_get_dispatch(device); |
| 402 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 403 | disp->FreeMemory(device, mem); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 404 | } |
| 405 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 406 | LOADER_EXPORT VkResult VKAPI vkMapMemory(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkFlags flags, void** ppData) |
| 407 | { |
| 408 | const VkLayerDispatchTable *disp; |
| 409 | |
| 410 | disp = loader_get_dispatch(device); |
| 411 | |
| 412 | return disp->MapMemory(device, mem, offset, size, flags, ppData); |
| 413 | } |
| 414 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 415 | LOADER_EXPORT void VKAPI vkUnmapMemory(VkDevice device, VkDeviceMemory mem) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 416 | { |
| 417 | const VkLayerDispatchTable *disp; |
| 418 | |
| 419 | disp = loader_get_dispatch(device); |
| 420 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 421 | disp->UnmapMemory(device, mem); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | LOADER_EXPORT VkResult VKAPI vkFlushMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) |
| 425 | { |
| 426 | const VkLayerDispatchTable *disp; |
| 427 | |
| 428 | disp = loader_get_dispatch(device); |
| 429 | |
| 430 | return disp->FlushMappedMemoryRanges(device, memRangeCount, pMemRanges); |
| 431 | } |
| 432 | |
| 433 | LOADER_EXPORT VkResult VKAPI vkInvalidateMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) |
| 434 | { |
| 435 | const VkLayerDispatchTable *disp; |
| 436 | |
| 437 | disp = loader_get_dispatch(device); |
| 438 | |
| 439 | return disp->InvalidateMappedMemoryRanges(device, memRangeCount, pMemRanges); |
| 440 | } |
| 441 | |
Courtney Goeltzenleuchter | fb71f22 | 2015-07-09 21:57:28 -0600 | [diff] [blame] | 442 | LOADER_EXPORT VkResult VKAPI vkGetDeviceMemoryCommitment(VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes) |
| 443 | { |
| 444 | const VkLayerDispatchTable *disp; |
| 445 | |
| 446 | disp = loader_get_dispatch(device); |
| 447 | |
| 448 | return disp->GetDeviceMemoryCommitment(device, memory, pCommittedMemoryInBytes); |
| 449 | } |
| 450 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 451 | LOADER_EXPORT VkResult VKAPI vkBindBufferMemory(VkDevice device, VkBuffer buffer, VkDeviceMemory mem, VkDeviceSize offset) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 452 | { |
| 453 | const VkLayerDispatchTable *disp; |
| 454 | |
Mark Lobodzinski | 942b172 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 455 | disp = loader_get_dispatch(device); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 456 | |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 457 | return disp->BindBufferMemory(device, buffer, mem, offset); |
| 458 | } |
| 459 | |
| 460 | LOADER_EXPORT VkResult VKAPI vkBindImageMemory(VkDevice device, VkImage image, VkDeviceMemory mem, VkDeviceSize offset) |
| 461 | { |
| 462 | const VkLayerDispatchTable *disp; |
| 463 | |
| 464 | disp = loader_get_dispatch(device); |
| 465 | |
| 466 | return disp->BindImageMemory(device, image, mem, offset); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 467 | } |
| 468 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 469 | LOADER_EXPORT VkResult VKAPI vkGetBufferMemoryRequirements(VkDevice device, VkBuffer buffer, VkMemoryRequirements* pMemoryRequirements) |
| 470 | { |
| 471 | const VkLayerDispatchTable *disp; |
| 472 | |
| 473 | disp = loader_get_dispatch(device); |
| 474 | |
| 475 | return disp->GetBufferMemoryRequirements(device, buffer, pMemoryRequirements); |
| 476 | } |
| 477 | |
| 478 | LOADER_EXPORT VkResult VKAPI vkGetImageMemoryRequirements(VkDevice device, VkImage image, VkMemoryRequirements* pMemoryRequirements) |
| 479 | { |
| 480 | const VkLayerDispatchTable *disp; |
| 481 | |
| 482 | disp = loader_get_dispatch(device); |
| 483 | |
| 484 | return disp->GetImageMemoryRequirements(device, image, pMemoryRequirements); |
| 485 | } |
| 486 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 487 | LOADER_EXPORT VkResult VKAPI vkGetImageSparseMemoryRequirements(VkDevice device, VkImage image, uint32_t* pNumRequirements, VkSparseImageMemoryRequirements* pSparseMemoryRequirements) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 488 | { |
| 489 | const VkLayerDispatchTable *disp; |
| 490 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 491 | disp = loader_get_dispatch(device); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 492 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 493 | return disp->GetImageSparseMemoryRequirements(device, image, pNumRequirements, pSparseMemoryRequirements); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 494 | } |
| 495 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 496 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, uint32_t samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t* pNumProperties, VkSparseImageFormatProperties* pProperties) |
| 497 | { |
| 498 | const VkLayerInstanceDispatchTable *disp; |
| 499 | |
| 500 | disp = loader_get_instance_dispatch(physicalDevice); |
| 501 | |
| 502 | return disp->GetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pNumProperties, pProperties); |
| 503 | } |
| 504 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 505 | LOADER_EXPORT VkResult VKAPI vkQueueBindSparseBufferMemory(VkQueue queue, VkBuffer buffer, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo) |
| 506 | { |
| 507 | const VkLayerDispatchTable *disp; |
| 508 | |
| 509 | disp = loader_get_dispatch(queue); |
| 510 | |
| 511 | return disp->QueueBindSparseBufferMemory(queue, buffer, numBindings, pBindInfo); |
| 512 | } |
| 513 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 514 | LOADER_EXPORT VkResult VKAPI vkQueueBindSparseImageOpaqueMemory(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseMemoryBindInfo* pBindInfo) |
| 515 | { |
| 516 | const VkLayerDispatchTable *disp; |
| 517 | |
| 518 | disp = loader_get_dispatch(queue); |
| 519 | |
| 520 | return disp->QueueBindSparseImageOpaqueMemory(queue, image, numBindings, pBindInfo); |
| 521 | } |
| 522 | |
Mark Lobodzinski | 16e8bef | 2015-07-03 15:58:09 -0600 | [diff] [blame] | 523 | LOADER_EXPORT VkResult VKAPI vkQueueBindSparseImageMemory(VkQueue queue, VkImage image, uint32_t numBindings, const VkSparseImageMemoryBindInfo* pBindInfo) |
| 524 | { |
| 525 | const VkLayerDispatchTable *disp; |
| 526 | |
| 527 | disp = loader_get_dispatch(queue); |
| 528 | |
| 529 | return disp->QueueBindSparseImageMemory(queue, image, numBindings, pBindInfo); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 530 | } |
| 531 | |
| 532 | LOADER_EXPORT VkResult VKAPI vkCreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence) |
| 533 | { |
| 534 | const VkLayerDispatchTable *disp; |
| 535 | |
| 536 | disp = loader_get_dispatch(device); |
| 537 | |
| 538 | return disp->CreateFence(device, pCreateInfo, pFence); |
| 539 | } |
| 540 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 541 | LOADER_EXPORT void VKAPI vkDestroyFence(VkDevice device, VkFence fence) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 542 | { |
| 543 | const VkLayerDispatchTable *disp; |
| 544 | |
| 545 | disp = loader_get_dispatch(device); |
| 546 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 547 | disp->DestroyFence(device, fence); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 548 | } |
| 549 | |
Courtney Goeltzenleuchter | 2bf8f90 | 2015-06-18 17:28:20 -0600 | [diff] [blame] | 550 | LOADER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 551 | { |
| 552 | const VkLayerDispatchTable *disp; |
| 553 | |
| 554 | disp = loader_get_dispatch(device); |
| 555 | |
| 556 | return disp->ResetFences(device, fenceCount, pFences); |
| 557 | } |
| 558 | |
| 559 | LOADER_EXPORT VkResult VKAPI vkGetFenceStatus(VkDevice device, VkFence fence) |
| 560 | { |
| 561 | const VkLayerDispatchTable *disp; |
| 562 | |
| 563 | disp = loader_get_dispatch(device); |
| 564 | |
| 565 | return disp->GetFenceStatus(device, fence); |
| 566 | } |
| 567 | |
Courtney Goeltzenleuchter | cd2a099 | 2015-07-09 11:44:38 -0600 | [diff] [blame] | 568 | LOADER_EXPORT VkResult VKAPI vkWaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, VkBool32 waitAll, uint64_t timeout) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 569 | { |
| 570 | const VkLayerDispatchTable *disp; |
| 571 | |
| 572 | disp = loader_get_dispatch(device); |
| 573 | |
| 574 | return disp->WaitForFences(device, fenceCount, pFences, waitAll, timeout); |
| 575 | } |
| 576 | |
| 577 | LOADER_EXPORT VkResult VKAPI vkCreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore) |
| 578 | { |
| 579 | const VkLayerDispatchTable *disp; |
| 580 | |
| 581 | disp = loader_get_dispatch(device); |
| 582 | |
| 583 | return disp->CreateSemaphore(device, pCreateInfo, pSemaphore); |
| 584 | } |
| 585 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 586 | LOADER_EXPORT void VKAPI vkDestroySemaphore(VkDevice device, VkSemaphore semaphore) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 587 | { |
| 588 | const VkLayerDispatchTable *disp; |
| 589 | |
| 590 | disp = loader_get_dispatch(device); |
| 591 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 592 | disp->DestroySemaphore(device, semaphore); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 593 | } |
| 594 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 595 | LOADER_EXPORT VkResult VKAPI vkQueueSignalSemaphore(VkQueue queue, VkSemaphore semaphore) |
| 596 | { |
| 597 | const VkLayerDispatchTable *disp; |
| 598 | |
| 599 | disp = loader_get_dispatch(queue); |
| 600 | |
| 601 | return disp->QueueSignalSemaphore(queue, semaphore); |
| 602 | } |
| 603 | |
| 604 | LOADER_EXPORT VkResult VKAPI vkQueueWaitSemaphore(VkQueue queue, VkSemaphore semaphore) |
| 605 | { |
| 606 | const VkLayerDispatchTable *disp; |
| 607 | |
| 608 | disp = loader_get_dispatch(queue); |
| 609 | |
| 610 | return disp->QueueWaitSemaphore(queue, semaphore); |
| 611 | } |
| 612 | |
| 613 | LOADER_EXPORT VkResult VKAPI vkCreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent) |
| 614 | { |
| 615 | const VkLayerDispatchTable *disp; |
| 616 | |
| 617 | disp = loader_get_dispatch(device); |
| 618 | |
| 619 | return disp->CreateEvent(device, pCreateInfo, pEvent); |
| 620 | } |
| 621 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 622 | LOADER_EXPORT void VKAPI vkDestroyEvent(VkDevice device, VkEvent event) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 623 | { |
| 624 | const VkLayerDispatchTable *disp; |
| 625 | |
| 626 | disp = loader_get_dispatch(device); |
| 627 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 628 | disp->DestroyEvent(device, event); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 629 | } |
| 630 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 631 | LOADER_EXPORT VkResult VKAPI vkGetEventStatus(VkDevice device, VkEvent event) |
| 632 | { |
| 633 | const VkLayerDispatchTable *disp; |
| 634 | |
| 635 | disp = loader_get_dispatch(device); |
| 636 | |
| 637 | return disp->GetEventStatus(device, event); |
| 638 | } |
| 639 | |
| 640 | LOADER_EXPORT VkResult VKAPI vkSetEvent(VkDevice device, VkEvent event) |
| 641 | { |
| 642 | const VkLayerDispatchTable *disp; |
| 643 | |
| 644 | disp = loader_get_dispatch(device); |
| 645 | |
| 646 | return disp->SetEvent(device, event); |
| 647 | } |
| 648 | |
| 649 | LOADER_EXPORT VkResult VKAPI vkResetEvent(VkDevice device, VkEvent event) |
| 650 | { |
| 651 | const VkLayerDispatchTable *disp; |
| 652 | |
| 653 | disp = loader_get_dispatch(device); |
| 654 | |
| 655 | return disp->ResetEvent(device, event); |
| 656 | } |
| 657 | |
| 658 | LOADER_EXPORT VkResult VKAPI vkCreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool) |
| 659 | { |
| 660 | const VkLayerDispatchTable *disp; |
| 661 | |
| 662 | disp = loader_get_dispatch(device); |
| 663 | |
| 664 | return disp->CreateQueryPool(device, pCreateInfo, pQueryPool); |
| 665 | } |
| 666 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 667 | LOADER_EXPORT void VKAPI vkDestroyQueryPool(VkDevice device, VkQueryPool queryPool) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 668 | { |
| 669 | const VkLayerDispatchTable *disp; |
| 670 | |
| 671 | disp = loader_get_dispatch(device); |
| 672 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 673 | disp->DestroyQueryPool(device, queryPool); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 674 | } |
| 675 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 676 | LOADER_EXPORT VkResult VKAPI vkGetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData, VkQueryResultFlags flags) |
| 677 | { |
| 678 | const VkLayerDispatchTable *disp; |
| 679 | |
| 680 | disp = loader_get_dispatch(device); |
| 681 | |
| 682 | return disp->GetQueryPoolResults(device, queryPool, startQuery, queryCount, pDataSize, pData, flags); |
| 683 | } |
| 684 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 685 | LOADER_EXPORT VkResult VKAPI vkCreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer) |
| 686 | { |
| 687 | const VkLayerDispatchTable *disp; |
| 688 | |
| 689 | disp = loader_get_dispatch(device); |
| 690 | |
| 691 | return disp->CreateBuffer(device, pCreateInfo, pBuffer); |
| 692 | } |
| 693 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 694 | LOADER_EXPORT void VKAPI vkDestroyBuffer(VkDevice device, VkBuffer buffer) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 695 | { |
| 696 | const VkLayerDispatchTable *disp; |
| 697 | |
| 698 | disp = loader_get_dispatch(device); |
| 699 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 700 | disp->DestroyBuffer(device, buffer); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 701 | } |
| 702 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 703 | LOADER_EXPORT VkResult VKAPI vkCreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView) |
| 704 | { |
| 705 | const VkLayerDispatchTable *disp; |
| 706 | |
| 707 | disp = loader_get_dispatch(device); |
| 708 | |
| 709 | return disp->CreateBufferView(device, pCreateInfo, pView); |
| 710 | } |
| 711 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 712 | LOADER_EXPORT void VKAPI vkDestroyBufferView(VkDevice device, VkBufferView bufferView) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 713 | { |
| 714 | const VkLayerDispatchTable *disp; |
| 715 | |
| 716 | disp = loader_get_dispatch(device); |
| 717 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 718 | disp->DestroyBufferView(device, bufferView); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 719 | } |
| 720 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 721 | LOADER_EXPORT VkResult VKAPI vkCreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage) |
| 722 | { |
| 723 | const VkLayerDispatchTable *disp; |
| 724 | |
| 725 | disp = loader_get_dispatch(device); |
| 726 | |
| 727 | return disp->CreateImage(device, pCreateInfo, pImage); |
| 728 | } |
| 729 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 730 | LOADER_EXPORT void VKAPI vkDestroyImage(VkDevice device, VkImage image) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 731 | { |
| 732 | const VkLayerDispatchTable *disp; |
| 733 | |
| 734 | disp = loader_get_dispatch(device); |
| 735 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 736 | disp->DestroyImage(device, image); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 737 | } |
| 738 | |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 739 | LOADER_EXPORT VkResult VKAPI vkGetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 740 | { |
| 741 | const VkLayerDispatchTable *disp; |
| 742 | |
| 743 | disp = loader_get_dispatch(device); |
| 744 | |
Tony Barbour | 59a4732 | 2015-06-24 16:06:58 -0600 | [diff] [blame] | 745 | return disp->GetImageSubresourceLayout(device, image, pSubresource, pLayout); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 746 | } |
| 747 | |
| 748 | LOADER_EXPORT VkResult VKAPI vkCreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView) |
| 749 | { |
| 750 | const VkLayerDispatchTable *disp; |
| 751 | |
| 752 | disp = loader_get_dispatch(device); |
| 753 | |
| 754 | return disp->CreateImageView(device, pCreateInfo, pView); |
| 755 | } |
| 756 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 757 | LOADER_EXPORT void VKAPI vkDestroyImageView(VkDevice device, VkImageView imageView) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 758 | { |
| 759 | const VkLayerDispatchTable *disp; |
| 760 | |
| 761 | disp = loader_get_dispatch(device); |
| 762 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 763 | disp->DestroyImageView(device, imageView); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 764 | } |
| 765 | |
Courtney Goeltzenleuchter | 2d2cb68 | 2015-06-24 18:24:19 -0600 | [diff] [blame] | 766 | LOADER_EXPORT VkResult VKAPI vkCreateShaderModule(VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, VkShaderModule* pShader) |
| 767 | { |
| 768 | const VkLayerDispatchTable *disp; |
| 769 | |
| 770 | disp = loader_get_dispatch(device); |
| 771 | |
| 772 | return disp->CreateShaderModule(device, pCreateInfo, pShader); |
| 773 | } |
| 774 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 775 | LOADER_EXPORT void VKAPI vkDestroyShaderModule(VkDevice device, VkShaderModule shaderModule) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 776 | { |
| 777 | const VkLayerDispatchTable *disp; |
| 778 | |
| 779 | disp = loader_get_dispatch(device); |
| 780 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 781 | disp->DestroyShaderModule(device, shaderModule); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 782 | } |
| 783 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 784 | LOADER_EXPORT VkResult VKAPI vkCreateShader(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader) |
| 785 | { |
| 786 | const VkLayerDispatchTable *disp; |
| 787 | |
| 788 | disp = loader_get_dispatch(device); |
| 789 | |
| 790 | return disp->CreateShader(device, pCreateInfo, pShader); |
| 791 | } |
| 792 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 793 | LOADER_EXPORT void VKAPI vkDestroyShader(VkDevice device, VkShader shader) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 794 | { |
| 795 | const VkLayerDispatchTable *disp; |
| 796 | |
| 797 | disp = loader_get_dispatch(device); |
| 798 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 799 | disp->DestroyShader(device, shader); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 800 | } |
| 801 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 802 | LOADER_EXPORT VkResult VKAPI vkCreatePipelineCache(VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, VkPipelineCache* pPipelineCache) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 803 | { |
| 804 | const VkLayerDispatchTable *disp; |
| 805 | |
| 806 | disp = loader_get_dispatch(device); |
| 807 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 808 | return disp->CreatePipelineCache(device, pCreateInfo, pPipelineCache); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 809 | } |
| 810 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 811 | LOADER_EXPORT void VKAPI vkDestroyPipelineCache(VkDevice device, VkPipelineCache pipelineCache) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 812 | { |
| 813 | const VkLayerDispatchTable *disp; |
| 814 | |
| 815 | disp = loader_get_dispatch(device); |
| 816 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 817 | disp->DestroyPipelineCache(device, pipelineCache); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 818 | } |
| 819 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 820 | LOADER_EXPORT size_t VKAPI vkGetPipelineCacheSize(VkDevice device, VkPipelineCache pipelineCache) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 821 | { |
| 822 | const VkLayerDispatchTable *disp; |
| 823 | |
| 824 | disp = loader_get_dispatch(device); |
| 825 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 826 | return disp->GetPipelineCacheSize(device, pipelineCache); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 827 | } |
| 828 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 829 | LOADER_EXPORT VkResult VKAPI vkGetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, void* pData) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 830 | { |
| 831 | const VkLayerDispatchTable *disp; |
| 832 | |
| 833 | disp = loader_get_dispatch(device); |
| 834 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 835 | return disp->GetPipelineCacheData(device, pipelineCache, pData); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 836 | } |
| 837 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 838 | LOADER_EXPORT VkResult VKAPI vkMergePipelineCaches(VkDevice device, VkPipelineCache destCache, uint32_t srcCacheCount, const VkPipelineCache* pSrcCaches) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 839 | { |
| 840 | const VkLayerDispatchTable *disp; |
| 841 | |
| 842 | disp = loader_get_dispatch(device); |
| 843 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 844 | return disp->MergePipelineCaches(device, destCache, srcCacheCount, pSrcCaches); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 845 | } |
| 846 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 847 | LOADER_EXPORT VkResult VKAPI vkCreateGraphicsPipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkGraphicsPipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 848 | { |
| 849 | const VkLayerDispatchTable *disp; |
| 850 | |
| 851 | disp = loader_get_dispatch(device); |
| 852 | |
Jon Ashburn | c669cc6 | 2015-07-09 15:02:25 -0600 | [diff] [blame] | 853 | return disp->CreateGraphicsPipelines(device, pipelineCache, count, pCreateInfos, pPipelines); |
| 854 | } |
| 855 | |
| 856 | LOADER_EXPORT VkResult VKAPI vkCreateComputePipelines(VkDevice device, VkPipelineCache pipelineCache, uint32_t count, const VkComputePipelineCreateInfo* pCreateInfos, VkPipeline* pPipelines) |
| 857 | { |
| 858 | const VkLayerDispatchTable *disp; |
| 859 | |
| 860 | disp = loader_get_dispatch(device); |
| 861 | |
| 862 | return disp->CreateComputePipelines(device, pipelineCache, count, pCreateInfos, pPipelines); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 863 | } |
| 864 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 865 | LOADER_EXPORT void VKAPI vkDestroyPipeline(VkDevice device, VkPipeline pipeline) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 866 | { |
| 867 | const VkLayerDispatchTable *disp; |
| 868 | |
| 869 | disp = loader_get_dispatch(device); |
| 870 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 871 | disp->DestroyPipeline(device, pipeline); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 872 | } |
| 873 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 874 | LOADER_EXPORT VkResult VKAPI vkCreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout) |
| 875 | { |
| 876 | const VkLayerDispatchTable *disp; |
| 877 | |
| 878 | disp = loader_get_dispatch(device); |
| 879 | |
| 880 | return disp->CreatePipelineLayout(device, pCreateInfo, pPipelineLayout); |
| 881 | } |
| 882 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 883 | LOADER_EXPORT void VKAPI vkDestroyPipelineLayout(VkDevice device, VkPipelineLayout pipelineLayout) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 884 | { |
| 885 | const VkLayerDispatchTable *disp; |
| 886 | |
| 887 | disp = loader_get_dispatch(device); |
| 888 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 889 | disp->DestroyPipelineLayout(device, pipelineLayout); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 890 | } |
| 891 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 892 | LOADER_EXPORT VkResult VKAPI vkCreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler) |
| 893 | { |
| 894 | const VkLayerDispatchTable *disp; |
| 895 | |
| 896 | disp = loader_get_dispatch(device); |
| 897 | |
| 898 | return disp->CreateSampler(device, pCreateInfo, pSampler); |
| 899 | } |
| 900 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 901 | LOADER_EXPORT void VKAPI vkDestroySampler(VkDevice device, VkSampler sampler) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 902 | { |
| 903 | const VkLayerDispatchTable *disp; |
| 904 | |
| 905 | disp = loader_get_dispatch(device); |
| 906 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 907 | disp->DestroySampler(device, sampler); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 908 | } |
| 909 | |
| 910 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 911 | LOADER_EXPORT VkResult VKAPI vkCreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout) |
| 912 | { |
| 913 | const VkLayerDispatchTable *disp; |
| 914 | |
| 915 | disp = loader_get_dispatch(device); |
| 916 | |
| 917 | return disp->CreateDescriptorSetLayout(device, pCreateInfo, pSetLayout); |
| 918 | } |
| 919 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 920 | LOADER_EXPORT void VKAPI vkDestroyDescriptorSetLayout(VkDevice device, VkDescriptorSetLayout descriptorSetLayout) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 921 | { |
| 922 | const VkLayerDispatchTable *disp; |
| 923 | |
| 924 | disp = loader_get_dispatch(device); |
| 925 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 926 | disp->DestroyDescriptorSetLayout(device, descriptorSetLayout); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 927 | } |
| 928 | |
Courtney Goeltzenleuchter | fe908d3 | 2015-09-16 16:12:45 -0600 | [diff] [blame] | 929 | LOADER_EXPORT VkResult VKAPI vkCreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 930 | { |
| 931 | const VkLayerDispatchTable *disp; |
| 932 | |
| 933 | disp = loader_get_dispatch(device); |
| 934 | |
Courtney Goeltzenleuchter | fe908d3 | 2015-09-16 16:12:45 -0600 | [diff] [blame] | 935 | return disp->CreateDescriptorPool(device, pCreateInfo, pDescriptorPool); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 936 | } |
| 937 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 938 | LOADER_EXPORT void VKAPI vkDestroyDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 939 | { |
| 940 | const VkLayerDispatchTable *disp; |
| 941 | |
| 942 | disp = loader_get_dispatch(device); |
| 943 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 944 | disp->DestroyDescriptorPool(device, descriptorPool); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 945 | } |
| 946 | |
| 947 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 948 | LOADER_EXPORT VkResult VKAPI vkResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool) |
| 949 | { |
| 950 | const VkLayerDispatchTable *disp; |
| 951 | |
| 952 | disp = loader_get_dispatch(device); |
| 953 | |
| 954 | return disp->ResetDescriptorPool(device, descriptorPool); |
| 955 | } |
| 956 | |
Cody Northrop | 1e4f802 | 2015-08-03 12:47:29 -0600 | [diff] [blame] | 957 | LOADER_EXPORT VkResult VKAPI vkAllocDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSetUsage setUsage, uint32_t count, const VkDescriptorSetLayout* pSetLayouts, VkDescriptorSet* pDescriptorSets) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 958 | { |
| 959 | const VkLayerDispatchTable *disp; |
| 960 | |
| 961 | disp = loader_get_dispatch(device); |
| 962 | |
Cody Northrop | 1e4f802 | 2015-08-03 12:47:29 -0600 | [diff] [blame] | 963 | return disp->AllocDescriptorSets(device, descriptorPool, setUsage, count, pSetLayouts, pDescriptorSets); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 964 | } |
| 965 | |
Tony Barbour | 34ec692 | 2015-07-10 10:50:45 -0600 | [diff] [blame] | 966 | LOADER_EXPORT VkResult VKAPI vkFreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets) |
| 967 | { |
| 968 | const VkLayerDispatchTable *disp; |
| 969 | |
| 970 | disp = loader_get_dispatch(device); |
| 971 | |
| 972 | return disp->FreeDescriptorSets(device, descriptorPool, count, pDescriptorSets); |
| 973 | } |
| 974 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 975 | LOADER_EXPORT void VKAPI vkUpdateDescriptorSets(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 976 | { |
| 977 | const VkLayerDispatchTable *disp; |
| 978 | |
| 979 | disp = loader_get_dispatch(device); |
| 980 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 981 | disp->UpdateDescriptorSets(device, writeCount, pDescriptorWrites, copyCount, pDescriptorCopies); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 982 | } |
| 983 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 984 | LOADER_EXPORT VkResult VKAPI vkCreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer) |
| 985 | { |
| 986 | const VkLayerDispatchTable *disp; |
| 987 | |
| 988 | disp = loader_get_dispatch(device); |
| 989 | |
| 990 | return disp->CreateFramebuffer(device, pCreateInfo, pFramebuffer); |
| 991 | } |
| 992 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 993 | LOADER_EXPORT void VKAPI vkDestroyFramebuffer(VkDevice device, VkFramebuffer framebuffer) |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 994 | { |
| 995 | const VkLayerDispatchTable *disp; |
| 996 | |
| 997 | disp = loader_get_dispatch(device); |
| 998 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 999 | disp->DestroyFramebuffer(device, framebuffer); |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1000 | } |
| 1001 | |
| 1002 | LOADER_EXPORT VkResult VKAPI vkCreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass) |
| 1003 | { |
| 1004 | const VkLayerDispatchTable *disp; |
| 1005 | |
| 1006 | disp = loader_get_dispatch(device); |
| 1007 | |
| 1008 | return disp->CreateRenderPass(device, pCreateInfo, pRenderPass); |
| 1009 | } |
| 1010 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1011 | LOADER_EXPORT void VKAPI vkDestroyRenderPass(VkDevice device, VkRenderPass renderPass) |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1012 | { |
| 1013 | const VkLayerDispatchTable *disp; |
| 1014 | |
| 1015 | disp = loader_get_dispatch(device); |
| 1016 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1017 | disp->DestroyRenderPass(device, renderPass); |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1018 | } |
| 1019 | |
| 1020 | LOADER_EXPORT VkResult VKAPI vkGetRenderAreaGranularity(VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity) |
| 1021 | { |
| 1022 | const VkLayerDispatchTable *disp; |
| 1023 | |
| 1024 | disp = loader_get_dispatch(device); |
| 1025 | |
| 1026 | return disp->GetRenderAreaGranularity(device, renderPass, pGranularity); |
| 1027 | } |
| 1028 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1029 | LOADER_EXPORT VkResult VKAPI vkCreateCommandPool(VkDevice device, const VkCmdPoolCreateInfo* pCreateInfo, VkCmdPool* pCmdPool) |
| 1030 | { |
| 1031 | const VkLayerDispatchTable *disp; |
| 1032 | |
| 1033 | disp = loader_get_dispatch(device); |
| 1034 | |
| 1035 | return disp->CreateCommandPool(device, pCreateInfo, pCmdPool); |
| 1036 | } |
| 1037 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1038 | LOADER_EXPORT void VKAPI vkDestroyCommandPool(VkDevice device, VkCmdPool cmdPool) |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1039 | { |
| 1040 | const VkLayerDispatchTable *disp; |
| 1041 | |
| 1042 | disp = loader_get_dispatch(device); |
| 1043 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1044 | disp->DestroyCommandPool(device, cmdPool); |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1045 | } |
| 1046 | |
| 1047 | LOADER_EXPORT VkResult VKAPI vkResetCommandPool(VkDevice device, VkCmdPool cmdPool, VkCmdPoolResetFlags flags) |
| 1048 | { |
| 1049 | const VkLayerDispatchTable *disp; |
| 1050 | |
| 1051 | disp = loader_get_dispatch(device); |
| 1052 | |
| 1053 | return disp->ResetCommandPool(device, cmdPool, flags); |
| 1054 | } |
| 1055 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1056 | LOADER_EXPORT VkResult VKAPI vkCreateCommandBuffer(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer) |
| 1057 | { |
| 1058 | const VkLayerDispatchTable *disp; |
| 1059 | VkResult res; |
| 1060 | |
| 1061 | disp = loader_get_dispatch(device); |
| 1062 | |
| 1063 | res = disp->CreateCommandBuffer(device, pCreateInfo, pCmdBuffer); |
| 1064 | if (res == VK_SUCCESS) { |
| 1065 | loader_init_dispatch(*pCmdBuffer, disp); |
| 1066 | } |
| 1067 | |
| 1068 | return res; |
| 1069 | } |
| 1070 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1071 | LOADER_EXPORT void VKAPI vkDestroyCommandBuffer(VkDevice device, VkCmdBuffer cmdBuffer) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1072 | { |
| 1073 | const VkLayerDispatchTable *disp; |
| 1074 | |
| 1075 | disp = loader_get_dispatch(device); |
| 1076 | |
Mark Lobodzinski | 2141f65 | 2015-09-07 13:59:43 -0600 | [diff] [blame] | 1077 | disp->DestroyCommandBuffer(device, cmdBuffer); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1078 | } |
| 1079 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1080 | LOADER_EXPORT VkResult VKAPI vkBeginCommandBuffer(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo) |
| 1081 | { |
| 1082 | const VkLayerDispatchTable *disp; |
| 1083 | |
| 1084 | disp = loader_get_dispatch(cmdBuffer); |
| 1085 | |
| 1086 | return disp->BeginCommandBuffer(cmdBuffer, pBeginInfo); |
| 1087 | } |
| 1088 | |
| 1089 | LOADER_EXPORT VkResult VKAPI vkEndCommandBuffer(VkCmdBuffer cmdBuffer) |
| 1090 | { |
| 1091 | const VkLayerDispatchTable *disp; |
| 1092 | |
| 1093 | disp = loader_get_dispatch(cmdBuffer); |
| 1094 | |
| 1095 | return disp->EndCommandBuffer(cmdBuffer); |
| 1096 | } |
| 1097 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1098 | LOADER_EXPORT VkResult VKAPI vkResetCommandBuffer(VkCmdBuffer cmdBuffer, VkCmdBufferResetFlags flags) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1099 | { |
| 1100 | const VkLayerDispatchTable *disp; |
| 1101 | |
| 1102 | disp = loader_get_dispatch(cmdBuffer); |
| 1103 | |
Cody Northrop | e62183e | 2015-07-09 18:08:05 -0600 | [diff] [blame] | 1104 | return disp->ResetCommandBuffer(cmdBuffer, flags); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1105 | } |
| 1106 | |
| 1107 | LOADER_EXPORT void VKAPI vkCmdBindPipeline(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline) |
| 1108 | { |
| 1109 | const VkLayerDispatchTable *disp; |
| 1110 | |
| 1111 | disp = loader_get_dispatch(cmdBuffer); |
| 1112 | |
| 1113 | disp->CmdBindPipeline(cmdBuffer, pipelineBindPoint, pipeline); |
| 1114 | } |
| 1115 | |
Courtney Goeltzenleuchter | 078f817 | 2015-09-21 11:44:06 -0600 | [diff] [blame] | 1116 | LOADER_EXPORT void VKAPI vkCmdSetViewport(VkCmdBuffer cmdBuffer, uint32_t viewportCount, const VkViewport* pViewports) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1117 | { |
| 1118 | const VkLayerDispatchTable *disp; |
| 1119 | |
| 1120 | disp = loader_get_dispatch(cmdBuffer); |
| 1121 | |
Courtney Goeltzenleuchter | 078f817 | 2015-09-21 11:44:06 -0600 | [diff] [blame] | 1122 | disp->CmdSetViewport(cmdBuffer, viewportCount, pViewports); |
| 1123 | } |
| 1124 | |
| 1125 | LOADER_EXPORT void VKAPI vkCmdSetScissor(VkCmdBuffer cmdBuffer, uint32_t scissorCount, const VkRect2D* pScissors) |
| 1126 | { |
| 1127 | const VkLayerDispatchTable *disp; |
| 1128 | |
| 1129 | disp = loader_get_dispatch(cmdBuffer); |
| 1130 | |
| 1131 | disp->CmdSetScissor(cmdBuffer, scissorCount, pScissors); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1132 | } |
| 1133 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1134 | LOADER_EXPORT void VKAPI vkCmdSetLineWidth(VkCmdBuffer cmdBuffer, float lineWidth) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1135 | { |
| 1136 | const VkLayerDispatchTable *disp; |
| 1137 | |
| 1138 | disp = loader_get_dispatch(cmdBuffer); |
| 1139 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1140 | disp->CmdSetLineWidth(cmdBuffer, lineWidth); |
Cody Northrop | 1236511 | 2015-08-17 11:10:49 -0600 | [diff] [blame] | 1141 | } |
| 1142 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1143 | LOADER_EXPORT void VKAPI vkCmdSetDepthBias(VkCmdBuffer cmdBuffer, float depthBias, float depthBiasClamp, float slopeScaledDepthBias) |
Cody Northrop | 1236511 | 2015-08-17 11:10:49 -0600 | [diff] [blame] | 1144 | { |
| 1145 | const VkLayerDispatchTable *disp; |
| 1146 | |
| 1147 | disp = loader_get_dispatch(cmdBuffer); |
| 1148 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1149 | disp->CmdSetDepthBias(cmdBuffer, depthBias, depthBiasClamp, slopeScaledDepthBias); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1150 | } |
| 1151 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1152 | LOADER_EXPORT void VKAPI vkCmdSetBlendConstants(VkCmdBuffer cmdBuffer, const float blendConst[4]) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1153 | { |
| 1154 | const VkLayerDispatchTable *disp; |
| 1155 | |
| 1156 | disp = loader_get_dispatch(cmdBuffer); |
| 1157 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1158 | disp->CmdSetBlendConstants(cmdBuffer, blendConst); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1159 | } |
| 1160 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1161 | LOADER_EXPORT void VKAPI vkCmdSetDepthBounds(VkCmdBuffer cmdBuffer, float minDepthBounds, float maxDepthBounds) |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1162 | { |
| 1163 | const VkLayerDispatchTable *disp; |
| 1164 | |
| 1165 | disp = loader_get_dispatch(cmdBuffer); |
| 1166 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1167 | disp->CmdSetDepthBounds(cmdBuffer, minDepthBounds, maxDepthBounds); |
Cody Northrop | 82485a8 | 2015-08-18 15:21:16 -0600 | [diff] [blame] | 1168 | } |
| 1169 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1170 | LOADER_EXPORT void VKAPI vkCmdSetStencilCompareMask(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilCompareMask) |
Cody Northrop | 82485a8 | 2015-08-18 15:21:16 -0600 | [diff] [blame] | 1171 | { |
| 1172 | const VkLayerDispatchTable *disp; |
| 1173 | |
| 1174 | disp = loader_get_dispatch(cmdBuffer); |
| 1175 | |
Courtney Goeltzenleuchter | 49c7308 | 2015-09-17 15:06:17 -0600 | [diff] [blame] | 1176 | disp->CmdSetStencilCompareMask(cmdBuffer, faceMask, stencilCompareMask); |
| 1177 | } |
| 1178 | |
| 1179 | LOADER_EXPORT void VKAPI vkCmdSetStencilWriteMask(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilWriteMask) |
| 1180 | { |
| 1181 | const VkLayerDispatchTable *disp; |
| 1182 | |
| 1183 | disp = loader_get_dispatch(cmdBuffer); |
| 1184 | |
| 1185 | disp->CmdSetStencilWriteMask(cmdBuffer, faceMask, stencilWriteMask); |
| 1186 | } |
| 1187 | |
| 1188 | LOADER_EXPORT void VKAPI vkCmdSetStencilReference(VkCmdBuffer cmdBuffer, VkStencilFaceFlags faceMask, uint32_t stencilReference) |
| 1189 | { |
| 1190 | const VkLayerDispatchTable *disp; |
| 1191 | |
| 1192 | disp = loader_get_dispatch(cmdBuffer); |
| 1193 | |
| 1194 | disp->CmdSetStencilReference(cmdBuffer, faceMask, stencilReference); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1195 | } |
| 1196 | |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 1197 | LOADER_EXPORT void VKAPI vkCmdBindDescriptorSets(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1198 | { |
| 1199 | const VkLayerDispatchTable *disp; |
| 1200 | |
| 1201 | disp = loader_get_dispatch(cmdBuffer); |
| 1202 | |
Mark Lobodzinski | f2093b6 | 2015-06-15 13:21:21 -0600 | [diff] [blame] | 1203 | disp->CmdBindDescriptorSets(cmdBuffer, pipelineBindPoint, layout, firstSet, setCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1204 | } |
| 1205 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1206 | LOADER_EXPORT void VKAPI vkCmdBindIndexBuffer(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType) |
| 1207 | { |
| 1208 | const VkLayerDispatchTable *disp; |
| 1209 | |
| 1210 | disp = loader_get_dispatch(cmdBuffer); |
| 1211 | |
| 1212 | disp->CmdBindIndexBuffer(cmdBuffer, buffer, offset, indexType); |
| 1213 | } |
| 1214 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1215 | LOADER_EXPORT void VKAPI vkCmdBindVertexBuffers(VkCmdBuffer cmdBuffer, uint32_t startBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets) |
| 1216 | { |
| 1217 | const VkLayerDispatchTable *disp; |
| 1218 | |
| 1219 | disp = loader_get_dispatch(cmdBuffer); |
| 1220 | |
| 1221 | disp->CmdBindVertexBuffers(cmdBuffer, startBinding, bindingCount, pBuffers, pOffsets); |
| 1222 | } |
| 1223 | |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 1224 | LOADER_EXPORT void VKAPI vkCmdDraw(VkCmdBuffer cmdBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1225 | { |
| 1226 | const VkLayerDispatchTable *disp; |
| 1227 | |
| 1228 | disp = loader_get_dispatch(cmdBuffer); |
| 1229 | |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 1230 | disp->CmdDraw(cmdBuffer, vertexCount, instanceCount, firstVertex, firstInstance); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1231 | } |
| 1232 | |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 1233 | LOADER_EXPORT void VKAPI vkCmdDrawIndexed(VkCmdBuffer cmdBuffer, uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1234 | { |
| 1235 | const VkLayerDispatchTable *disp; |
| 1236 | |
| 1237 | disp = loader_get_dispatch(cmdBuffer); |
| 1238 | |
Courtney Goeltzenleuchter | 08c2637 | 2015-09-23 12:31:50 -0600 | [diff] [blame] | 1239 | disp->CmdDrawIndexed(cmdBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1240 | } |
| 1241 | |
| 1242 | LOADER_EXPORT void VKAPI vkCmdDrawIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) |
| 1243 | { |
| 1244 | const VkLayerDispatchTable *disp; |
| 1245 | |
| 1246 | disp = loader_get_dispatch(cmdBuffer); |
| 1247 | |
| 1248 | disp->CmdDrawIndirect(cmdBuffer, buffer, offset, count, stride); |
| 1249 | } |
| 1250 | |
| 1251 | LOADER_EXPORT void VKAPI vkCmdDrawIndexedIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) |
| 1252 | { |
| 1253 | const VkLayerDispatchTable *disp; |
| 1254 | |
| 1255 | disp = loader_get_dispatch(cmdBuffer); |
| 1256 | |
| 1257 | disp->CmdDrawIndexedIndirect(cmdBuffer, buffer, offset, count, stride); |
| 1258 | } |
| 1259 | |
| 1260 | LOADER_EXPORT void VKAPI vkCmdDispatch(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z) |
| 1261 | { |
| 1262 | const VkLayerDispatchTable *disp; |
| 1263 | |
| 1264 | disp = loader_get_dispatch(cmdBuffer); |
| 1265 | |
| 1266 | disp->CmdDispatch(cmdBuffer, x, y, z); |
| 1267 | } |
| 1268 | |
| 1269 | LOADER_EXPORT void VKAPI vkCmdDispatchIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset) |
| 1270 | { |
| 1271 | const VkLayerDispatchTable *disp; |
| 1272 | |
| 1273 | disp = loader_get_dispatch(cmdBuffer); |
| 1274 | |
| 1275 | disp->CmdDispatchIndirect(cmdBuffer, buffer, offset); |
| 1276 | } |
| 1277 | |
| 1278 | LOADER_EXPORT void VKAPI vkCmdCopyBuffer(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions) |
| 1279 | { |
| 1280 | const VkLayerDispatchTable *disp; |
| 1281 | |
| 1282 | disp = loader_get_dispatch(cmdBuffer); |
| 1283 | |
| 1284 | disp->CmdCopyBuffer(cmdBuffer, srcBuffer, destBuffer, regionCount, pRegions); |
| 1285 | } |
| 1286 | |
| 1287 | LOADER_EXPORT void VKAPI vkCmdCopyImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions) |
| 1288 | { |
| 1289 | const VkLayerDispatchTable *disp; |
| 1290 | |
| 1291 | disp = loader_get_dispatch(cmdBuffer); |
| 1292 | |
| 1293 | disp->CmdCopyImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions); |
| 1294 | } |
| 1295 | |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 1296 | LOADER_EXPORT void VKAPI vkCmdBlitImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageBlit* pRegions, VkTexFilter filter) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1297 | { |
| 1298 | const VkLayerDispatchTable *disp; |
| 1299 | |
| 1300 | disp = loader_get_dispatch(cmdBuffer); |
| 1301 | |
Mark Lobodzinski | ee5eef1 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 1302 | disp->CmdBlitImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions, filter); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1303 | } |
| 1304 | |
| 1305 | LOADER_EXPORT void VKAPI vkCmdCopyBufferToImage(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions) |
| 1306 | { |
| 1307 | const VkLayerDispatchTable *disp; |
| 1308 | |
| 1309 | disp = loader_get_dispatch(cmdBuffer); |
| 1310 | |
| 1311 | disp->CmdCopyBufferToImage(cmdBuffer, srcBuffer, destImage, destImageLayout, regionCount, pRegions); |
| 1312 | } |
| 1313 | |
| 1314 | LOADER_EXPORT void VKAPI vkCmdCopyImageToBuffer(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions) |
| 1315 | { |
| 1316 | const VkLayerDispatchTable *disp; |
| 1317 | |
| 1318 | disp = loader_get_dispatch(cmdBuffer); |
| 1319 | |
| 1320 | disp->CmdCopyImageToBuffer(cmdBuffer, srcImage, srcImageLayout, destBuffer, regionCount, pRegions); |
| 1321 | } |
| 1322 | |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1323 | LOADER_EXPORT void VKAPI vkCmdUpdateBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData) |
| 1324 | { |
| 1325 | const VkLayerDispatchTable *disp; |
| 1326 | |
| 1327 | disp = loader_get_dispatch(cmdBuffer); |
| 1328 | |
| 1329 | disp->CmdUpdateBuffer(cmdBuffer, destBuffer, destOffset, dataSize, pData); |
| 1330 | } |
| 1331 | |
| 1332 | LOADER_EXPORT void VKAPI vkCmdFillBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize fillSize, uint32_t data) |
| 1333 | { |
| 1334 | const VkLayerDispatchTable *disp; |
| 1335 | |
| 1336 | disp = loader_get_dispatch(cmdBuffer); |
| 1337 | |
| 1338 | disp->CmdFillBuffer(cmdBuffer, destBuffer, destOffset, fillSize, data); |
| 1339 | } |
| 1340 | |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 1341 | LOADER_EXPORT void VKAPI vkCmdClearColorImage(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1342 | { |
| 1343 | const VkLayerDispatchTable *disp; |
| 1344 | |
| 1345 | disp = loader_get_dispatch(cmdBuffer); |
| 1346 | |
| 1347 | disp->CmdClearColorImage(cmdBuffer, image, imageLayout, pColor, rangeCount, pRanges); |
| 1348 | } |
| 1349 | |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1350 | LOADER_EXPORT void VKAPI vkCmdClearDepthStencilImage(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1351 | { |
| 1352 | const VkLayerDispatchTable *disp; |
| 1353 | |
| 1354 | disp = loader_get_dispatch(cmdBuffer); |
| 1355 | |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1356 | disp->CmdClearDepthStencilImage(cmdBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges); |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1357 | } |
| 1358 | |
Chris Forbes | f0796e1 | 2015-06-24 14:34:53 +1200 | [diff] [blame] | 1359 | LOADER_EXPORT void VKAPI vkCmdClearColorAttachment(VkCmdBuffer cmdBuffer, uint32_t colorAttachment, VkImageLayout imageLayout, const VkClearColorValue* pColor, uint32_t rectCount, const VkRect3D* pRects) |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1360 | { |
| 1361 | const VkLayerDispatchTable *disp; |
| 1362 | |
| 1363 | disp = loader_get_dispatch(cmdBuffer); |
| 1364 | |
| 1365 | disp->CmdClearColorAttachment(cmdBuffer, colorAttachment, imageLayout, pColor, rectCount, pRects); |
| 1366 | } |
| 1367 | |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1368 | LOADER_EXPORT void VKAPI vkCmdClearDepthStencilAttachment(VkCmdBuffer cmdBuffer, VkImageAspectFlags imageAspectMask, VkImageLayout imageLayout, const VkClearDepthStencilValue *pDepthStencil, uint32_t rectCount, const VkRect3D* pRects) |
Chris Forbes | d9be82b | 2015-06-22 17:21:59 +1200 | [diff] [blame] | 1369 | { |
| 1370 | const VkLayerDispatchTable *disp; |
| 1371 | |
| 1372 | disp = loader_get_dispatch(cmdBuffer); |
| 1373 | |
Courtney Goeltzenleuchter | 45df9e1 | 2015-09-15 18:03:22 -0600 | [diff] [blame] | 1374 | disp->CmdClearDepthStencilAttachment(cmdBuffer, imageAspectMask, imageLayout, pDepthStencil, rectCount, pRects); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1375 | } |
| 1376 | |
| 1377 | LOADER_EXPORT void VKAPI vkCmdResolveImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions) |
| 1378 | { |
| 1379 | const VkLayerDispatchTable *disp; |
| 1380 | |
| 1381 | disp = loader_get_dispatch(cmdBuffer); |
| 1382 | |
| 1383 | disp->CmdResolveImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions); |
| 1384 | } |
| 1385 | |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1386 | LOADER_EXPORT void VKAPI vkCmdSetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1387 | { |
| 1388 | const VkLayerDispatchTable *disp; |
| 1389 | |
| 1390 | disp = loader_get_dispatch(cmdBuffer); |
| 1391 | |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1392 | disp->CmdSetEvent(cmdBuffer, event, stageMask); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1393 | } |
| 1394 | |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1395 | LOADER_EXPORT void VKAPI vkCmdResetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipelineStageFlags stageMask) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1396 | { |
| 1397 | const VkLayerDispatchTable *disp; |
| 1398 | |
| 1399 | disp = loader_get_dispatch(cmdBuffer); |
| 1400 | |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1401 | disp->CmdResetEvent(cmdBuffer, event, stageMask); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1402 | } |
| 1403 | |
Courtney Goeltzenleuchter | dbd2032 | 2015-07-12 12:58:58 -0600 | [diff] [blame] | 1404 | LOADER_EXPORT void VKAPI vkCmdWaitEvents(VkCmdBuffer cmdBuffer, uint32_t eventCount, const VkEvent* pEvents, VkPipelineStageFlags sourceStageMask, VkPipelineStageFlags destStageMask, uint32_t memBarrierCount, const void* const* ppMemBarriers) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1405 | { |
| 1406 | const VkLayerDispatchTable *disp; |
| 1407 | |
| 1408 | disp = loader_get_dispatch(cmdBuffer); |
| 1409 | |
Tony Barbour | 0b2cfb2 | 2015-06-29 16:20:35 -0600 | [diff] [blame] | 1410 | disp->CmdWaitEvents(cmdBuffer, eventCount, pEvents, sourceStageMask, destStageMask, memBarrierCount, ppMemBarriers); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1411 | } |
| 1412 | |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame] | 1413 | LOADER_EXPORT void VKAPI vkCmdPipelineBarrier(VkCmdBuffer cmdBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags destStageMask, VkBool32 byRegion, uint32_t memBarrierCount, const void* const* ppMemBarriers) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1414 | { |
| 1415 | const VkLayerDispatchTable *disp; |
| 1416 | |
| 1417 | disp = loader_get_dispatch(cmdBuffer); |
| 1418 | |
Courtney Goeltzenleuchter | ceebbb1 | 2015-07-12 13:07:46 -0600 | [diff] [blame] | 1419 | disp->CmdPipelineBarrier(cmdBuffer, srcStageMask, destStageMask, byRegion, memBarrierCount, ppMemBarriers); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1420 | } |
| 1421 | |
| 1422 | LOADER_EXPORT void VKAPI vkCmdBeginQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkFlags flags) |
| 1423 | { |
| 1424 | const VkLayerDispatchTable *disp; |
| 1425 | |
| 1426 | disp = loader_get_dispatch(cmdBuffer); |
| 1427 | |
| 1428 | disp->CmdBeginQuery(cmdBuffer, queryPool, slot, flags); |
| 1429 | } |
| 1430 | |
| 1431 | LOADER_EXPORT void VKAPI vkCmdEndQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot) |
| 1432 | { |
| 1433 | const VkLayerDispatchTable *disp; |
| 1434 | |
| 1435 | disp = loader_get_dispatch(cmdBuffer); |
| 1436 | |
| 1437 | disp->CmdEndQuery(cmdBuffer, queryPool, slot); |
| 1438 | } |
| 1439 | |
| 1440 | LOADER_EXPORT void VKAPI vkCmdResetQueryPool(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount) |
| 1441 | { |
| 1442 | const VkLayerDispatchTable *disp; |
| 1443 | |
| 1444 | disp = loader_get_dispatch(cmdBuffer); |
| 1445 | |
| 1446 | disp->CmdResetQueryPool(cmdBuffer, queryPool, startQuery, queryCount); |
| 1447 | } |
| 1448 | |
| 1449 | LOADER_EXPORT void VKAPI vkCmdWriteTimestamp(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkDeviceSize destOffset) |
| 1450 | { |
| 1451 | const VkLayerDispatchTable *disp; |
| 1452 | |
| 1453 | disp = loader_get_dispatch(cmdBuffer); |
| 1454 | |
| 1455 | disp->CmdWriteTimestamp(cmdBuffer, timestampType, destBuffer, destOffset); |
| 1456 | } |
| 1457 | |
| 1458 | LOADER_EXPORT void VKAPI vkCmdCopyQueryPoolResults(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize destStride, VkFlags flags) |
| 1459 | { |
| 1460 | const VkLayerDispatchTable *disp; |
| 1461 | |
| 1462 | disp = loader_get_dispatch(cmdBuffer); |
| 1463 | |
| 1464 | disp->CmdCopyQueryPoolResults(cmdBuffer, queryPool, startQuery, queryCount, destBuffer, destOffset, destStride, flags); |
| 1465 | } |
| 1466 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1467 | LOADER_EXPORT void VKAPI vkCmdPushConstants(VkCmdBuffer cmdBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, uint32_t start, uint32_t length, const void* values) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1468 | { |
| 1469 | const VkLayerDispatchTable *disp; |
| 1470 | |
Jon Ashburn | 754864f | 2015-07-23 18:49:07 -0600 | [diff] [blame] | 1471 | disp = loader_get_dispatch(cmdBuffer); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1472 | |
Courtney Goeltzenleuchter | ab7db3b | 2015-07-27 14:04:01 -0600 | [diff] [blame] | 1473 | disp->CmdPushConstants(cmdBuffer, layout, stageFlags, start, length, values); |
Tony Barbour | 1d2cd3f | 2015-07-03 10:33:54 -0600 | [diff] [blame] | 1474 | } |
| 1475 | |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1476 | LOADER_EXPORT void VKAPI vkCmdBeginRenderPass(VkCmdBuffer cmdBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkRenderPassContents contents) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1477 | { |
| 1478 | const VkLayerDispatchTable *disp; |
| 1479 | |
| 1480 | disp = loader_get_dispatch(cmdBuffer); |
| 1481 | |
Chia-I Wu | 08accc6 | 2015-07-07 11:50:03 +0800 | [diff] [blame] | 1482 | disp->CmdBeginRenderPass(cmdBuffer, pRenderPassBegin, contents); |
| 1483 | } |
| 1484 | |
| 1485 | LOADER_EXPORT void VKAPI vkCmdNextSubpass(VkCmdBuffer cmdBuffer, VkRenderPassContents contents) |
| 1486 | { |
| 1487 | const VkLayerDispatchTable *disp; |
| 1488 | |
| 1489 | disp = loader_get_dispatch(cmdBuffer); |
| 1490 | |
| 1491 | disp->CmdNextSubpass(cmdBuffer, contents); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1492 | } |
| 1493 | |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 1494 | LOADER_EXPORT void VKAPI vkCmdEndRenderPass(VkCmdBuffer cmdBuffer) |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1495 | { |
| 1496 | const VkLayerDispatchTable *disp; |
| 1497 | |
| 1498 | disp = loader_get_dispatch(cmdBuffer); |
| 1499 | |
Chia-I Wu | 0b50a1c | 2015-06-26 15:34:39 +0800 | [diff] [blame] | 1500 | disp->CmdEndRenderPass(cmdBuffer); |
| 1501 | } |
| 1502 | |
| 1503 | LOADER_EXPORT void VKAPI vkCmdExecuteCommands(VkCmdBuffer cmdBuffer, uint32_t cmdBuffersCount, const VkCmdBuffer* pCmdBuffers) |
| 1504 | { |
| 1505 | const VkLayerDispatchTable *disp; |
| 1506 | |
| 1507 | disp = loader_get_dispatch(cmdBuffer); |
| 1508 | |
| 1509 | disp->CmdExecuteCommands(cmdBuffer, cmdBuffersCount, pCmdBuffers); |
Jon Ashburn | d55a394 | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 1510 | } |