Jon Ashburn | 2139a3e | 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 | */ |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 24 | #include <stdlib.h> |
| 25 | #include <string.h> |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 26 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 27 | #include "loader_platform.h" |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 28 | #include "loader.h" |
Jon Ashburn | cedc15f | 2015-05-21 18:13:33 -0600 | [diff] [blame] | 29 | #include "wsi_lunarg.h" |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 30 | #include "debug_report.h" |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 31 | |
Tobin Ehlis | 3126f01 | 2015-05-13 11:57:18 -0600 | [diff] [blame] | 32 | #if defined(WIN32) |
| 33 | // On Windows need to disable global optimization for function entrypoints or |
| 34 | // else mhook will not be able to hook all of them |
| 35 | #pragma optimize( "g", off ) |
| 36 | #endif |
| 37 | |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 38 | /* Trampoline entrypoints */ |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 39 | LOADER_EXPORT VkResult VKAPI vkCreateInstance( |
| 40 | const VkInstanceCreateInfo* pCreateInfo, |
| 41 | VkInstance* pInstance) |
| 42 | { |
| 43 | struct loader_instance *ptr_instance = NULL; |
| 44 | |
| 45 | VkResult res = VK_ERROR_INITIALIZATION_FAILED; |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 46 | |
| 47 | /* Scan/discover all ICD libraries in a single-threaded manner */ |
| 48 | loader_platform_thread_once(&once_icd, loader_icd_scan); |
| 49 | |
| 50 | /* get layer libraries in a single-threaded manner */ |
| 51 | loader_platform_thread_once(&once_layer, layer_lib_scan); |
| 52 | |
| 53 | /* merge any duplicate extensions */ |
| 54 | loader_platform_thread_once(&once_exts, loader_coalesce_extensions); |
| 55 | |
| 56 | ptr_instance = (struct loader_instance*) malloc(sizeof(struct loader_instance)); |
| 57 | if (ptr_instance == NULL) { |
| 58 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 59 | } |
| 60 | memset(ptr_instance, 0, sizeof(struct loader_instance)); |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 61 | ptr_instance->app_extension_count = pCreateInfo->extensionCount; |
| 62 | ptr_instance->app_extension_props = (ptr_instance->app_extension_count > 0) ? |
| 63 | malloc(sizeof (VkExtensionProperties) * ptr_instance->app_extension_count) : NULL; |
| 64 | if (ptr_instance->app_extension_props == NULL && (ptr_instance->app_extension_count > 0)) |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 65 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 66 | |
| 67 | /* |
| 68 | * Make local copy of extension properties indicated by application. |
| 69 | */ |
| 70 | if (ptr_instance->app_extension_props) { |
| 71 | memcpy(ptr_instance->app_extension_props, |
| 72 | pCreateInfo->pEnabledExtensions, |
| 73 | sizeof(VkExtensionProperties) * ptr_instance->app_extension_count); |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 74 | } |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 75 | |
| 76 | #if 0 |
| 77 | /* |
| 78 | * Now that we have list of enabled extensions, verify that their dependencies |
| 79 | * have been satisfied. |
| 80 | * If A depends on B, then B should come after A in the list. |
| 81 | */ |
| 82 | for (i = 0; i < ptr_instance->app_extension_count; i++) { |
| 83 | if (ptr_instance->app_extension_props[i].dependencyCount == 0) |
| 84 | continue; |
| 85 | |
| 86 | const VkExtensionProperties *dependencies = ptr_instance->app_extension_props[i].pDependencyList; |
| 87 | const VkExtensionProperties *enabled_extensions = &ptr_instance->app_extension_props[i+1]; |
| 88 | uint32_t dependency_extensions_count = ptr_instance->app_extension_count - i - 1; |
| 89 | for (dependency = 0; dependency < ptr_instance->app_extension_props[i].dependencyCount; dependency++) { |
| 90 | bool found = false; |
| 91 | for (j = 0; j < dependency_extensions_count; j++) { |
| 92 | if (compare_vk_extension_properties(&dependencies[j], &enabled_extensions[j])) { |
| 93 | found = true; |
| 94 | } |
| 95 | } |
| 96 | if (!found) { |
| 97 | /* TODO: Log message about extension dependency not found */ |
| 98 | return VK_ERROR_INVALID_EXTENSION; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | #endif |
| 103 | |
Jon Ashburn | bfa43b7 | 2015-05-19 14:33:18 -0600 | [diff] [blame] | 104 | ptr_instance->disp = malloc(sizeof(VkLayerInstanceDispatchTable)); |
| 105 | if (ptr_instance->disp == NULL) |
| 106 | return VK_ERROR_OUT_OF_HOST_MEMORY; |
| 107 | memcpy(ptr_instance->disp, &instance_disp, sizeof(instance_disp)); |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 108 | ptr_instance->next = loader.instances; |
| 109 | loader.instances = ptr_instance; |
Jon Ashburn | cedc15f | 2015-05-21 18:13:33 -0600 | [diff] [blame] | 110 | |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 111 | loader_enable_instance_layers(ptr_instance); |
| 112 | |
| 113 | debug_report_create_instance(ptr_instance); |
| 114 | wsi_lunarg_create_instance(ptr_instance); |
Jon Ashburn | cedc15f | 2015-05-21 18:13:33 -0600 | [diff] [blame] | 115 | |
| 116 | /* enable any layers on instance chain */ |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 117 | loader_activate_instance_layers(ptr_instance); |
| 118 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 119 | *pInstance = (VkInstance) ptr_instance; |
Jon Ashburn | a179dcf | 2015-05-21 17:42:17 -0600 | [diff] [blame] | 120 | |
| 121 | res = ptr_instance->disp->CreateInstance(pCreateInfo, pInstance); |
| 122 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 123 | return res; |
| 124 | } |
| 125 | |
| 126 | LOADER_EXPORT VkResult VKAPI vkDestroyInstance( |
| 127 | VkInstance instance) |
| 128 | { |
| 129 | const VkLayerInstanceDispatchTable *disp; |
| 130 | |
| 131 | disp = loader_get_instance_dispatch(instance); |
Courtney Goeltzenleuchter | 1c7c65d | 2015-06-10 17:39:03 -0600 | [diff] [blame] | 132 | |
| 133 | /* TODO: Need to free memory allocated in trampoline's CreateInstance call */ |
| 134 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 135 | return disp->DestroyInstance(instance); |
| 136 | } |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 137 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 138 | LOADER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( |
| 139 | VkInstance instance, |
| 140 | uint32_t* pPhysicalDeviceCount, |
| 141 | VkPhysicalDevice* pPhysicalDevices) |
| 142 | { |
| 143 | const VkLayerInstanceDispatchTable *disp; |
| 144 | |
| 145 | disp = loader_get_instance_dispatch(instance); |
| 146 | return disp->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, |
| 147 | pPhysicalDevices); |
| 148 | } |
| 149 | |
| 150 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceInfo( |
| 151 | VkPhysicalDevice gpu, |
| 152 | VkPhysicalDeviceInfoType infoType, |
| 153 | size_t* pDataSize, |
| 154 | void* pData) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 155 | { |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 156 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 157 | VkResult res; |
| 158 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 159 | disp = loader_get_instance_dispatch(gpu); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 160 | |
| 161 | res = disp->GetPhysicalDeviceInfo(gpu, infoType, pDataSize, pData); |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 162 | //TODO add check for extension enabled |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 163 | if (infoType == VK_PHYSICAL_DEVICE_INFO_TYPE_DISPLAY_PROPERTIES_WSI && pData && res == VK_SUCCESS) { |
| 164 | VkDisplayPropertiesWSI *info = pData; |
| 165 | size_t count = *pDataSize / sizeof(*info), i; |
| 166 | for (i = 0; i < count; i++) { |
| 167 | loader_set_dispatch(info[i].display, disp); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | return res; |
| 172 | } |
| 173 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 174 | LOADER_EXPORT VkResult VKAPI vkCreateDevice( |
| 175 | VkPhysicalDevice gpu, |
| 176 | const VkDeviceCreateInfo* pCreateInfo, |
| 177 | VkDevice* pDevice) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 178 | { |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 179 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 180 | VkResult res; |
| 181 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 182 | disp = loader_get_instance_dispatch(gpu); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 183 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 184 | // CreateDevice is dispatched on the instance chain |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 185 | res = disp->CreateDevice(gpu, pCreateInfo, pDevice); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 186 | return res; |
| 187 | } |
| 188 | |
| 189 | LOADER_EXPORT VkResult VKAPI vkDestroyDevice(VkDevice device) |
| 190 | { |
| 191 | const VkLayerDispatchTable *disp; |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 192 | VkResult res; |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 193 | |
| 194 | disp = loader_get_dispatch(device); |
| 195 | |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 196 | res = disp->DestroyDevice(device); |
| 197 | // TODO need to keep track of device objs to be able to get icd/gpu to deactivate |
| 198 | //loader_deactivate_device_layer(device); |
| 199 | return res; |
| 200 | } |
| 201 | |
Jon Ashburn | 9de9560 | 2015-05-18 15:28:32 -0600 | [diff] [blame] | 202 | #if 0 //TODO get working on layer instance chain |
Jon Ashburn | fce93d9 | 2015-05-12 17:26:48 -0600 | [diff] [blame] | 203 | LOADER_EXPORT VkResult VKAPI vkGetGlobalExtensionInfo( |
| 204 | VkExtensionInfoType infoType, |
| 205 | uint32_t extensionIndex, |
| 206 | size_t* pDataSize, |
| 207 | void* pData) |
| 208 | { |
| 209 | return instance_disp.GetGlobalExtensionInfo(infoType, extensionIndex, pDataSize, pData); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 210 | } |
Jon Ashburn | 9de9560 | 2015-05-18 15:28:32 -0600 | [diff] [blame] | 211 | #endif |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 212 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 213 | LOADER_EXPORT VkResult VKAPI vkGetPhysicalDeviceExtensionInfo( |
| 214 | VkPhysicalDevice gpu, |
| 215 | VkExtensionInfoType infoType, |
| 216 | uint32_t extensionIndex, |
| 217 | size_t* pDataSize, |
| 218 | void* pData) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 219 | { |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 220 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 221 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 222 | disp = loader_get_instance_dispatch(gpu); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 223 | |
| 224 | return disp->GetPhysicalDeviceExtensionInfo(gpu, infoType, extensionIndex, pDataSize, pData); |
| 225 | } |
| 226 | |
| 227 | LOADER_EXPORT VkResult VKAPI vkGetDeviceQueue(VkDevice device, uint32_t queueNodeIndex, uint32_t queueIndex, VkQueue* pQueue) |
| 228 | { |
| 229 | const VkLayerDispatchTable *disp; |
| 230 | VkResult res; |
| 231 | |
| 232 | disp = loader_get_dispatch(device); |
| 233 | |
| 234 | res = disp->GetDeviceQueue(device, queueNodeIndex, queueIndex, pQueue); |
| 235 | if (res == VK_SUCCESS) { |
| 236 | loader_set_dispatch(*pQueue, disp); |
| 237 | } |
| 238 | |
| 239 | return res; |
| 240 | } |
| 241 | |
| 242 | LOADER_EXPORT VkResult VKAPI vkQueueSubmit(VkQueue queue, uint32_t cmdBufferCount, const VkCmdBuffer* pCmdBuffers, VkFence fence) |
| 243 | { |
| 244 | const VkLayerDispatchTable *disp; |
| 245 | |
| 246 | disp = loader_get_dispatch(queue); |
| 247 | |
| 248 | return disp->QueueSubmit(queue, cmdBufferCount, pCmdBuffers, fence); |
| 249 | } |
| 250 | |
| 251 | LOADER_EXPORT VkResult VKAPI vkQueueWaitIdle(VkQueue queue) |
| 252 | { |
| 253 | const VkLayerDispatchTable *disp; |
| 254 | |
| 255 | disp = loader_get_dispatch(queue); |
| 256 | |
| 257 | return disp->QueueWaitIdle(queue); |
| 258 | } |
| 259 | |
| 260 | LOADER_EXPORT VkResult VKAPI vkDeviceWaitIdle(VkDevice device) |
| 261 | { |
| 262 | const VkLayerDispatchTable *disp; |
| 263 | |
| 264 | disp = loader_get_dispatch(device); |
| 265 | |
| 266 | return disp->DeviceWaitIdle(device); |
| 267 | } |
| 268 | |
| 269 | LOADER_EXPORT VkResult VKAPI vkAllocMemory(VkDevice device, const VkMemoryAllocInfo* pAllocInfo, VkDeviceMemory* pMem) |
| 270 | { |
| 271 | const VkLayerDispatchTable *disp; |
| 272 | |
| 273 | disp = loader_get_dispatch(device); |
| 274 | |
| 275 | return disp->AllocMemory(device, pAllocInfo, pMem); |
| 276 | } |
| 277 | |
| 278 | LOADER_EXPORT VkResult VKAPI vkFreeMemory(VkDevice device, VkDeviceMemory mem) |
| 279 | { |
| 280 | const VkLayerDispatchTable *disp; |
| 281 | |
| 282 | disp = loader_get_dispatch(device); |
| 283 | |
| 284 | return disp->FreeMemory(device, mem); |
| 285 | } |
| 286 | |
| 287 | LOADER_EXPORT VkResult VKAPI vkSetMemoryPriority(VkDevice device, VkDeviceMemory mem, VkMemoryPriority priority) |
| 288 | { |
| 289 | const VkLayerDispatchTable *disp; |
| 290 | |
| 291 | disp = loader_get_dispatch(device); |
| 292 | |
| 293 | return disp->SetMemoryPriority(device, mem, priority); |
| 294 | } |
| 295 | |
| 296 | LOADER_EXPORT VkResult VKAPI vkMapMemory(VkDevice device, VkDeviceMemory mem, VkDeviceSize offset, VkDeviceSize size, VkFlags flags, void** ppData) |
| 297 | { |
| 298 | const VkLayerDispatchTable *disp; |
| 299 | |
| 300 | disp = loader_get_dispatch(device); |
| 301 | |
| 302 | return disp->MapMemory(device, mem, offset, size, flags, ppData); |
| 303 | } |
| 304 | |
| 305 | LOADER_EXPORT VkResult VKAPI vkUnmapMemory(VkDevice device, VkDeviceMemory mem) |
| 306 | { |
| 307 | const VkLayerDispatchTable *disp; |
| 308 | |
| 309 | disp = loader_get_dispatch(device); |
| 310 | |
| 311 | return disp->UnmapMemory(device, mem); |
| 312 | } |
| 313 | |
| 314 | LOADER_EXPORT VkResult VKAPI vkFlushMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) |
| 315 | { |
| 316 | const VkLayerDispatchTable *disp; |
| 317 | |
| 318 | disp = loader_get_dispatch(device); |
| 319 | |
| 320 | return disp->FlushMappedMemoryRanges(device, memRangeCount, pMemRanges); |
| 321 | } |
| 322 | |
| 323 | LOADER_EXPORT VkResult VKAPI vkInvalidateMappedMemoryRanges(VkDevice device, uint32_t memRangeCount, const VkMappedMemoryRange* pMemRanges) |
| 324 | { |
| 325 | const VkLayerDispatchTable *disp; |
| 326 | |
| 327 | disp = loader_get_dispatch(device); |
| 328 | |
| 329 | return disp->InvalidateMappedMemoryRanges(device, memRangeCount, pMemRanges); |
| 330 | } |
| 331 | |
| 332 | LOADER_EXPORT VkResult VKAPI vkPinSystemMemory(VkDevice device, const void* pSysMem, size_t memSize, VkDeviceMemory* pMem) |
| 333 | { |
| 334 | const VkLayerDispatchTable *disp; |
| 335 | |
| 336 | disp = loader_get_dispatch(device); |
| 337 | |
| 338 | return disp->PinSystemMemory(device, pSysMem, memSize, pMem); |
| 339 | } |
| 340 | |
| 341 | LOADER_EXPORT VkResult VKAPI vkGetMultiDeviceCompatibility(VkPhysicalDevice gpu0, VkPhysicalDevice gpu1, VkPhysicalDeviceCompatibilityInfo* pInfo) |
| 342 | { |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 343 | const VkLayerInstanceDispatchTable *disp; |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 344 | |
Jon Ashburn | 2666e2f | 2015-05-15 15:09:35 -0600 | [diff] [blame] | 345 | disp = loader_get_instance_dispatch(gpu0); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 346 | |
| 347 | return disp->GetMultiDeviceCompatibility(gpu0, gpu1, pInfo); |
| 348 | } |
| 349 | |
| 350 | LOADER_EXPORT VkResult VKAPI vkOpenSharedMemory(VkDevice device, const VkMemoryOpenInfo* pOpenInfo, VkDeviceMemory* pMem) |
| 351 | { |
| 352 | const VkLayerDispatchTable *disp; |
| 353 | |
| 354 | disp = loader_get_dispatch(device); |
| 355 | |
| 356 | return disp->OpenSharedMemory(device, pOpenInfo, pMem); |
| 357 | } |
| 358 | |
| 359 | LOADER_EXPORT VkResult VKAPI vkOpenSharedSemaphore(VkDevice device, const VkSemaphoreOpenInfo* pOpenInfo, VkSemaphore* pSemaphore) |
| 360 | { |
| 361 | const VkLayerDispatchTable *disp; |
| 362 | |
| 363 | disp = loader_get_dispatch(device); |
| 364 | |
| 365 | return disp->OpenSharedSemaphore(device, pOpenInfo, pSemaphore); |
| 366 | } |
| 367 | |
| 368 | LOADER_EXPORT VkResult VKAPI vkOpenPeerMemory(VkDevice device, const VkPeerMemoryOpenInfo* pOpenInfo, VkDeviceMemory* pMem) |
| 369 | { |
| 370 | const VkLayerDispatchTable *disp; |
| 371 | |
| 372 | disp = loader_get_dispatch(device); |
| 373 | |
| 374 | return disp->OpenPeerMemory(device, pOpenInfo, pMem); |
| 375 | } |
| 376 | |
| 377 | LOADER_EXPORT VkResult VKAPI vkOpenPeerImage(VkDevice device, const VkPeerImageOpenInfo* pOpenInfo, VkImage* pImage, VkDeviceMemory* pMem) |
| 378 | { |
| 379 | const VkLayerDispatchTable *disp; |
| 380 | |
| 381 | disp = loader_get_dispatch(device); |
| 382 | |
| 383 | return disp->OpenPeerImage(device, pOpenInfo, pImage, pMem); |
| 384 | } |
| 385 | |
| 386 | LOADER_EXPORT VkResult VKAPI vkDestroyObject(VkDevice device, VkObjectType objType, VkObject object) |
| 387 | { |
| 388 | const VkLayerDispatchTable *disp; |
| 389 | |
| 390 | disp = loader_get_dispatch(device); |
| 391 | |
| 392 | return disp->DestroyObject(device, objType, object); |
| 393 | } |
| 394 | |
| 395 | LOADER_EXPORT VkResult VKAPI vkGetObjectInfo(VkDevice device, VkObjectType objType, VkObject object, VkObjectInfoType infoType, size_t* pDataSize, void* pData) |
| 396 | { |
| 397 | const VkLayerDispatchTable *disp; |
| 398 | |
| 399 | disp = loader_get_dispatch(device); |
| 400 | |
| 401 | return disp->GetObjectInfo(device, objType, object, infoType, pDataSize, pData); |
| 402 | } |
| 403 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 404 | LOADER_EXPORT VkResult VKAPI vkBindObjectMemory(VkDevice device, VkObjectType objType, VkObject object, VkDeviceMemory mem, VkDeviceSize offset) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 405 | { |
| 406 | const VkLayerDispatchTable *disp; |
| 407 | |
Mark Lobodzinski | fb9f564 | 2015-05-11 17:21:15 -0500 | [diff] [blame] | 408 | disp = loader_get_dispatch(device); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 409 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 410 | return disp->BindObjectMemory(device, objType, object, mem, offset); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 411 | } |
| 412 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 413 | LOADER_EXPORT VkResult VKAPI vkQueueBindSparseBufferMemory(VkQueue queue, VkBuffer buffer, VkDeviceSize rangeOffset, VkDeviceSize rangeSize, VkDeviceMemory mem, VkDeviceSize memOffset) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 414 | { |
| 415 | const VkLayerDispatchTable *disp; |
| 416 | |
| 417 | disp = loader_get_dispatch(queue); |
| 418 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 419 | return disp->QueueBindSparseBufferMemory(queue, buffer, rangeOffset, rangeSize, mem, memOffset); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 420 | } |
| 421 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 422 | LOADER_EXPORT VkResult VKAPI vkQueueBindSparseImageMemory(VkQueue queue, VkImage image, const VkImageMemoryBindInfo* pBindInfo, VkDeviceMemory mem, VkDeviceSize memOffset) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 423 | { |
| 424 | const VkLayerDispatchTable *disp; |
| 425 | |
| 426 | disp = loader_get_dispatch(queue); |
| 427 | |
Mark Lobodzinski | 2318261 | 2015-05-29 09:32:35 -0500 | [diff] [blame] | 428 | return disp->QueueBindSparseImageMemory(queue, image, pBindInfo, mem, memOffset); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 429 | } |
| 430 | |
| 431 | LOADER_EXPORT VkResult VKAPI vkCreateFence(VkDevice device, const VkFenceCreateInfo* pCreateInfo, VkFence* pFence) |
| 432 | { |
| 433 | const VkLayerDispatchTable *disp; |
| 434 | |
| 435 | disp = loader_get_dispatch(device); |
| 436 | |
| 437 | return disp->CreateFence(device, pCreateInfo, pFence); |
| 438 | } |
| 439 | |
| 440 | LOADER_EXPORT VkResult VKAPI vkResetFences(VkDevice device, uint32_t fenceCount, VkFence* pFences) |
| 441 | { |
| 442 | const VkLayerDispatchTable *disp; |
| 443 | |
| 444 | disp = loader_get_dispatch(device); |
| 445 | |
| 446 | return disp->ResetFences(device, fenceCount, pFences); |
| 447 | } |
| 448 | |
| 449 | LOADER_EXPORT VkResult VKAPI vkGetFenceStatus(VkDevice device, VkFence fence) |
| 450 | { |
| 451 | const VkLayerDispatchTable *disp; |
| 452 | |
| 453 | disp = loader_get_dispatch(device); |
| 454 | |
| 455 | return disp->GetFenceStatus(device, fence); |
| 456 | } |
| 457 | |
| 458 | LOADER_EXPORT VkResult VKAPI vkWaitForFences(VkDevice device, uint32_t fenceCount, const VkFence* pFences, bool32_t waitAll, uint64_t timeout) |
| 459 | { |
| 460 | const VkLayerDispatchTable *disp; |
| 461 | |
| 462 | disp = loader_get_dispatch(device); |
| 463 | |
| 464 | return disp->WaitForFences(device, fenceCount, pFences, waitAll, timeout); |
| 465 | } |
| 466 | |
| 467 | LOADER_EXPORT VkResult VKAPI vkCreateSemaphore(VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, VkSemaphore* pSemaphore) |
| 468 | { |
| 469 | const VkLayerDispatchTable *disp; |
| 470 | |
| 471 | disp = loader_get_dispatch(device); |
| 472 | |
| 473 | return disp->CreateSemaphore(device, pCreateInfo, pSemaphore); |
| 474 | } |
| 475 | |
| 476 | LOADER_EXPORT VkResult VKAPI vkQueueSignalSemaphore(VkQueue queue, VkSemaphore semaphore) |
| 477 | { |
| 478 | const VkLayerDispatchTable *disp; |
| 479 | |
| 480 | disp = loader_get_dispatch(queue); |
| 481 | |
| 482 | return disp->QueueSignalSemaphore(queue, semaphore); |
| 483 | } |
| 484 | |
| 485 | LOADER_EXPORT VkResult VKAPI vkQueueWaitSemaphore(VkQueue queue, VkSemaphore semaphore) |
| 486 | { |
| 487 | const VkLayerDispatchTable *disp; |
| 488 | |
| 489 | disp = loader_get_dispatch(queue); |
| 490 | |
| 491 | return disp->QueueWaitSemaphore(queue, semaphore); |
| 492 | } |
| 493 | |
| 494 | LOADER_EXPORT VkResult VKAPI vkCreateEvent(VkDevice device, const VkEventCreateInfo* pCreateInfo, VkEvent* pEvent) |
| 495 | { |
| 496 | const VkLayerDispatchTable *disp; |
| 497 | |
| 498 | disp = loader_get_dispatch(device); |
| 499 | |
| 500 | return disp->CreateEvent(device, pCreateInfo, pEvent); |
| 501 | } |
| 502 | |
| 503 | LOADER_EXPORT VkResult VKAPI vkGetEventStatus(VkDevice device, VkEvent event) |
| 504 | { |
| 505 | const VkLayerDispatchTable *disp; |
| 506 | |
| 507 | disp = loader_get_dispatch(device); |
| 508 | |
| 509 | return disp->GetEventStatus(device, event); |
| 510 | } |
| 511 | |
| 512 | LOADER_EXPORT VkResult VKAPI vkSetEvent(VkDevice device, VkEvent event) |
| 513 | { |
| 514 | const VkLayerDispatchTable *disp; |
| 515 | |
| 516 | disp = loader_get_dispatch(device); |
| 517 | |
| 518 | return disp->SetEvent(device, event); |
| 519 | } |
| 520 | |
| 521 | LOADER_EXPORT VkResult VKAPI vkResetEvent(VkDevice device, VkEvent event) |
| 522 | { |
| 523 | const VkLayerDispatchTable *disp; |
| 524 | |
| 525 | disp = loader_get_dispatch(device); |
| 526 | |
| 527 | return disp->ResetEvent(device, event); |
| 528 | } |
| 529 | |
| 530 | LOADER_EXPORT VkResult VKAPI vkCreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, VkQueryPool* pQueryPool) |
| 531 | { |
| 532 | const VkLayerDispatchTable *disp; |
| 533 | |
| 534 | disp = loader_get_dispatch(device); |
| 535 | |
| 536 | return disp->CreateQueryPool(device, pCreateInfo, pQueryPool); |
| 537 | } |
| 538 | |
| 539 | LOADER_EXPORT VkResult VKAPI vkGetQueryPoolResults(VkDevice device, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, size_t* pDataSize, void* pData, VkQueryResultFlags flags) |
| 540 | { |
| 541 | const VkLayerDispatchTable *disp; |
| 542 | |
| 543 | disp = loader_get_dispatch(device); |
| 544 | |
| 545 | return disp->GetQueryPoolResults(device, queryPool, startQuery, queryCount, pDataSize, pData, flags); |
| 546 | } |
| 547 | |
| 548 | LOADER_EXPORT VkResult VKAPI vkGetFormatInfo(VkDevice device, VkFormat format, VkFormatInfoType infoType, size_t* pDataSize, void* pData) |
| 549 | { |
| 550 | const VkLayerDispatchTable *disp; |
| 551 | |
| 552 | disp = loader_get_dispatch(device); |
| 553 | |
| 554 | return disp->GetFormatInfo(device, format, infoType, pDataSize, pData); |
| 555 | } |
| 556 | |
| 557 | LOADER_EXPORT VkResult VKAPI vkCreateBuffer(VkDevice device, const VkBufferCreateInfo* pCreateInfo, VkBuffer* pBuffer) |
| 558 | { |
| 559 | const VkLayerDispatchTable *disp; |
| 560 | |
| 561 | disp = loader_get_dispatch(device); |
| 562 | |
| 563 | return disp->CreateBuffer(device, pCreateInfo, pBuffer); |
| 564 | } |
| 565 | |
| 566 | LOADER_EXPORT VkResult VKAPI vkCreateBufferView(VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, VkBufferView* pView) |
| 567 | { |
| 568 | const VkLayerDispatchTable *disp; |
| 569 | |
| 570 | disp = loader_get_dispatch(device); |
| 571 | |
| 572 | return disp->CreateBufferView(device, pCreateInfo, pView); |
| 573 | } |
| 574 | |
| 575 | LOADER_EXPORT VkResult VKAPI vkCreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo, VkImage* pImage) |
| 576 | { |
| 577 | const VkLayerDispatchTable *disp; |
| 578 | |
| 579 | disp = loader_get_dispatch(device); |
| 580 | |
| 581 | return disp->CreateImage(device, pCreateInfo, pImage); |
| 582 | } |
| 583 | |
| 584 | LOADER_EXPORT VkResult VKAPI vkGetImageSubresourceInfo(VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceInfoType infoType, size_t* pDataSize, void* pData) |
| 585 | { |
| 586 | const VkLayerDispatchTable *disp; |
| 587 | |
| 588 | disp = loader_get_dispatch(device); |
| 589 | |
| 590 | return disp->GetImageSubresourceInfo(device, image, pSubresource, infoType, pDataSize, pData); |
| 591 | } |
| 592 | |
| 593 | LOADER_EXPORT VkResult VKAPI vkCreateImageView(VkDevice device, const VkImageViewCreateInfo* pCreateInfo, VkImageView* pView) |
| 594 | { |
| 595 | const VkLayerDispatchTable *disp; |
| 596 | |
| 597 | disp = loader_get_dispatch(device); |
| 598 | |
| 599 | return disp->CreateImageView(device, pCreateInfo, pView); |
| 600 | } |
| 601 | |
| 602 | LOADER_EXPORT VkResult VKAPI vkCreateColorAttachmentView(VkDevice device, const VkColorAttachmentViewCreateInfo* pCreateInfo, VkColorAttachmentView* pView) |
| 603 | { |
| 604 | const VkLayerDispatchTable *disp; |
| 605 | |
| 606 | disp = loader_get_dispatch(device); |
| 607 | |
| 608 | return disp->CreateColorAttachmentView(device, pCreateInfo, pView); |
| 609 | } |
| 610 | |
| 611 | LOADER_EXPORT VkResult VKAPI vkCreateDepthStencilView(VkDevice device, const VkDepthStencilViewCreateInfo* pCreateInfo, VkDepthStencilView* pView) |
| 612 | { |
| 613 | const VkLayerDispatchTable *disp; |
| 614 | |
| 615 | disp = loader_get_dispatch(device); |
| 616 | |
| 617 | return disp->CreateDepthStencilView(device, pCreateInfo, pView); |
| 618 | } |
| 619 | |
| 620 | LOADER_EXPORT VkResult VKAPI vkCreateShader(VkDevice device, const VkShaderCreateInfo* pCreateInfo, VkShader* pShader) |
| 621 | { |
| 622 | const VkLayerDispatchTable *disp; |
| 623 | |
| 624 | disp = loader_get_dispatch(device); |
| 625 | |
| 626 | return disp->CreateShader(device, pCreateInfo, pShader); |
| 627 | } |
| 628 | |
| 629 | LOADER_EXPORT VkResult VKAPI vkCreateGraphicsPipeline(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline) |
| 630 | { |
| 631 | const VkLayerDispatchTable *disp; |
| 632 | |
| 633 | disp = loader_get_dispatch(device); |
| 634 | |
| 635 | return disp->CreateGraphicsPipeline(device, pCreateInfo, pPipeline); |
| 636 | } |
| 637 | |
| 638 | LOADER_EXPORT VkResult VKAPI vkCreateGraphicsPipelineDerivative(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, VkPipeline basePipeline, VkPipeline* pPipeline) |
| 639 | { |
| 640 | const VkLayerDispatchTable *disp; |
| 641 | |
| 642 | disp = loader_get_dispatch(device); |
| 643 | |
| 644 | return disp->CreateGraphicsPipelineDerivative(device, pCreateInfo, basePipeline, pPipeline); |
| 645 | } |
| 646 | |
| 647 | LOADER_EXPORT VkResult VKAPI vkCreateComputePipeline(VkDevice device, const VkComputePipelineCreateInfo* pCreateInfo, VkPipeline* pPipeline) |
| 648 | { |
| 649 | const VkLayerDispatchTable *disp; |
| 650 | |
| 651 | disp = loader_get_dispatch(device); |
| 652 | |
| 653 | return disp->CreateComputePipeline(device, pCreateInfo, pPipeline); |
| 654 | } |
| 655 | |
| 656 | LOADER_EXPORT VkResult VKAPI vkStorePipeline(VkDevice device, VkPipeline pipeline, size_t* pDataSize, void* pData) |
| 657 | { |
| 658 | const VkLayerDispatchTable *disp; |
| 659 | |
| 660 | disp = loader_get_dispatch(device); |
| 661 | |
| 662 | return disp->StorePipeline(device, pipeline, pDataSize, pData); |
| 663 | } |
| 664 | |
| 665 | LOADER_EXPORT VkResult VKAPI vkLoadPipeline(VkDevice device, size_t dataSize, const void* pData, VkPipeline* pPipeline) |
| 666 | { |
| 667 | const VkLayerDispatchTable *disp; |
| 668 | |
| 669 | disp = loader_get_dispatch(device); |
| 670 | |
| 671 | return disp->LoadPipeline(device, dataSize, pData, pPipeline); |
| 672 | } |
| 673 | |
| 674 | LOADER_EXPORT VkResult VKAPI vkLoadPipelineDerivative(VkDevice device, size_t dataSize, const void* pData, VkPipeline basePipeline, VkPipeline* pPipeline) |
| 675 | { |
| 676 | const VkLayerDispatchTable *disp; |
| 677 | |
| 678 | disp = loader_get_dispatch(device); |
| 679 | |
| 680 | return disp->LoadPipelineDerivative(device, dataSize, pData, basePipeline, pPipeline); |
| 681 | } |
| 682 | |
| 683 | LOADER_EXPORT VkResult VKAPI vkCreatePipelineLayout(VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, VkPipelineLayout* pPipelineLayout) |
| 684 | { |
| 685 | const VkLayerDispatchTable *disp; |
| 686 | |
| 687 | disp = loader_get_dispatch(device); |
| 688 | |
| 689 | return disp->CreatePipelineLayout(device, pCreateInfo, pPipelineLayout); |
| 690 | } |
| 691 | |
| 692 | LOADER_EXPORT VkResult VKAPI vkCreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler) |
| 693 | { |
| 694 | const VkLayerDispatchTable *disp; |
| 695 | |
| 696 | disp = loader_get_dispatch(device); |
| 697 | |
| 698 | return disp->CreateSampler(device, pCreateInfo, pSampler); |
| 699 | } |
| 700 | |
| 701 | LOADER_EXPORT VkResult VKAPI vkCreateDescriptorSetLayout(VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, VkDescriptorSetLayout* pSetLayout) |
| 702 | { |
| 703 | const VkLayerDispatchTable *disp; |
| 704 | |
| 705 | disp = loader_get_dispatch(device); |
| 706 | |
| 707 | return disp->CreateDescriptorSetLayout(device, pCreateInfo, pSetLayout); |
| 708 | } |
| 709 | |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 710 | LOADER_EXPORT VkResult VKAPI vkCreateDescriptorPool(VkDevice device, VkDescriptorPoolUsage poolUsage, uint32_t maxSets, const VkDescriptorPoolCreateInfo* pCreateInfo, VkDescriptorPool* pDescriptorPool) |
| 711 | { |
| 712 | const VkLayerDispatchTable *disp; |
| 713 | |
| 714 | disp = loader_get_dispatch(device); |
| 715 | |
| 716 | return disp->CreateDescriptorPool(device, poolUsage, maxSets, pCreateInfo, pDescriptorPool); |
| 717 | } |
| 718 | |
| 719 | LOADER_EXPORT VkResult VKAPI vkResetDescriptorPool(VkDevice device, VkDescriptorPool descriptorPool) |
| 720 | { |
| 721 | const VkLayerDispatchTable *disp; |
| 722 | |
| 723 | disp = loader_get_dispatch(device); |
| 724 | |
| 725 | return disp->ResetDescriptorPool(device, descriptorPool); |
| 726 | } |
| 727 | |
| 728 | LOADER_EXPORT VkResult VKAPI vkAllocDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorSetUsage setUsage, uint32_t count, const VkDescriptorSetLayout* pSetLayouts, VkDescriptorSet* pDescriptorSets, uint32_t* pCount) |
| 729 | { |
| 730 | const VkLayerDispatchTable *disp; |
| 731 | |
| 732 | disp = loader_get_dispatch(device); |
| 733 | |
| 734 | return disp->AllocDescriptorSets(device, descriptorPool, setUsage, count, pSetLayouts, pDescriptorSets, pCount); |
| 735 | } |
| 736 | |
| 737 | LOADER_EXPORT void VKAPI vkClearDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets) |
| 738 | { |
| 739 | const VkLayerDispatchTable *disp; |
| 740 | |
| 741 | disp = loader_get_dispatch(device); |
| 742 | |
| 743 | disp->ClearDescriptorSets(device, descriptorPool, count, pDescriptorSets); |
| 744 | } |
| 745 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 746 | LOADER_EXPORT VkResult VKAPI vkUpdateDescriptorSets(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies) |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 747 | { |
| 748 | const VkLayerDispatchTable *disp; |
| 749 | |
| 750 | disp = loader_get_dispatch(device); |
| 751 | |
Chia-I Wu | 8cd8ecd | 2015-05-25 16:27:55 +0800 | [diff] [blame] | 752 | return disp->UpdateDescriptorSets(device, writeCount, pDescriptorWrites, copyCount, pDescriptorCopies); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 753 | } |
| 754 | |
| 755 | LOADER_EXPORT VkResult VKAPI vkCreateDynamicViewportState(VkDevice device, const VkDynamicVpStateCreateInfo* pCreateInfo, VkDynamicVpState* pState) |
| 756 | { |
| 757 | const VkLayerDispatchTable *disp; |
| 758 | |
| 759 | disp = loader_get_dispatch(device); |
| 760 | |
| 761 | return disp->CreateDynamicViewportState(device, pCreateInfo, pState); |
| 762 | } |
| 763 | |
| 764 | LOADER_EXPORT VkResult VKAPI vkCreateDynamicRasterState(VkDevice device, const VkDynamicRsStateCreateInfo* pCreateInfo, VkDynamicRsState* pState) |
| 765 | { |
| 766 | const VkLayerDispatchTable *disp; |
| 767 | |
| 768 | disp = loader_get_dispatch(device); |
| 769 | |
| 770 | return disp->CreateDynamicRasterState(device, pCreateInfo, pState); |
| 771 | } |
| 772 | |
| 773 | LOADER_EXPORT VkResult VKAPI vkCreateDynamicColorBlendState(VkDevice device, const VkDynamicCbStateCreateInfo* pCreateInfo, VkDynamicCbState* pState) |
| 774 | { |
| 775 | const VkLayerDispatchTable *disp; |
| 776 | |
| 777 | disp = loader_get_dispatch(device); |
| 778 | |
| 779 | return disp->CreateDynamicColorBlendState(device, pCreateInfo, pState); |
| 780 | } |
| 781 | |
| 782 | LOADER_EXPORT VkResult VKAPI vkCreateDynamicDepthStencilState(VkDevice device, const VkDynamicDsStateCreateInfo* pCreateInfo, VkDynamicDsState* pState) |
| 783 | { |
| 784 | const VkLayerDispatchTable *disp; |
| 785 | |
| 786 | disp = loader_get_dispatch(device); |
| 787 | |
| 788 | return disp->CreateDynamicDepthStencilState(device, pCreateInfo, pState); |
| 789 | } |
| 790 | |
| 791 | LOADER_EXPORT VkResult VKAPI vkCreateCommandBuffer(VkDevice device, const VkCmdBufferCreateInfo* pCreateInfo, VkCmdBuffer* pCmdBuffer) |
| 792 | { |
| 793 | const VkLayerDispatchTable *disp; |
| 794 | VkResult res; |
| 795 | |
| 796 | disp = loader_get_dispatch(device); |
| 797 | |
| 798 | res = disp->CreateCommandBuffer(device, pCreateInfo, pCmdBuffer); |
| 799 | if (res == VK_SUCCESS) { |
| 800 | loader_init_dispatch(*pCmdBuffer, disp); |
| 801 | } |
| 802 | |
| 803 | return res; |
| 804 | } |
| 805 | |
| 806 | LOADER_EXPORT VkResult VKAPI vkBeginCommandBuffer(VkCmdBuffer cmdBuffer, const VkCmdBufferBeginInfo* pBeginInfo) |
| 807 | { |
| 808 | const VkLayerDispatchTable *disp; |
| 809 | |
| 810 | disp = loader_get_dispatch(cmdBuffer); |
| 811 | |
| 812 | return disp->BeginCommandBuffer(cmdBuffer, pBeginInfo); |
| 813 | } |
| 814 | |
| 815 | LOADER_EXPORT VkResult VKAPI vkEndCommandBuffer(VkCmdBuffer cmdBuffer) |
| 816 | { |
| 817 | const VkLayerDispatchTable *disp; |
| 818 | |
| 819 | disp = loader_get_dispatch(cmdBuffer); |
| 820 | |
| 821 | return disp->EndCommandBuffer(cmdBuffer); |
| 822 | } |
| 823 | |
| 824 | LOADER_EXPORT VkResult VKAPI vkResetCommandBuffer(VkCmdBuffer cmdBuffer) |
| 825 | { |
| 826 | const VkLayerDispatchTable *disp; |
| 827 | |
| 828 | disp = loader_get_dispatch(cmdBuffer); |
| 829 | |
| 830 | return disp->ResetCommandBuffer(cmdBuffer); |
| 831 | } |
| 832 | |
| 833 | LOADER_EXPORT void VKAPI vkCmdBindPipeline(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline) |
| 834 | { |
| 835 | const VkLayerDispatchTable *disp; |
| 836 | |
| 837 | disp = loader_get_dispatch(cmdBuffer); |
| 838 | |
| 839 | disp->CmdBindPipeline(cmdBuffer, pipelineBindPoint, pipeline); |
| 840 | } |
| 841 | |
| 842 | LOADER_EXPORT void VKAPI vkCmdBindDynamicStateObject(VkCmdBuffer cmdBuffer, VkStateBindPoint stateBindPoint, VkDynamicStateObject state) |
| 843 | { |
| 844 | const VkLayerDispatchTable *disp; |
| 845 | |
| 846 | disp = loader_get_dispatch(cmdBuffer); |
| 847 | |
| 848 | disp->CmdBindDynamicStateObject(cmdBuffer, stateBindPoint, state); |
| 849 | } |
| 850 | |
| 851 | LOADER_EXPORT void VKAPI vkCmdBindDescriptorSets(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t firstSet, uint32_t setCount, const VkDescriptorSet* pDescriptorSets, uint32_t dynamicOffsetCount, const uint32_t* pDynamicOffsets) |
| 852 | { |
| 853 | const VkLayerDispatchTable *disp; |
| 854 | |
| 855 | disp = loader_get_dispatch(cmdBuffer); |
| 856 | |
| 857 | disp->CmdBindDescriptorSets(cmdBuffer, pipelineBindPoint, firstSet, setCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets); |
| 858 | } |
| 859 | |
| 860 | LOADER_EXPORT void VKAPI vkCmdBindVertexBuffers(VkCmdBuffer cmdBuffer, uint32_t startBinding, uint32_t bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets) |
| 861 | { |
| 862 | const VkLayerDispatchTable *disp; |
| 863 | |
| 864 | disp = loader_get_dispatch(cmdBuffer); |
| 865 | |
| 866 | disp->CmdBindVertexBuffers(cmdBuffer, startBinding, bindingCount, pBuffers, pOffsets); |
| 867 | } |
| 868 | |
| 869 | LOADER_EXPORT void VKAPI vkCmdBindIndexBuffer(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType) |
| 870 | { |
| 871 | const VkLayerDispatchTable *disp; |
| 872 | |
| 873 | disp = loader_get_dispatch(cmdBuffer); |
| 874 | |
| 875 | disp->CmdBindIndexBuffer(cmdBuffer, buffer, offset, indexType); |
| 876 | } |
| 877 | |
| 878 | LOADER_EXPORT void VKAPI vkCmdDraw(VkCmdBuffer cmdBuffer, uint32_t firstVertex, uint32_t vertexCount, uint32_t firstInstance, uint32_t instanceCount) |
| 879 | { |
| 880 | const VkLayerDispatchTable *disp; |
| 881 | |
| 882 | disp = loader_get_dispatch(cmdBuffer); |
| 883 | |
| 884 | disp->CmdDraw(cmdBuffer, firstVertex, vertexCount, firstInstance, instanceCount); |
| 885 | } |
| 886 | |
| 887 | LOADER_EXPORT void VKAPI vkCmdDrawIndexed(VkCmdBuffer cmdBuffer, uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset, uint32_t firstInstance, uint32_t instanceCount) |
| 888 | { |
| 889 | const VkLayerDispatchTable *disp; |
| 890 | |
| 891 | disp = loader_get_dispatch(cmdBuffer); |
| 892 | |
| 893 | disp->CmdDrawIndexed(cmdBuffer, firstIndex, indexCount, vertexOffset, firstInstance, instanceCount); |
| 894 | } |
| 895 | |
| 896 | LOADER_EXPORT void VKAPI vkCmdDrawIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) |
| 897 | { |
| 898 | const VkLayerDispatchTable *disp; |
| 899 | |
| 900 | disp = loader_get_dispatch(cmdBuffer); |
| 901 | |
| 902 | disp->CmdDrawIndirect(cmdBuffer, buffer, offset, count, stride); |
| 903 | } |
| 904 | |
| 905 | LOADER_EXPORT void VKAPI vkCmdDrawIndexedIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t count, uint32_t stride) |
| 906 | { |
| 907 | const VkLayerDispatchTable *disp; |
| 908 | |
| 909 | disp = loader_get_dispatch(cmdBuffer); |
| 910 | |
| 911 | disp->CmdDrawIndexedIndirect(cmdBuffer, buffer, offset, count, stride); |
| 912 | } |
| 913 | |
| 914 | LOADER_EXPORT void VKAPI vkCmdDispatch(VkCmdBuffer cmdBuffer, uint32_t x, uint32_t y, uint32_t z) |
| 915 | { |
| 916 | const VkLayerDispatchTable *disp; |
| 917 | |
| 918 | disp = loader_get_dispatch(cmdBuffer); |
| 919 | |
| 920 | disp->CmdDispatch(cmdBuffer, x, y, z); |
| 921 | } |
| 922 | |
| 923 | LOADER_EXPORT void VKAPI vkCmdDispatchIndirect(VkCmdBuffer cmdBuffer, VkBuffer buffer, VkDeviceSize offset) |
| 924 | { |
| 925 | const VkLayerDispatchTable *disp; |
| 926 | |
| 927 | disp = loader_get_dispatch(cmdBuffer); |
| 928 | |
| 929 | disp->CmdDispatchIndirect(cmdBuffer, buffer, offset); |
| 930 | } |
| 931 | |
| 932 | LOADER_EXPORT void VKAPI vkCmdCopyBuffer(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkBuffer destBuffer, uint32_t regionCount, const VkBufferCopy* pRegions) |
| 933 | { |
| 934 | const VkLayerDispatchTable *disp; |
| 935 | |
| 936 | disp = loader_get_dispatch(cmdBuffer); |
| 937 | |
| 938 | disp->CmdCopyBuffer(cmdBuffer, srcBuffer, destBuffer, regionCount, pRegions); |
| 939 | } |
| 940 | |
| 941 | LOADER_EXPORT void VKAPI vkCmdCopyImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageCopy* pRegions) |
| 942 | { |
| 943 | const VkLayerDispatchTable *disp; |
| 944 | |
| 945 | disp = loader_get_dispatch(cmdBuffer); |
| 946 | |
| 947 | disp->CmdCopyImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions); |
| 948 | } |
| 949 | |
Mark Lobodzinski | 20f6859 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 950 | 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 | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 951 | { |
| 952 | const VkLayerDispatchTable *disp; |
| 953 | |
| 954 | disp = loader_get_dispatch(cmdBuffer); |
| 955 | |
Mark Lobodzinski | 20f6859 | 2015-05-22 14:43:25 -0500 | [diff] [blame] | 956 | disp->CmdBlitImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions, filter); |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 957 | } |
| 958 | |
| 959 | LOADER_EXPORT void VKAPI vkCmdCopyBufferToImage(VkCmdBuffer cmdBuffer, VkBuffer srcBuffer, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkBufferImageCopy* pRegions) |
| 960 | { |
| 961 | const VkLayerDispatchTable *disp; |
| 962 | |
| 963 | disp = loader_get_dispatch(cmdBuffer); |
| 964 | |
| 965 | disp->CmdCopyBufferToImage(cmdBuffer, srcBuffer, destImage, destImageLayout, regionCount, pRegions); |
| 966 | } |
| 967 | |
| 968 | LOADER_EXPORT void VKAPI vkCmdCopyImageToBuffer(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer destBuffer, uint32_t regionCount, const VkBufferImageCopy* pRegions) |
| 969 | { |
| 970 | const VkLayerDispatchTable *disp; |
| 971 | |
| 972 | disp = loader_get_dispatch(cmdBuffer); |
| 973 | |
| 974 | disp->CmdCopyImageToBuffer(cmdBuffer, srcImage, srcImageLayout, destBuffer, regionCount, pRegions); |
| 975 | } |
| 976 | |
Jon Ashburn | 2139a3e | 2015-05-06 09:02:10 -0600 | [diff] [blame] | 977 | LOADER_EXPORT void VKAPI vkCmdUpdateBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize dataSize, const uint32_t* pData) |
| 978 | { |
| 979 | const VkLayerDispatchTable *disp; |
| 980 | |
| 981 | disp = loader_get_dispatch(cmdBuffer); |
| 982 | |
| 983 | disp->CmdUpdateBuffer(cmdBuffer, destBuffer, destOffset, dataSize, pData); |
| 984 | } |
| 985 | |
| 986 | LOADER_EXPORT void VKAPI vkCmdFillBuffer(VkCmdBuffer cmdBuffer, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize fillSize, uint32_t data) |
| 987 | { |
| 988 | const VkLayerDispatchTable *disp; |
| 989 | |
| 990 | disp = loader_get_dispatch(cmdBuffer); |
| 991 | |
| 992 | disp->CmdFillBuffer(cmdBuffer, destBuffer, destOffset, fillSize, data); |
| 993 | } |
| 994 | |
| 995 | LOADER_EXPORT void VKAPI vkCmdClearColorImage(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColor* pColor, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) |
| 996 | { |
| 997 | const VkLayerDispatchTable *disp; |
| 998 | |
| 999 | disp = loader_get_dispatch(cmdBuffer); |
| 1000 | |
| 1001 | disp->CmdClearColorImage(cmdBuffer, image, imageLayout, pColor, rangeCount, pRanges); |
| 1002 | } |
| 1003 | |
| 1004 | LOADER_EXPORT void VKAPI vkCmdClearDepthStencil(VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, float depth, uint32_t stencil, uint32_t rangeCount, const VkImageSubresourceRange* pRanges) |
| 1005 | { |
| 1006 | const VkLayerDispatchTable *disp; |
| 1007 | |
| 1008 | disp = loader_get_dispatch(cmdBuffer); |
| 1009 | |
| 1010 | disp->CmdClearDepthStencil(cmdBuffer, image, imageLayout, depth, stencil, rangeCount, pRanges); |
| 1011 | } |
| 1012 | |
| 1013 | LOADER_EXPORT void VKAPI vkCmdResolveImage(VkCmdBuffer cmdBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage destImage, VkImageLayout destImageLayout, uint32_t regionCount, const VkImageResolve* pRegions) |
| 1014 | { |
| 1015 | const VkLayerDispatchTable *disp; |
| 1016 | |
| 1017 | disp = loader_get_dispatch(cmdBuffer); |
| 1018 | |
| 1019 | disp->CmdResolveImage(cmdBuffer, srcImage, srcImageLayout, destImage, destImageLayout, regionCount, pRegions); |
| 1020 | } |
| 1021 | |
| 1022 | LOADER_EXPORT void VKAPI vkCmdSetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent) |
| 1023 | { |
| 1024 | const VkLayerDispatchTable *disp; |
| 1025 | |
| 1026 | disp = loader_get_dispatch(cmdBuffer); |
| 1027 | |
| 1028 | disp->CmdSetEvent(cmdBuffer, event, pipeEvent); |
| 1029 | } |
| 1030 | |
| 1031 | LOADER_EXPORT void VKAPI vkCmdResetEvent(VkCmdBuffer cmdBuffer, VkEvent event, VkPipeEvent pipeEvent) |
| 1032 | { |
| 1033 | const VkLayerDispatchTable *disp; |
| 1034 | |
| 1035 | disp = loader_get_dispatch(cmdBuffer); |
| 1036 | |
| 1037 | disp->CmdResetEvent(cmdBuffer, event, pipeEvent); |
| 1038 | } |
| 1039 | |
| 1040 | LOADER_EXPORT void VKAPI vkCmdWaitEvents(VkCmdBuffer cmdBuffer, VkWaitEvent waitEvent, uint32_t eventCount, const VkEvent* pEvents, uint32_t memBarrierCount, const void** ppMemBarriers) |
| 1041 | { |
| 1042 | const VkLayerDispatchTable *disp; |
| 1043 | |
| 1044 | disp = loader_get_dispatch(cmdBuffer); |
| 1045 | |
| 1046 | disp->CmdWaitEvents(cmdBuffer, waitEvent, eventCount, pEvents, memBarrierCount, ppMemBarriers); |
| 1047 | } |
| 1048 | |
| 1049 | LOADER_EXPORT void VKAPI vkCmdPipelineBarrier(VkCmdBuffer cmdBuffer, VkWaitEvent waitEvent, uint32_t pipeEventCount, const VkPipeEvent* pPipeEvents, uint32_t memBarrierCount, const void** ppMemBarriers) |
| 1050 | { |
| 1051 | const VkLayerDispatchTable *disp; |
| 1052 | |
| 1053 | disp = loader_get_dispatch(cmdBuffer); |
| 1054 | |
| 1055 | disp->CmdPipelineBarrier(cmdBuffer, waitEvent, pipeEventCount, pPipeEvents, memBarrierCount, ppMemBarriers); |
| 1056 | } |
| 1057 | |
| 1058 | LOADER_EXPORT void VKAPI vkCmdBeginQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot, VkFlags flags) |
| 1059 | { |
| 1060 | const VkLayerDispatchTable *disp; |
| 1061 | |
| 1062 | disp = loader_get_dispatch(cmdBuffer); |
| 1063 | |
| 1064 | disp->CmdBeginQuery(cmdBuffer, queryPool, slot, flags); |
| 1065 | } |
| 1066 | |
| 1067 | LOADER_EXPORT void VKAPI vkCmdEndQuery(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t slot) |
| 1068 | { |
| 1069 | const VkLayerDispatchTable *disp; |
| 1070 | |
| 1071 | disp = loader_get_dispatch(cmdBuffer); |
| 1072 | |
| 1073 | disp->CmdEndQuery(cmdBuffer, queryPool, slot); |
| 1074 | } |
| 1075 | |
| 1076 | LOADER_EXPORT void VKAPI vkCmdResetQueryPool(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount) |
| 1077 | { |
| 1078 | const VkLayerDispatchTable *disp; |
| 1079 | |
| 1080 | disp = loader_get_dispatch(cmdBuffer); |
| 1081 | |
| 1082 | disp->CmdResetQueryPool(cmdBuffer, queryPool, startQuery, queryCount); |
| 1083 | } |
| 1084 | |
| 1085 | LOADER_EXPORT void VKAPI vkCmdWriteTimestamp(VkCmdBuffer cmdBuffer, VkTimestampType timestampType, VkBuffer destBuffer, VkDeviceSize destOffset) |
| 1086 | { |
| 1087 | const VkLayerDispatchTable *disp; |
| 1088 | |
| 1089 | disp = loader_get_dispatch(cmdBuffer); |
| 1090 | |
| 1091 | disp->CmdWriteTimestamp(cmdBuffer, timestampType, destBuffer, destOffset); |
| 1092 | } |
| 1093 | |
| 1094 | LOADER_EXPORT void VKAPI vkCmdCopyQueryPoolResults(VkCmdBuffer cmdBuffer, VkQueryPool queryPool, uint32_t startQuery, uint32_t queryCount, VkBuffer destBuffer, VkDeviceSize destOffset, VkDeviceSize destStride, VkFlags flags) |
| 1095 | { |
| 1096 | const VkLayerDispatchTable *disp; |
| 1097 | |
| 1098 | disp = loader_get_dispatch(cmdBuffer); |
| 1099 | |
| 1100 | disp->CmdCopyQueryPoolResults(cmdBuffer, queryPool, startQuery, queryCount, destBuffer, destOffset, destStride, flags); |
| 1101 | } |
| 1102 | |
| 1103 | LOADER_EXPORT void VKAPI vkCmdInitAtomicCounters(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, const uint32_t* pData) |
| 1104 | { |
| 1105 | const VkLayerDispatchTable *disp; |
| 1106 | |
| 1107 | disp = loader_get_dispatch(cmdBuffer); |
| 1108 | |
| 1109 | disp->CmdInitAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, pData); |
| 1110 | } |
| 1111 | |
| 1112 | LOADER_EXPORT void VKAPI vkCmdLoadAtomicCounters(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer srcBuffer, VkDeviceSize srcOffset) |
| 1113 | { |
| 1114 | const VkLayerDispatchTable *disp; |
| 1115 | |
| 1116 | disp = loader_get_dispatch(cmdBuffer); |
| 1117 | |
| 1118 | disp->CmdLoadAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, srcBuffer, srcOffset); |
| 1119 | } |
| 1120 | |
| 1121 | LOADER_EXPORT void VKAPI vkCmdSaveAtomicCounters(VkCmdBuffer cmdBuffer, VkPipelineBindPoint pipelineBindPoint, uint32_t startCounter, uint32_t counterCount, VkBuffer destBuffer, VkDeviceSize destOffset) |
| 1122 | { |
| 1123 | const VkLayerDispatchTable *disp; |
| 1124 | |
| 1125 | disp = loader_get_dispatch(cmdBuffer); |
| 1126 | |
| 1127 | disp->CmdSaveAtomicCounters(cmdBuffer, pipelineBindPoint, startCounter, counterCount, destBuffer, destOffset); |
| 1128 | } |
| 1129 | |
| 1130 | LOADER_EXPORT VkResult VKAPI vkCreateFramebuffer(VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, VkFramebuffer* pFramebuffer) |
| 1131 | { |
| 1132 | const VkLayerDispatchTable *disp; |
| 1133 | |
| 1134 | disp = loader_get_dispatch(device); |
| 1135 | |
| 1136 | return disp->CreateFramebuffer(device, pCreateInfo, pFramebuffer); |
| 1137 | } |
| 1138 | |
| 1139 | LOADER_EXPORT VkResult VKAPI vkCreateRenderPass(VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, VkRenderPass* pRenderPass) |
| 1140 | { |
| 1141 | const VkLayerDispatchTable *disp; |
| 1142 | |
| 1143 | disp = loader_get_dispatch(device); |
| 1144 | |
| 1145 | return disp->CreateRenderPass(device, pCreateInfo, pRenderPass); |
| 1146 | } |
| 1147 | |
| 1148 | LOADER_EXPORT void VKAPI vkCmdBeginRenderPass(VkCmdBuffer cmdBuffer, const VkRenderPassBegin* pRenderPassBegin) |
| 1149 | { |
| 1150 | const VkLayerDispatchTable *disp; |
| 1151 | |
| 1152 | disp = loader_get_dispatch(cmdBuffer); |
| 1153 | |
| 1154 | disp->CmdBeginRenderPass(cmdBuffer, pRenderPassBegin); |
| 1155 | } |
| 1156 | |
| 1157 | LOADER_EXPORT void VKAPI vkCmdEndRenderPass(VkCmdBuffer cmdBuffer, VkRenderPass renderPass) |
| 1158 | { |
| 1159 | const VkLayerDispatchTable *disp; |
| 1160 | |
| 1161 | disp = loader_get_dispatch(cmdBuffer); |
| 1162 | |
| 1163 | disp->CmdEndRenderPass(cmdBuffer, renderPass); |
| 1164 | } |