Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 1 | // Copyright (C) 2018 The Android Open Source Project |
| 2 | // Copyright (C) 2018 Google Inc. |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | // Autogenerated module func_table |
| 17 | // (impl) generated by android/android-emugl/host/libs/libOpenglRender/vulkan-registry/xml/genvk.py -registry android/android-emugl/host/libs/libOpenglRender/vulkan-registry/xml/vk.xml cereal -o android/android-emugl/host/libs/libOpenglRender/vulkan/cereal |
| 18 | // Please do not modify directly; |
| 19 | // re-run android/scripts/generate-vulkan-sources.sh, |
| 20 | // or directly from Python by defining: |
| 21 | // VULKAN_REGISTRY_XML_DIR : Directory containing genvk.py and vk.xml |
| 22 | // CEREAL_OUTPUT_DIR: Where to put the generated sources. |
| 23 | // python3 $VULKAN_REGISTRY_XML_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o $CEREAL_OUTPUT_DIR |
| 24 | |
| 25 | #include "func_table.h" |
| 26 | |
| 27 | |
| 28 | #include "VkEncoder.h" |
| 29 | #include "HostConnection.h" |
Lingfeng Yang | e997952 | 2018-12-25 14:44:52 -0800 | [diff] [blame^] | 30 | #include "ResourceTracker.h" |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 31 | |
Lingfeng Yang | 808a631 | 2018-11-13 21:06:15 -0800 | [diff] [blame] | 32 | #include "goldfish_vk_private_defs.h" |
| 33 | |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 34 | // Stuff we are not going to use but if included, |
| 35 | // will cause compile errors. These are Android Vulkan |
| 36 | // required extensions, but the approach will be to |
| 37 | // implement them completely on the guest side. |
| 38 | #undef VK_KHR_android_surface |
| 39 | #undef VK_ANDROID_external_memory_android_hardware_buffer |
| 40 | |
| 41 | |
| 42 | namespace goldfish_vk { |
| 43 | |
| 44 | #ifdef VK_VERSION_1_0 |
| 45 | static VkResult entry_vkCreateInstance( |
| 46 | const VkInstanceCreateInfo* pCreateInfo, |
| 47 | const VkAllocationCallbacks* pAllocator, |
| 48 | VkInstance* pInstance) |
| 49 | { |
| 50 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 51 | VkResult vkCreateInstance_VkResult_return = (VkResult)0; |
| 52 | vkCreateInstance_VkResult_return = vkEnc->vkCreateInstance(pCreateInfo, pAllocator, pInstance); |
| 53 | return vkCreateInstance_VkResult_return; |
| 54 | } |
| 55 | static void entry_vkDestroyInstance( |
| 56 | VkInstance instance, |
| 57 | const VkAllocationCallbacks* pAllocator) |
| 58 | { |
| 59 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 60 | vkEnc->vkDestroyInstance(instance, pAllocator); |
| 61 | } |
| 62 | static VkResult entry_vkEnumeratePhysicalDevices( |
| 63 | VkInstance instance, |
| 64 | uint32_t* pPhysicalDeviceCount, |
| 65 | VkPhysicalDevice* pPhysicalDevices) |
| 66 | { |
| 67 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 68 | VkResult vkEnumeratePhysicalDevices_VkResult_return = (VkResult)0; |
| 69 | vkEnumeratePhysicalDevices_VkResult_return = vkEnc->vkEnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices); |
| 70 | return vkEnumeratePhysicalDevices_VkResult_return; |
| 71 | } |
| 72 | static void entry_vkGetPhysicalDeviceFeatures( |
| 73 | VkPhysicalDevice physicalDevice, |
| 74 | VkPhysicalDeviceFeatures* pFeatures) |
| 75 | { |
| 76 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 77 | vkEnc->vkGetPhysicalDeviceFeatures(physicalDevice, pFeatures); |
| 78 | } |
| 79 | static void entry_vkGetPhysicalDeviceFormatProperties( |
| 80 | VkPhysicalDevice physicalDevice, |
| 81 | VkFormat format, |
| 82 | VkFormatProperties* pFormatProperties) |
| 83 | { |
| 84 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 85 | vkEnc->vkGetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatProperties); |
| 86 | } |
| 87 | static VkResult entry_vkGetPhysicalDeviceImageFormatProperties( |
| 88 | VkPhysicalDevice physicalDevice, |
| 89 | VkFormat format, |
| 90 | VkImageType type, |
| 91 | VkImageTiling tiling, |
| 92 | VkImageUsageFlags usage, |
| 93 | VkImageCreateFlags flags, |
| 94 | VkImageFormatProperties* pImageFormatProperties) |
| 95 | { |
| 96 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 97 | VkResult vkGetPhysicalDeviceImageFormatProperties_VkResult_return = (VkResult)0; |
| 98 | vkGetPhysicalDeviceImageFormatProperties_VkResult_return = vkEnc->vkGetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties); |
| 99 | return vkGetPhysicalDeviceImageFormatProperties_VkResult_return; |
| 100 | } |
| 101 | static void entry_vkGetPhysicalDeviceProperties( |
| 102 | VkPhysicalDevice physicalDevice, |
| 103 | VkPhysicalDeviceProperties* pProperties) |
| 104 | { |
| 105 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 106 | vkEnc->vkGetPhysicalDeviceProperties(physicalDevice, pProperties); |
| 107 | } |
| 108 | static void entry_vkGetPhysicalDeviceQueueFamilyProperties( |
| 109 | VkPhysicalDevice physicalDevice, |
| 110 | uint32_t* pQueueFamilyPropertyCount, |
| 111 | VkQueueFamilyProperties* pQueueFamilyProperties) |
| 112 | { |
| 113 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 114 | vkEnc->vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); |
| 115 | } |
| 116 | static void entry_vkGetPhysicalDeviceMemoryProperties( |
| 117 | VkPhysicalDevice physicalDevice, |
| 118 | VkPhysicalDeviceMemoryProperties* pMemoryProperties) |
| 119 | { |
| 120 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 121 | vkEnc->vkGetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties); |
| 122 | } |
| 123 | static PFN_vkVoidFunction entry_vkGetInstanceProcAddr( |
| 124 | VkInstance instance, |
| 125 | const char* pName) |
| 126 | { |
| 127 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 128 | PFN_vkVoidFunction vkGetInstanceProcAddr_PFN_vkVoidFunction_return = (PFN_vkVoidFunction)0; |
| 129 | vkGetInstanceProcAddr_PFN_vkVoidFunction_return = vkEnc->vkGetInstanceProcAddr(instance, pName); |
| 130 | return vkGetInstanceProcAddr_PFN_vkVoidFunction_return; |
| 131 | } |
| 132 | static PFN_vkVoidFunction entry_vkGetDeviceProcAddr( |
| 133 | VkDevice device, |
| 134 | const char* pName) |
| 135 | { |
| 136 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 137 | PFN_vkVoidFunction vkGetDeviceProcAddr_PFN_vkVoidFunction_return = (PFN_vkVoidFunction)0; |
| 138 | vkGetDeviceProcAddr_PFN_vkVoidFunction_return = vkEnc->vkGetDeviceProcAddr(device, pName); |
| 139 | return vkGetDeviceProcAddr_PFN_vkVoidFunction_return; |
| 140 | } |
| 141 | static VkResult entry_vkCreateDevice( |
| 142 | VkPhysicalDevice physicalDevice, |
| 143 | const VkDeviceCreateInfo* pCreateInfo, |
| 144 | const VkAllocationCallbacks* pAllocator, |
| 145 | VkDevice* pDevice) |
| 146 | { |
| 147 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 148 | VkResult vkCreateDevice_VkResult_return = (VkResult)0; |
| 149 | vkCreateDevice_VkResult_return = vkEnc->vkCreateDevice(physicalDevice, pCreateInfo, pAllocator, pDevice); |
| 150 | return vkCreateDevice_VkResult_return; |
| 151 | } |
| 152 | static void entry_vkDestroyDevice( |
| 153 | VkDevice device, |
| 154 | const VkAllocationCallbacks* pAllocator) |
| 155 | { |
| 156 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 157 | vkEnc->vkDestroyDevice(device, pAllocator); |
| 158 | } |
| 159 | static VkResult entry_vkEnumerateInstanceExtensionProperties( |
| 160 | const char* pLayerName, |
| 161 | uint32_t* pPropertyCount, |
| 162 | VkExtensionProperties* pProperties) |
| 163 | { |
| 164 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 165 | VkResult vkEnumerateInstanceExtensionProperties_VkResult_return = (VkResult)0; |
| 166 | vkEnumerateInstanceExtensionProperties_VkResult_return = vkEnc->vkEnumerateInstanceExtensionProperties(pLayerName, pPropertyCount, pProperties); |
| 167 | return vkEnumerateInstanceExtensionProperties_VkResult_return; |
| 168 | } |
| 169 | static VkResult entry_vkEnumerateDeviceExtensionProperties( |
| 170 | VkPhysicalDevice physicalDevice, |
| 171 | const char* pLayerName, |
| 172 | uint32_t* pPropertyCount, |
| 173 | VkExtensionProperties* pProperties) |
| 174 | { |
| 175 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 176 | VkResult vkEnumerateDeviceExtensionProperties_VkResult_return = (VkResult)0; |
| 177 | vkEnumerateDeviceExtensionProperties_VkResult_return = vkEnc->vkEnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pPropertyCount, pProperties); |
| 178 | return vkEnumerateDeviceExtensionProperties_VkResult_return; |
| 179 | } |
| 180 | static VkResult entry_vkEnumerateInstanceLayerProperties( |
| 181 | uint32_t* pPropertyCount, |
| 182 | VkLayerProperties* pProperties) |
| 183 | { |
| 184 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 185 | VkResult vkEnumerateInstanceLayerProperties_VkResult_return = (VkResult)0; |
| 186 | vkEnumerateInstanceLayerProperties_VkResult_return = vkEnc->vkEnumerateInstanceLayerProperties(pPropertyCount, pProperties); |
| 187 | return vkEnumerateInstanceLayerProperties_VkResult_return; |
| 188 | } |
| 189 | static VkResult entry_vkEnumerateDeviceLayerProperties( |
| 190 | VkPhysicalDevice physicalDevice, |
| 191 | uint32_t* pPropertyCount, |
| 192 | VkLayerProperties* pProperties) |
| 193 | { |
| 194 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 195 | VkResult vkEnumerateDeviceLayerProperties_VkResult_return = (VkResult)0; |
| 196 | vkEnumerateDeviceLayerProperties_VkResult_return = vkEnc->vkEnumerateDeviceLayerProperties(physicalDevice, pPropertyCount, pProperties); |
| 197 | return vkEnumerateDeviceLayerProperties_VkResult_return; |
| 198 | } |
| 199 | static void entry_vkGetDeviceQueue( |
| 200 | VkDevice device, |
| 201 | uint32_t queueFamilyIndex, |
| 202 | uint32_t queueIndex, |
| 203 | VkQueue* pQueue) |
| 204 | { |
| 205 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 206 | vkEnc->vkGetDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue); |
| 207 | } |
| 208 | static VkResult entry_vkQueueSubmit( |
| 209 | VkQueue queue, |
| 210 | uint32_t submitCount, |
| 211 | const VkSubmitInfo* pSubmits, |
| 212 | VkFence fence) |
| 213 | { |
| 214 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 215 | VkResult vkQueueSubmit_VkResult_return = (VkResult)0; |
| 216 | vkQueueSubmit_VkResult_return = vkEnc->vkQueueSubmit(queue, submitCount, pSubmits, fence); |
| 217 | return vkQueueSubmit_VkResult_return; |
| 218 | } |
| 219 | static VkResult entry_vkQueueWaitIdle( |
| 220 | VkQueue queue) |
| 221 | { |
| 222 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 223 | VkResult vkQueueWaitIdle_VkResult_return = (VkResult)0; |
| 224 | vkQueueWaitIdle_VkResult_return = vkEnc->vkQueueWaitIdle(queue); |
| 225 | return vkQueueWaitIdle_VkResult_return; |
| 226 | } |
| 227 | static VkResult entry_vkDeviceWaitIdle( |
| 228 | VkDevice device) |
| 229 | { |
| 230 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 231 | VkResult vkDeviceWaitIdle_VkResult_return = (VkResult)0; |
| 232 | vkDeviceWaitIdle_VkResult_return = vkEnc->vkDeviceWaitIdle(device); |
| 233 | return vkDeviceWaitIdle_VkResult_return; |
| 234 | } |
| 235 | static VkResult entry_vkAllocateMemory( |
| 236 | VkDevice device, |
| 237 | const VkMemoryAllocateInfo* pAllocateInfo, |
| 238 | const VkAllocationCallbacks* pAllocator, |
| 239 | VkDeviceMemory* pMemory) |
| 240 | { |
| 241 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 242 | VkResult vkAllocateMemory_VkResult_return = (VkResult)0; |
Lingfeng Yang | e997952 | 2018-12-25 14:44:52 -0800 | [diff] [blame^] | 243 | auto resources = ResourceTracker::get(); |
| 244 | vkAllocateMemory_VkResult_return = resources->on_vkAllocateMemory(vkEnc, VK_SUCCESS, device, pAllocateInfo, pAllocator, pMemory); |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 245 | return vkAllocateMemory_VkResult_return; |
| 246 | } |
| 247 | static void entry_vkFreeMemory( |
| 248 | VkDevice device, |
| 249 | VkDeviceMemory memory, |
| 250 | const VkAllocationCallbacks* pAllocator) |
| 251 | { |
| 252 | auto vkEnc = HostConnection::get()->vkEncoder(); |
Lingfeng Yang | e997952 | 2018-12-25 14:44:52 -0800 | [diff] [blame^] | 253 | auto resources = ResourceTracker::get(); |
| 254 | resources->on_vkFreeMemory(vkEnc, device, memory, pAllocator); |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 255 | } |
| 256 | static VkResult entry_vkMapMemory( |
| 257 | VkDevice device, |
| 258 | VkDeviceMemory memory, |
| 259 | VkDeviceSize offset, |
| 260 | VkDeviceSize size, |
| 261 | VkMemoryMapFlags flags, |
| 262 | void** ppData) |
| 263 | { |
| 264 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 265 | VkResult vkMapMemory_VkResult_return = (VkResult)0; |
| 266 | vkMapMemory_VkResult_return = vkEnc->vkMapMemory(device, memory, offset, size, flags, ppData); |
| 267 | return vkMapMemory_VkResult_return; |
| 268 | } |
| 269 | static void entry_vkUnmapMemory( |
| 270 | VkDevice device, |
| 271 | VkDeviceMemory memory) |
| 272 | { |
| 273 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 274 | vkEnc->vkUnmapMemory(device, memory); |
| 275 | } |
| 276 | static VkResult entry_vkFlushMappedMemoryRanges( |
| 277 | VkDevice device, |
| 278 | uint32_t memoryRangeCount, |
| 279 | const VkMappedMemoryRange* pMemoryRanges) |
| 280 | { |
| 281 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 282 | VkResult vkFlushMappedMemoryRanges_VkResult_return = (VkResult)0; |
| 283 | vkFlushMappedMemoryRanges_VkResult_return = vkEnc->vkFlushMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); |
| 284 | return vkFlushMappedMemoryRanges_VkResult_return; |
| 285 | } |
| 286 | static VkResult entry_vkInvalidateMappedMemoryRanges( |
| 287 | VkDevice device, |
| 288 | uint32_t memoryRangeCount, |
| 289 | const VkMappedMemoryRange* pMemoryRanges) |
| 290 | { |
| 291 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 292 | VkResult vkInvalidateMappedMemoryRanges_VkResult_return = (VkResult)0; |
| 293 | vkInvalidateMappedMemoryRanges_VkResult_return = vkEnc->vkInvalidateMappedMemoryRanges(device, memoryRangeCount, pMemoryRanges); |
| 294 | return vkInvalidateMappedMemoryRanges_VkResult_return; |
| 295 | } |
| 296 | static void entry_vkGetDeviceMemoryCommitment( |
| 297 | VkDevice device, |
| 298 | VkDeviceMemory memory, |
| 299 | VkDeviceSize* pCommittedMemoryInBytes) |
| 300 | { |
| 301 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 302 | vkEnc->vkGetDeviceMemoryCommitment(device, memory, pCommittedMemoryInBytes); |
| 303 | } |
| 304 | static VkResult entry_vkBindBufferMemory( |
| 305 | VkDevice device, |
| 306 | VkBuffer buffer, |
| 307 | VkDeviceMemory memory, |
| 308 | VkDeviceSize memoryOffset) |
| 309 | { |
| 310 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 311 | VkResult vkBindBufferMemory_VkResult_return = (VkResult)0; |
| 312 | vkBindBufferMemory_VkResult_return = vkEnc->vkBindBufferMemory(device, buffer, memory, memoryOffset); |
| 313 | return vkBindBufferMemory_VkResult_return; |
| 314 | } |
| 315 | static VkResult entry_vkBindImageMemory( |
| 316 | VkDevice device, |
| 317 | VkImage image, |
| 318 | VkDeviceMemory memory, |
| 319 | VkDeviceSize memoryOffset) |
| 320 | { |
| 321 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 322 | VkResult vkBindImageMemory_VkResult_return = (VkResult)0; |
| 323 | vkBindImageMemory_VkResult_return = vkEnc->vkBindImageMemory(device, image, memory, memoryOffset); |
| 324 | return vkBindImageMemory_VkResult_return; |
| 325 | } |
| 326 | static void entry_vkGetBufferMemoryRequirements( |
| 327 | VkDevice device, |
| 328 | VkBuffer buffer, |
| 329 | VkMemoryRequirements* pMemoryRequirements) |
| 330 | { |
| 331 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 332 | vkEnc->vkGetBufferMemoryRequirements(device, buffer, pMemoryRequirements); |
| 333 | } |
| 334 | static void entry_vkGetImageMemoryRequirements( |
| 335 | VkDevice device, |
| 336 | VkImage image, |
| 337 | VkMemoryRequirements* pMemoryRequirements) |
| 338 | { |
| 339 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 340 | vkEnc->vkGetImageMemoryRequirements(device, image, pMemoryRequirements); |
| 341 | } |
| 342 | static void entry_vkGetImageSparseMemoryRequirements( |
| 343 | VkDevice device, |
| 344 | VkImage image, |
| 345 | uint32_t* pSparseMemoryRequirementCount, |
| 346 | VkSparseImageMemoryRequirements* pSparseMemoryRequirements) |
| 347 | { |
| 348 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 349 | vkEnc->vkGetImageSparseMemoryRequirements(device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements); |
| 350 | } |
| 351 | static void entry_vkGetPhysicalDeviceSparseImageFormatProperties( |
| 352 | VkPhysicalDevice physicalDevice, |
| 353 | VkFormat format, |
| 354 | VkImageType type, |
| 355 | VkSampleCountFlagBits samples, |
| 356 | VkImageUsageFlags usage, |
| 357 | VkImageTiling tiling, |
| 358 | uint32_t* pPropertyCount, |
| 359 | VkSparseImageFormatProperties* pProperties) |
| 360 | { |
| 361 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 362 | vkEnc->vkGetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties); |
| 363 | } |
| 364 | static VkResult entry_vkQueueBindSparse( |
| 365 | VkQueue queue, |
| 366 | uint32_t bindInfoCount, |
| 367 | const VkBindSparseInfo* pBindInfo, |
| 368 | VkFence fence) |
| 369 | { |
| 370 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 371 | VkResult vkQueueBindSparse_VkResult_return = (VkResult)0; |
| 372 | vkQueueBindSparse_VkResult_return = vkEnc->vkQueueBindSparse(queue, bindInfoCount, pBindInfo, fence); |
| 373 | return vkQueueBindSparse_VkResult_return; |
| 374 | } |
| 375 | static VkResult entry_vkCreateFence( |
| 376 | VkDevice device, |
| 377 | const VkFenceCreateInfo* pCreateInfo, |
| 378 | const VkAllocationCallbacks* pAllocator, |
| 379 | VkFence* pFence) |
| 380 | { |
| 381 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 382 | VkResult vkCreateFence_VkResult_return = (VkResult)0; |
| 383 | vkCreateFence_VkResult_return = vkEnc->vkCreateFence(device, pCreateInfo, pAllocator, pFence); |
| 384 | return vkCreateFence_VkResult_return; |
| 385 | } |
| 386 | static void entry_vkDestroyFence( |
| 387 | VkDevice device, |
| 388 | VkFence fence, |
| 389 | const VkAllocationCallbacks* pAllocator) |
| 390 | { |
| 391 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 392 | vkEnc->vkDestroyFence(device, fence, pAllocator); |
| 393 | } |
| 394 | static VkResult entry_vkResetFences( |
| 395 | VkDevice device, |
| 396 | uint32_t fenceCount, |
| 397 | const VkFence* pFences) |
| 398 | { |
| 399 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 400 | VkResult vkResetFences_VkResult_return = (VkResult)0; |
| 401 | vkResetFences_VkResult_return = vkEnc->vkResetFences(device, fenceCount, pFences); |
| 402 | return vkResetFences_VkResult_return; |
| 403 | } |
| 404 | static VkResult entry_vkGetFenceStatus( |
| 405 | VkDevice device, |
| 406 | VkFence fence) |
| 407 | { |
| 408 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 409 | VkResult vkGetFenceStatus_VkResult_return = (VkResult)0; |
| 410 | vkGetFenceStatus_VkResult_return = vkEnc->vkGetFenceStatus(device, fence); |
| 411 | return vkGetFenceStatus_VkResult_return; |
| 412 | } |
| 413 | static VkResult entry_vkWaitForFences( |
| 414 | VkDevice device, |
| 415 | uint32_t fenceCount, |
| 416 | const VkFence* pFences, |
| 417 | VkBool32 waitAll, |
| 418 | uint64_t timeout) |
| 419 | { |
| 420 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 421 | VkResult vkWaitForFences_VkResult_return = (VkResult)0; |
| 422 | vkWaitForFences_VkResult_return = vkEnc->vkWaitForFences(device, fenceCount, pFences, waitAll, timeout); |
| 423 | return vkWaitForFences_VkResult_return; |
| 424 | } |
| 425 | static VkResult entry_vkCreateSemaphore( |
| 426 | VkDevice device, |
| 427 | const VkSemaphoreCreateInfo* pCreateInfo, |
| 428 | const VkAllocationCallbacks* pAllocator, |
| 429 | VkSemaphore* pSemaphore) |
| 430 | { |
| 431 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 432 | VkResult vkCreateSemaphore_VkResult_return = (VkResult)0; |
| 433 | vkCreateSemaphore_VkResult_return = vkEnc->vkCreateSemaphore(device, pCreateInfo, pAllocator, pSemaphore); |
| 434 | return vkCreateSemaphore_VkResult_return; |
| 435 | } |
| 436 | static void entry_vkDestroySemaphore( |
| 437 | VkDevice device, |
| 438 | VkSemaphore semaphore, |
| 439 | const VkAllocationCallbacks* pAllocator) |
| 440 | { |
| 441 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 442 | vkEnc->vkDestroySemaphore(device, semaphore, pAllocator); |
| 443 | } |
| 444 | static VkResult entry_vkCreateEvent( |
| 445 | VkDevice device, |
| 446 | const VkEventCreateInfo* pCreateInfo, |
| 447 | const VkAllocationCallbacks* pAllocator, |
| 448 | VkEvent* pEvent) |
| 449 | { |
| 450 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 451 | VkResult vkCreateEvent_VkResult_return = (VkResult)0; |
| 452 | vkCreateEvent_VkResult_return = vkEnc->vkCreateEvent(device, pCreateInfo, pAllocator, pEvent); |
| 453 | return vkCreateEvent_VkResult_return; |
| 454 | } |
| 455 | static void entry_vkDestroyEvent( |
| 456 | VkDevice device, |
| 457 | VkEvent event, |
| 458 | const VkAllocationCallbacks* pAllocator) |
| 459 | { |
| 460 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 461 | vkEnc->vkDestroyEvent(device, event, pAllocator); |
| 462 | } |
| 463 | static VkResult entry_vkGetEventStatus( |
| 464 | VkDevice device, |
| 465 | VkEvent event) |
| 466 | { |
| 467 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 468 | VkResult vkGetEventStatus_VkResult_return = (VkResult)0; |
| 469 | vkGetEventStatus_VkResult_return = vkEnc->vkGetEventStatus(device, event); |
| 470 | return vkGetEventStatus_VkResult_return; |
| 471 | } |
| 472 | static VkResult entry_vkSetEvent( |
| 473 | VkDevice device, |
| 474 | VkEvent event) |
| 475 | { |
| 476 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 477 | VkResult vkSetEvent_VkResult_return = (VkResult)0; |
| 478 | vkSetEvent_VkResult_return = vkEnc->vkSetEvent(device, event); |
| 479 | return vkSetEvent_VkResult_return; |
| 480 | } |
| 481 | static VkResult entry_vkResetEvent( |
| 482 | VkDevice device, |
| 483 | VkEvent event) |
| 484 | { |
| 485 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 486 | VkResult vkResetEvent_VkResult_return = (VkResult)0; |
| 487 | vkResetEvent_VkResult_return = vkEnc->vkResetEvent(device, event); |
| 488 | return vkResetEvent_VkResult_return; |
| 489 | } |
| 490 | static VkResult entry_vkCreateQueryPool( |
| 491 | VkDevice device, |
| 492 | const VkQueryPoolCreateInfo* pCreateInfo, |
| 493 | const VkAllocationCallbacks* pAllocator, |
| 494 | VkQueryPool* pQueryPool) |
| 495 | { |
| 496 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 497 | VkResult vkCreateQueryPool_VkResult_return = (VkResult)0; |
| 498 | vkCreateQueryPool_VkResult_return = vkEnc->vkCreateQueryPool(device, pCreateInfo, pAllocator, pQueryPool); |
| 499 | return vkCreateQueryPool_VkResult_return; |
| 500 | } |
| 501 | static void entry_vkDestroyQueryPool( |
| 502 | VkDevice device, |
| 503 | VkQueryPool queryPool, |
| 504 | const VkAllocationCallbacks* pAllocator) |
| 505 | { |
| 506 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 507 | vkEnc->vkDestroyQueryPool(device, queryPool, pAllocator); |
| 508 | } |
| 509 | static VkResult entry_vkGetQueryPoolResults( |
| 510 | VkDevice device, |
| 511 | VkQueryPool queryPool, |
| 512 | uint32_t firstQuery, |
| 513 | uint32_t queryCount, |
| 514 | size_t dataSize, |
| 515 | void* pData, |
| 516 | VkDeviceSize stride, |
| 517 | VkQueryResultFlags flags) |
| 518 | { |
| 519 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 520 | VkResult vkGetQueryPoolResults_VkResult_return = (VkResult)0; |
| 521 | vkGetQueryPoolResults_VkResult_return = vkEnc->vkGetQueryPoolResults(device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags); |
| 522 | return vkGetQueryPoolResults_VkResult_return; |
| 523 | } |
| 524 | static VkResult entry_vkCreateBuffer( |
| 525 | VkDevice device, |
| 526 | const VkBufferCreateInfo* pCreateInfo, |
| 527 | const VkAllocationCallbacks* pAllocator, |
| 528 | VkBuffer* pBuffer) |
| 529 | { |
| 530 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 531 | VkResult vkCreateBuffer_VkResult_return = (VkResult)0; |
| 532 | vkCreateBuffer_VkResult_return = vkEnc->vkCreateBuffer(device, pCreateInfo, pAllocator, pBuffer); |
| 533 | return vkCreateBuffer_VkResult_return; |
| 534 | } |
| 535 | static void entry_vkDestroyBuffer( |
| 536 | VkDevice device, |
| 537 | VkBuffer buffer, |
| 538 | const VkAllocationCallbacks* pAllocator) |
| 539 | { |
| 540 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 541 | vkEnc->vkDestroyBuffer(device, buffer, pAllocator); |
| 542 | } |
| 543 | static VkResult entry_vkCreateBufferView( |
| 544 | VkDevice device, |
| 545 | const VkBufferViewCreateInfo* pCreateInfo, |
| 546 | const VkAllocationCallbacks* pAllocator, |
| 547 | VkBufferView* pView) |
| 548 | { |
| 549 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 550 | VkResult vkCreateBufferView_VkResult_return = (VkResult)0; |
| 551 | vkCreateBufferView_VkResult_return = vkEnc->vkCreateBufferView(device, pCreateInfo, pAllocator, pView); |
| 552 | return vkCreateBufferView_VkResult_return; |
| 553 | } |
| 554 | static void entry_vkDestroyBufferView( |
| 555 | VkDevice device, |
| 556 | VkBufferView bufferView, |
| 557 | const VkAllocationCallbacks* pAllocator) |
| 558 | { |
| 559 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 560 | vkEnc->vkDestroyBufferView(device, bufferView, pAllocator); |
| 561 | } |
| 562 | static VkResult entry_vkCreateImage( |
| 563 | VkDevice device, |
| 564 | const VkImageCreateInfo* pCreateInfo, |
| 565 | const VkAllocationCallbacks* pAllocator, |
| 566 | VkImage* pImage) |
| 567 | { |
| 568 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 569 | VkResult vkCreateImage_VkResult_return = (VkResult)0; |
| 570 | vkCreateImage_VkResult_return = vkEnc->vkCreateImage(device, pCreateInfo, pAllocator, pImage); |
| 571 | return vkCreateImage_VkResult_return; |
| 572 | } |
| 573 | static void entry_vkDestroyImage( |
| 574 | VkDevice device, |
| 575 | VkImage image, |
| 576 | const VkAllocationCallbacks* pAllocator) |
| 577 | { |
| 578 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 579 | vkEnc->vkDestroyImage(device, image, pAllocator); |
| 580 | } |
| 581 | static void entry_vkGetImageSubresourceLayout( |
| 582 | VkDevice device, |
| 583 | VkImage image, |
| 584 | const VkImageSubresource* pSubresource, |
| 585 | VkSubresourceLayout* pLayout) |
| 586 | { |
| 587 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 588 | vkEnc->vkGetImageSubresourceLayout(device, image, pSubresource, pLayout); |
| 589 | } |
| 590 | static VkResult entry_vkCreateImageView( |
| 591 | VkDevice device, |
| 592 | const VkImageViewCreateInfo* pCreateInfo, |
| 593 | const VkAllocationCallbacks* pAllocator, |
| 594 | VkImageView* pView) |
| 595 | { |
| 596 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 597 | VkResult vkCreateImageView_VkResult_return = (VkResult)0; |
| 598 | vkCreateImageView_VkResult_return = vkEnc->vkCreateImageView(device, pCreateInfo, pAllocator, pView); |
| 599 | return vkCreateImageView_VkResult_return; |
| 600 | } |
| 601 | static void entry_vkDestroyImageView( |
| 602 | VkDevice device, |
| 603 | VkImageView imageView, |
| 604 | const VkAllocationCallbacks* pAllocator) |
| 605 | { |
| 606 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 607 | vkEnc->vkDestroyImageView(device, imageView, pAllocator); |
| 608 | } |
| 609 | static VkResult entry_vkCreateShaderModule( |
| 610 | VkDevice device, |
| 611 | const VkShaderModuleCreateInfo* pCreateInfo, |
| 612 | const VkAllocationCallbacks* pAllocator, |
| 613 | VkShaderModule* pShaderModule) |
| 614 | { |
| 615 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 616 | VkResult vkCreateShaderModule_VkResult_return = (VkResult)0; |
| 617 | vkCreateShaderModule_VkResult_return = vkEnc->vkCreateShaderModule(device, pCreateInfo, pAllocator, pShaderModule); |
| 618 | return vkCreateShaderModule_VkResult_return; |
| 619 | } |
| 620 | static void entry_vkDestroyShaderModule( |
| 621 | VkDevice device, |
| 622 | VkShaderModule shaderModule, |
| 623 | const VkAllocationCallbacks* pAllocator) |
| 624 | { |
| 625 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 626 | vkEnc->vkDestroyShaderModule(device, shaderModule, pAllocator); |
| 627 | } |
| 628 | static VkResult entry_vkCreatePipelineCache( |
| 629 | VkDevice device, |
| 630 | const VkPipelineCacheCreateInfo* pCreateInfo, |
| 631 | const VkAllocationCallbacks* pAllocator, |
| 632 | VkPipelineCache* pPipelineCache) |
| 633 | { |
| 634 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 635 | VkResult vkCreatePipelineCache_VkResult_return = (VkResult)0; |
| 636 | vkCreatePipelineCache_VkResult_return = vkEnc->vkCreatePipelineCache(device, pCreateInfo, pAllocator, pPipelineCache); |
| 637 | return vkCreatePipelineCache_VkResult_return; |
| 638 | } |
| 639 | static void entry_vkDestroyPipelineCache( |
| 640 | VkDevice device, |
| 641 | VkPipelineCache pipelineCache, |
| 642 | const VkAllocationCallbacks* pAllocator) |
| 643 | { |
| 644 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 645 | vkEnc->vkDestroyPipelineCache(device, pipelineCache, pAllocator); |
| 646 | } |
| 647 | static VkResult entry_vkGetPipelineCacheData( |
| 648 | VkDevice device, |
| 649 | VkPipelineCache pipelineCache, |
| 650 | size_t* pDataSize, |
| 651 | void* pData) |
| 652 | { |
| 653 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 654 | VkResult vkGetPipelineCacheData_VkResult_return = (VkResult)0; |
| 655 | vkGetPipelineCacheData_VkResult_return = vkEnc->vkGetPipelineCacheData(device, pipelineCache, pDataSize, pData); |
| 656 | return vkGetPipelineCacheData_VkResult_return; |
| 657 | } |
| 658 | static VkResult entry_vkMergePipelineCaches( |
| 659 | VkDevice device, |
| 660 | VkPipelineCache dstCache, |
| 661 | uint32_t srcCacheCount, |
| 662 | const VkPipelineCache* pSrcCaches) |
| 663 | { |
| 664 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 665 | VkResult vkMergePipelineCaches_VkResult_return = (VkResult)0; |
| 666 | vkMergePipelineCaches_VkResult_return = vkEnc->vkMergePipelineCaches(device, dstCache, srcCacheCount, pSrcCaches); |
| 667 | return vkMergePipelineCaches_VkResult_return; |
| 668 | } |
| 669 | static VkResult entry_vkCreateGraphicsPipelines( |
| 670 | VkDevice device, |
| 671 | VkPipelineCache pipelineCache, |
| 672 | uint32_t createInfoCount, |
| 673 | const VkGraphicsPipelineCreateInfo* pCreateInfos, |
| 674 | const VkAllocationCallbacks* pAllocator, |
| 675 | VkPipeline* pPipelines) |
| 676 | { |
| 677 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 678 | VkResult vkCreateGraphicsPipelines_VkResult_return = (VkResult)0; |
| 679 | vkCreateGraphicsPipelines_VkResult_return = vkEnc->vkCreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); |
| 680 | return vkCreateGraphicsPipelines_VkResult_return; |
| 681 | } |
| 682 | static VkResult entry_vkCreateComputePipelines( |
| 683 | VkDevice device, |
| 684 | VkPipelineCache pipelineCache, |
| 685 | uint32_t createInfoCount, |
| 686 | const VkComputePipelineCreateInfo* pCreateInfos, |
| 687 | const VkAllocationCallbacks* pAllocator, |
| 688 | VkPipeline* pPipelines) |
| 689 | { |
| 690 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 691 | VkResult vkCreateComputePipelines_VkResult_return = (VkResult)0; |
| 692 | vkCreateComputePipelines_VkResult_return = vkEnc->vkCreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos, pAllocator, pPipelines); |
| 693 | return vkCreateComputePipelines_VkResult_return; |
| 694 | } |
| 695 | static void entry_vkDestroyPipeline( |
| 696 | VkDevice device, |
| 697 | VkPipeline pipeline, |
| 698 | const VkAllocationCallbacks* pAllocator) |
| 699 | { |
| 700 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 701 | vkEnc->vkDestroyPipeline(device, pipeline, pAllocator); |
| 702 | } |
| 703 | static VkResult entry_vkCreatePipelineLayout( |
| 704 | VkDevice device, |
| 705 | const VkPipelineLayoutCreateInfo* pCreateInfo, |
| 706 | const VkAllocationCallbacks* pAllocator, |
| 707 | VkPipelineLayout* pPipelineLayout) |
| 708 | { |
| 709 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 710 | VkResult vkCreatePipelineLayout_VkResult_return = (VkResult)0; |
| 711 | vkCreatePipelineLayout_VkResult_return = vkEnc->vkCreatePipelineLayout(device, pCreateInfo, pAllocator, pPipelineLayout); |
| 712 | return vkCreatePipelineLayout_VkResult_return; |
| 713 | } |
| 714 | static void entry_vkDestroyPipelineLayout( |
| 715 | VkDevice device, |
| 716 | VkPipelineLayout pipelineLayout, |
| 717 | const VkAllocationCallbacks* pAllocator) |
| 718 | { |
| 719 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 720 | vkEnc->vkDestroyPipelineLayout(device, pipelineLayout, pAllocator); |
| 721 | } |
| 722 | static VkResult entry_vkCreateSampler( |
| 723 | VkDevice device, |
| 724 | const VkSamplerCreateInfo* pCreateInfo, |
| 725 | const VkAllocationCallbacks* pAllocator, |
| 726 | VkSampler* pSampler) |
| 727 | { |
| 728 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 729 | VkResult vkCreateSampler_VkResult_return = (VkResult)0; |
| 730 | vkCreateSampler_VkResult_return = vkEnc->vkCreateSampler(device, pCreateInfo, pAllocator, pSampler); |
| 731 | return vkCreateSampler_VkResult_return; |
| 732 | } |
| 733 | static void entry_vkDestroySampler( |
| 734 | VkDevice device, |
| 735 | VkSampler sampler, |
| 736 | const VkAllocationCallbacks* pAllocator) |
| 737 | { |
| 738 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 739 | vkEnc->vkDestroySampler(device, sampler, pAllocator); |
| 740 | } |
| 741 | static VkResult entry_vkCreateDescriptorSetLayout( |
| 742 | VkDevice device, |
| 743 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 744 | const VkAllocationCallbacks* pAllocator, |
| 745 | VkDescriptorSetLayout* pSetLayout) |
| 746 | { |
| 747 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 748 | VkResult vkCreateDescriptorSetLayout_VkResult_return = (VkResult)0; |
| 749 | vkCreateDescriptorSetLayout_VkResult_return = vkEnc->vkCreateDescriptorSetLayout(device, pCreateInfo, pAllocator, pSetLayout); |
| 750 | return vkCreateDescriptorSetLayout_VkResult_return; |
| 751 | } |
| 752 | static void entry_vkDestroyDescriptorSetLayout( |
| 753 | VkDevice device, |
| 754 | VkDescriptorSetLayout descriptorSetLayout, |
| 755 | const VkAllocationCallbacks* pAllocator) |
| 756 | { |
| 757 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 758 | vkEnc->vkDestroyDescriptorSetLayout(device, descriptorSetLayout, pAllocator); |
| 759 | } |
| 760 | static VkResult entry_vkCreateDescriptorPool( |
| 761 | VkDevice device, |
| 762 | const VkDescriptorPoolCreateInfo* pCreateInfo, |
| 763 | const VkAllocationCallbacks* pAllocator, |
| 764 | VkDescriptorPool* pDescriptorPool) |
| 765 | { |
| 766 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 767 | VkResult vkCreateDescriptorPool_VkResult_return = (VkResult)0; |
| 768 | vkCreateDescriptorPool_VkResult_return = vkEnc->vkCreateDescriptorPool(device, pCreateInfo, pAllocator, pDescriptorPool); |
| 769 | return vkCreateDescriptorPool_VkResult_return; |
| 770 | } |
| 771 | static void entry_vkDestroyDescriptorPool( |
| 772 | VkDevice device, |
| 773 | VkDescriptorPool descriptorPool, |
| 774 | const VkAllocationCallbacks* pAllocator) |
| 775 | { |
| 776 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 777 | vkEnc->vkDestroyDescriptorPool(device, descriptorPool, pAllocator); |
| 778 | } |
| 779 | static VkResult entry_vkResetDescriptorPool( |
| 780 | VkDevice device, |
| 781 | VkDescriptorPool descriptorPool, |
| 782 | VkDescriptorPoolResetFlags flags) |
| 783 | { |
| 784 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 785 | VkResult vkResetDescriptorPool_VkResult_return = (VkResult)0; |
| 786 | vkResetDescriptorPool_VkResult_return = vkEnc->vkResetDescriptorPool(device, descriptorPool, flags); |
| 787 | return vkResetDescriptorPool_VkResult_return; |
| 788 | } |
| 789 | static VkResult entry_vkAllocateDescriptorSets( |
| 790 | VkDevice device, |
| 791 | const VkDescriptorSetAllocateInfo* pAllocateInfo, |
| 792 | VkDescriptorSet* pDescriptorSets) |
| 793 | { |
| 794 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 795 | VkResult vkAllocateDescriptorSets_VkResult_return = (VkResult)0; |
| 796 | vkAllocateDescriptorSets_VkResult_return = vkEnc->vkAllocateDescriptorSets(device, pAllocateInfo, pDescriptorSets); |
| 797 | return vkAllocateDescriptorSets_VkResult_return; |
| 798 | } |
| 799 | static VkResult entry_vkFreeDescriptorSets( |
| 800 | VkDevice device, |
| 801 | VkDescriptorPool descriptorPool, |
| 802 | uint32_t descriptorSetCount, |
| 803 | const VkDescriptorSet* pDescriptorSets) |
| 804 | { |
| 805 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 806 | VkResult vkFreeDescriptorSets_VkResult_return = (VkResult)0; |
| 807 | vkFreeDescriptorSets_VkResult_return = vkEnc->vkFreeDescriptorSets(device, descriptorPool, descriptorSetCount, pDescriptorSets); |
| 808 | return vkFreeDescriptorSets_VkResult_return; |
| 809 | } |
| 810 | static void entry_vkUpdateDescriptorSets( |
| 811 | VkDevice device, |
| 812 | uint32_t descriptorWriteCount, |
| 813 | const VkWriteDescriptorSet* pDescriptorWrites, |
| 814 | uint32_t descriptorCopyCount, |
| 815 | const VkCopyDescriptorSet* pDescriptorCopies) |
| 816 | { |
| 817 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 818 | vkEnc->vkUpdateDescriptorSets(device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies); |
| 819 | } |
| 820 | static VkResult entry_vkCreateFramebuffer( |
| 821 | VkDevice device, |
| 822 | const VkFramebufferCreateInfo* pCreateInfo, |
| 823 | const VkAllocationCallbacks* pAllocator, |
| 824 | VkFramebuffer* pFramebuffer) |
| 825 | { |
| 826 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 827 | VkResult vkCreateFramebuffer_VkResult_return = (VkResult)0; |
| 828 | vkCreateFramebuffer_VkResult_return = vkEnc->vkCreateFramebuffer(device, pCreateInfo, pAllocator, pFramebuffer); |
| 829 | return vkCreateFramebuffer_VkResult_return; |
| 830 | } |
| 831 | static void entry_vkDestroyFramebuffer( |
| 832 | VkDevice device, |
| 833 | VkFramebuffer framebuffer, |
| 834 | const VkAllocationCallbacks* pAllocator) |
| 835 | { |
| 836 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 837 | vkEnc->vkDestroyFramebuffer(device, framebuffer, pAllocator); |
| 838 | } |
| 839 | static VkResult entry_vkCreateRenderPass( |
| 840 | VkDevice device, |
| 841 | const VkRenderPassCreateInfo* pCreateInfo, |
| 842 | const VkAllocationCallbacks* pAllocator, |
| 843 | VkRenderPass* pRenderPass) |
| 844 | { |
| 845 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 846 | VkResult vkCreateRenderPass_VkResult_return = (VkResult)0; |
| 847 | vkCreateRenderPass_VkResult_return = vkEnc->vkCreateRenderPass(device, pCreateInfo, pAllocator, pRenderPass); |
| 848 | return vkCreateRenderPass_VkResult_return; |
| 849 | } |
| 850 | static void entry_vkDestroyRenderPass( |
| 851 | VkDevice device, |
| 852 | VkRenderPass renderPass, |
| 853 | const VkAllocationCallbacks* pAllocator) |
| 854 | { |
| 855 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 856 | vkEnc->vkDestroyRenderPass(device, renderPass, pAllocator); |
| 857 | } |
| 858 | static void entry_vkGetRenderAreaGranularity( |
| 859 | VkDevice device, |
| 860 | VkRenderPass renderPass, |
| 861 | VkExtent2D* pGranularity) |
| 862 | { |
| 863 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 864 | vkEnc->vkGetRenderAreaGranularity(device, renderPass, pGranularity); |
| 865 | } |
| 866 | static VkResult entry_vkCreateCommandPool( |
| 867 | VkDevice device, |
| 868 | const VkCommandPoolCreateInfo* pCreateInfo, |
| 869 | const VkAllocationCallbacks* pAllocator, |
| 870 | VkCommandPool* pCommandPool) |
| 871 | { |
| 872 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 873 | VkResult vkCreateCommandPool_VkResult_return = (VkResult)0; |
| 874 | vkCreateCommandPool_VkResult_return = vkEnc->vkCreateCommandPool(device, pCreateInfo, pAllocator, pCommandPool); |
| 875 | return vkCreateCommandPool_VkResult_return; |
| 876 | } |
| 877 | static void entry_vkDestroyCommandPool( |
| 878 | VkDevice device, |
| 879 | VkCommandPool commandPool, |
| 880 | const VkAllocationCallbacks* pAllocator) |
| 881 | { |
| 882 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 883 | vkEnc->vkDestroyCommandPool(device, commandPool, pAllocator); |
| 884 | } |
| 885 | static VkResult entry_vkResetCommandPool( |
| 886 | VkDevice device, |
| 887 | VkCommandPool commandPool, |
| 888 | VkCommandPoolResetFlags flags) |
| 889 | { |
| 890 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 891 | VkResult vkResetCommandPool_VkResult_return = (VkResult)0; |
| 892 | vkResetCommandPool_VkResult_return = vkEnc->vkResetCommandPool(device, commandPool, flags); |
| 893 | return vkResetCommandPool_VkResult_return; |
| 894 | } |
| 895 | static VkResult entry_vkAllocateCommandBuffers( |
| 896 | VkDevice device, |
| 897 | const VkCommandBufferAllocateInfo* pAllocateInfo, |
| 898 | VkCommandBuffer* pCommandBuffers) |
| 899 | { |
| 900 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 901 | VkResult vkAllocateCommandBuffers_VkResult_return = (VkResult)0; |
| 902 | vkAllocateCommandBuffers_VkResult_return = vkEnc->vkAllocateCommandBuffers(device, pAllocateInfo, pCommandBuffers); |
| 903 | return vkAllocateCommandBuffers_VkResult_return; |
| 904 | } |
| 905 | static void entry_vkFreeCommandBuffers( |
| 906 | VkDevice device, |
| 907 | VkCommandPool commandPool, |
| 908 | uint32_t commandBufferCount, |
| 909 | const VkCommandBuffer* pCommandBuffers) |
| 910 | { |
| 911 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 912 | vkEnc->vkFreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers); |
| 913 | } |
| 914 | static VkResult entry_vkBeginCommandBuffer( |
| 915 | VkCommandBuffer commandBuffer, |
| 916 | const VkCommandBufferBeginInfo* pBeginInfo) |
| 917 | { |
| 918 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 919 | VkResult vkBeginCommandBuffer_VkResult_return = (VkResult)0; |
| 920 | vkBeginCommandBuffer_VkResult_return = vkEnc->vkBeginCommandBuffer(commandBuffer, pBeginInfo); |
| 921 | return vkBeginCommandBuffer_VkResult_return; |
| 922 | } |
| 923 | static VkResult entry_vkEndCommandBuffer( |
| 924 | VkCommandBuffer commandBuffer) |
| 925 | { |
| 926 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 927 | VkResult vkEndCommandBuffer_VkResult_return = (VkResult)0; |
| 928 | vkEndCommandBuffer_VkResult_return = vkEnc->vkEndCommandBuffer(commandBuffer); |
| 929 | return vkEndCommandBuffer_VkResult_return; |
| 930 | } |
| 931 | static VkResult entry_vkResetCommandBuffer( |
| 932 | VkCommandBuffer commandBuffer, |
| 933 | VkCommandBufferResetFlags flags) |
| 934 | { |
| 935 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 936 | VkResult vkResetCommandBuffer_VkResult_return = (VkResult)0; |
| 937 | vkResetCommandBuffer_VkResult_return = vkEnc->vkResetCommandBuffer(commandBuffer, flags); |
| 938 | return vkResetCommandBuffer_VkResult_return; |
| 939 | } |
| 940 | static void entry_vkCmdBindPipeline( |
| 941 | VkCommandBuffer commandBuffer, |
| 942 | VkPipelineBindPoint pipelineBindPoint, |
| 943 | VkPipeline pipeline) |
| 944 | { |
| 945 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 946 | vkEnc->vkCmdBindPipeline(commandBuffer, pipelineBindPoint, pipeline); |
| 947 | } |
| 948 | static void entry_vkCmdSetViewport( |
| 949 | VkCommandBuffer commandBuffer, |
| 950 | uint32_t firstViewport, |
| 951 | uint32_t viewportCount, |
| 952 | const VkViewport* pViewports) |
| 953 | { |
| 954 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 955 | vkEnc->vkCmdSetViewport(commandBuffer, firstViewport, viewportCount, pViewports); |
| 956 | } |
| 957 | static void entry_vkCmdSetScissor( |
| 958 | VkCommandBuffer commandBuffer, |
| 959 | uint32_t firstScissor, |
| 960 | uint32_t scissorCount, |
| 961 | const VkRect2D* pScissors) |
| 962 | { |
| 963 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 964 | vkEnc->vkCmdSetScissor(commandBuffer, firstScissor, scissorCount, pScissors); |
| 965 | } |
| 966 | static void entry_vkCmdSetLineWidth( |
| 967 | VkCommandBuffer commandBuffer, |
| 968 | float lineWidth) |
| 969 | { |
| 970 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 971 | vkEnc->vkCmdSetLineWidth(commandBuffer, lineWidth); |
| 972 | } |
| 973 | static void entry_vkCmdSetDepthBias( |
| 974 | VkCommandBuffer commandBuffer, |
| 975 | float depthBiasConstantFactor, |
| 976 | float depthBiasClamp, |
| 977 | float depthBiasSlopeFactor) |
| 978 | { |
| 979 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 980 | vkEnc->vkCmdSetDepthBias(commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor); |
| 981 | } |
| 982 | static void entry_vkCmdSetBlendConstants( |
| 983 | VkCommandBuffer commandBuffer, |
| 984 | const float blendConstants) |
| 985 | { |
| 986 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 987 | vkEnc->vkCmdSetBlendConstants(commandBuffer, blendConstants); |
| 988 | } |
| 989 | static void entry_vkCmdSetDepthBounds( |
| 990 | VkCommandBuffer commandBuffer, |
| 991 | float minDepthBounds, |
| 992 | float maxDepthBounds) |
| 993 | { |
| 994 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 995 | vkEnc->vkCmdSetDepthBounds(commandBuffer, minDepthBounds, maxDepthBounds); |
| 996 | } |
| 997 | static void entry_vkCmdSetStencilCompareMask( |
| 998 | VkCommandBuffer commandBuffer, |
| 999 | VkStencilFaceFlags faceMask, |
| 1000 | uint32_t compareMask) |
| 1001 | { |
| 1002 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1003 | vkEnc->vkCmdSetStencilCompareMask(commandBuffer, faceMask, compareMask); |
| 1004 | } |
| 1005 | static void entry_vkCmdSetStencilWriteMask( |
| 1006 | VkCommandBuffer commandBuffer, |
| 1007 | VkStencilFaceFlags faceMask, |
| 1008 | uint32_t writeMask) |
| 1009 | { |
| 1010 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1011 | vkEnc->vkCmdSetStencilWriteMask(commandBuffer, faceMask, writeMask); |
| 1012 | } |
| 1013 | static void entry_vkCmdSetStencilReference( |
| 1014 | VkCommandBuffer commandBuffer, |
| 1015 | VkStencilFaceFlags faceMask, |
| 1016 | uint32_t reference) |
| 1017 | { |
| 1018 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1019 | vkEnc->vkCmdSetStencilReference(commandBuffer, faceMask, reference); |
| 1020 | } |
| 1021 | static void entry_vkCmdBindDescriptorSets( |
| 1022 | VkCommandBuffer commandBuffer, |
| 1023 | VkPipelineBindPoint pipelineBindPoint, |
| 1024 | VkPipelineLayout layout, |
| 1025 | uint32_t firstSet, |
| 1026 | uint32_t descriptorSetCount, |
| 1027 | const VkDescriptorSet* pDescriptorSets, |
| 1028 | uint32_t dynamicOffsetCount, |
| 1029 | const uint32_t* pDynamicOffsets) |
| 1030 | { |
| 1031 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1032 | vkEnc->vkCmdBindDescriptorSets(commandBuffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets); |
| 1033 | } |
| 1034 | static void entry_vkCmdBindIndexBuffer( |
| 1035 | VkCommandBuffer commandBuffer, |
| 1036 | VkBuffer buffer, |
| 1037 | VkDeviceSize offset, |
| 1038 | VkIndexType indexType) |
| 1039 | { |
| 1040 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1041 | vkEnc->vkCmdBindIndexBuffer(commandBuffer, buffer, offset, indexType); |
| 1042 | } |
| 1043 | static void entry_vkCmdBindVertexBuffers( |
| 1044 | VkCommandBuffer commandBuffer, |
| 1045 | uint32_t firstBinding, |
| 1046 | uint32_t bindingCount, |
| 1047 | const VkBuffer* pBuffers, |
| 1048 | const VkDeviceSize* pOffsets) |
| 1049 | { |
| 1050 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1051 | vkEnc->vkCmdBindVertexBuffers(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets); |
| 1052 | } |
| 1053 | static void entry_vkCmdDraw( |
| 1054 | VkCommandBuffer commandBuffer, |
| 1055 | uint32_t vertexCount, |
| 1056 | uint32_t instanceCount, |
| 1057 | uint32_t firstVertex, |
| 1058 | uint32_t firstInstance) |
| 1059 | { |
| 1060 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1061 | vkEnc->vkCmdDraw(commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance); |
| 1062 | } |
| 1063 | static void entry_vkCmdDrawIndexed( |
| 1064 | VkCommandBuffer commandBuffer, |
| 1065 | uint32_t indexCount, |
| 1066 | uint32_t instanceCount, |
| 1067 | uint32_t firstIndex, |
| 1068 | int32_t vertexOffset, |
| 1069 | uint32_t firstInstance) |
| 1070 | { |
| 1071 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1072 | vkEnc->vkCmdDrawIndexed(commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance); |
| 1073 | } |
| 1074 | static void entry_vkCmdDrawIndirect( |
| 1075 | VkCommandBuffer commandBuffer, |
| 1076 | VkBuffer buffer, |
| 1077 | VkDeviceSize offset, |
| 1078 | uint32_t drawCount, |
| 1079 | uint32_t stride) |
| 1080 | { |
| 1081 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1082 | vkEnc->vkCmdDrawIndirect(commandBuffer, buffer, offset, drawCount, stride); |
| 1083 | } |
| 1084 | static void entry_vkCmdDrawIndexedIndirect( |
| 1085 | VkCommandBuffer commandBuffer, |
| 1086 | VkBuffer buffer, |
| 1087 | VkDeviceSize offset, |
| 1088 | uint32_t drawCount, |
| 1089 | uint32_t stride) |
| 1090 | { |
| 1091 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1092 | vkEnc->vkCmdDrawIndexedIndirect(commandBuffer, buffer, offset, drawCount, stride); |
| 1093 | } |
| 1094 | static void entry_vkCmdDispatch( |
| 1095 | VkCommandBuffer commandBuffer, |
| 1096 | uint32_t groupCountX, |
| 1097 | uint32_t groupCountY, |
| 1098 | uint32_t groupCountZ) |
| 1099 | { |
| 1100 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1101 | vkEnc->vkCmdDispatch(commandBuffer, groupCountX, groupCountY, groupCountZ); |
| 1102 | } |
| 1103 | static void entry_vkCmdDispatchIndirect( |
| 1104 | VkCommandBuffer commandBuffer, |
| 1105 | VkBuffer buffer, |
| 1106 | VkDeviceSize offset) |
| 1107 | { |
| 1108 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1109 | vkEnc->vkCmdDispatchIndirect(commandBuffer, buffer, offset); |
| 1110 | } |
| 1111 | static void entry_vkCmdCopyBuffer( |
| 1112 | VkCommandBuffer commandBuffer, |
| 1113 | VkBuffer srcBuffer, |
| 1114 | VkBuffer dstBuffer, |
| 1115 | uint32_t regionCount, |
| 1116 | const VkBufferCopy* pRegions) |
| 1117 | { |
| 1118 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1119 | vkEnc->vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions); |
| 1120 | } |
| 1121 | static void entry_vkCmdCopyImage( |
| 1122 | VkCommandBuffer commandBuffer, |
| 1123 | VkImage srcImage, |
| 1124 | VkImageLayout srcImageLayout, |
| 1125 | VkImage dstImage, |
| 1126 | VkImageLayout dstImageLayout, |
| 1127 | uint32_t regionCount, |
| 1128 | const VkImageCopy* pRegions) |
| 1129 | { |
| 1130 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1131 | vkEnc->vkCmdCopyImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); |
| 1132 | } |
| 1133 | static void entry_vkCmdBlitImage( |
| 1134 | VkCommandBuffer commandBuffer, |
| 1135 | VkImage srcImage, |
| 1136 | VkImageLayout srcImageLayout, |
| 1137 | VkImage dstImage, |
| 1138 | VkImageLayout dstImageLayout, |
| 1139 | uint32_t regionCount, |
| 1140 | const VkImageBlit* pRegions, |
| 1141 | VkFilter filter) |
| 1142 | { |
| 1143 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1144 | vkEnc->vkCmdBlitImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter); |
| 1145 | } |
| 1146 | static void entry_vkCmdCopyBufferToImage( |
| 1147 | VkCommandBuffer commandBuffer, |
| 1148 | VkBuffer srcBuffer, |
| 1149 | VkImage dstImage, |
| 1150 | VkImageLayout dstImageLayout, |
| 1151 | uint32_t regionCount, |
| 1152 | const VkBufferImageCopy* pRegions) |
| 1153 | { |
| 1154 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1155 | vkEnc->vkCmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions); |
| 1156 | } |
| 1157 | static void entry_vkCmdCopyImageToBuffer( |
| 1158 | VkCommandBuffer commandBuffer, |
| 1159 | VkImage srcImage, |
| 1160 | VkImageLayout srcImageLayout, |
| 1161 | VkBuffer dstBuffer, |
| 1162 | uint32_t regionCount, |
| 1163 | const VkBufferImageCopy* pRegions) |
| 1164 | { |
| 1165 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1166 | vkEnc->vkCmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions); |
| 1167 | } |
| 1168 | static void entry_vkCmdUpdateBuffer( |
| 1169 | VkCommandBuffer commandBuffer, |
| 1170 | VkBuffer dstBuffer, |
| 1171 | VkDeviceSize dstOffset, |
| 1172 | VkDeviceSize dataSize, |
| 1173 | const void* pData) |
| 1174 | { |
| 1175 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1176 | vkEnc->vkCmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, dataSize, pData); |
| 1177 | } |
| 1178 | static void entry_vkCmdFillBuffer( |
| 1179 | VkCommandBuffer commandBuffer, |
| 1180 | VkBuffer dstBuffer, |
| 1181 | VkDeviceSize dstOffset, |
| 1182 | VkDeviceSize size, |
| 1183 | uint32_t data) |
| 1184 | { |
| 1185 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1186 | vkEnc->vkCmdFillBuffer(commandBuffer, dstBuffer, dstOffset, size, data); |
| 1187 | } |
| 1188 | static void entry_vkCmdClearColorImage( |
| 1189 | VkCommandBuffer commandBuffer, |
| 1190 | VkImage image, |
| 1191 | VkImageLayout imageLayout, |
| 1192 | const VkClearColorValue* pColor, |
| 1193 | uint32_t rangeCount, |
| 1194 | const VkImageSubresourceRange* pRanges) |
| 1195 | { |
| 1196 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1197 | vkEnc->vkCmdClearColorImage(commandBuffer, image, imageLayout, pColor, rangeCount, pRanges); |
| 1198 | } |
| 1199 | static void entry_vkCmdClearDepthStencilImage( |
| 1200 | VkCommandBuffer commandBuffer, |
| 1201 | VkImage image, |
| 1202 | VkImageLayout imageLayout, |
| 1203 | const VkClearDepthStencilValue* pDepthStencil, |
| 1204 | uint32_t rangeCount, |
| 1205 | const VkImageSubresourceRange* pRanges) |
| 1206 | { |
| 1207 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1208 | vkEnc->vkCmdClearDepthStencilImage(commandBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges); |
| 1209 | } |
| 1210 | static void entry_vkCmdClearAttachments( |
| 1211 | VkCommandBuffer commandBuffer, |
| 1212 | uint32_t attachmentCount, |
| 1213 | const VkClearAttachment* pAttachments, |
| 1214 | uint32_t rectCount, |
| 1215 | const VkClearRect* pRects) |
| 1216 | { |
| 1217 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1218 | vkEnc->vkCmdClearAttachments(commandBuffer, attachmentCount, pAttachments, rectCount, pRects); |
| 1219 | } |
| 1220 | static void entry_vkCmdResolveImage( |
| 1221 | VkCommandBuffer commandBuffer, |
| 1222 | VkImage srcImage, |
| 1223 | VkImageLayout srcImageLayout, |
| 1224 | VkImage dstImage, |
| 1225 | VkImageLayout dstImageLayout, |
| 1226 | uint32_t regionCount, |
| 1227 | const VkImageResolve* pRegions) |
| 1228 | { |
| 1229 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1230 | vkEnc->vkCmdResolveImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions); |
| 1231 | } |
| 1232 | static void entry_vkCmdSetEvent( |
| 1233 | VkCommandBuffer commandBuffer, |
| 1234 | VkEvent event, |
| 1235 | VkPipelineStageFlags stageMask) |
| 1236 | { |
| 1237 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1238 | vkEnc->vkCmdSetEvent(commandBuffer, event, stageMask); |
| 1239 | } |
| 1240 | static void entry_vkCmdResetEvent( |
| 1241 | VkCommandBuffer commandBuffer, |
| 1242 | VkEvent event, |
| 1243 | VkPipelineStageFlags stageMask) |
| 1244 | { |
| 1245 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1246 | vkEnc->vkCmdResetEvent(commandBuffer, event, stageMask); |
| 1247 | } |
| 1248 | static void entry_vkCmdWaitEvents( |
| 1249 | VkCommandBuffer commandBuffer, |
| 1250 | uint32_t eventCount, |
| 1251 | const VkEvent* pEvents, |
| 1252 | VkPipelineStageFlags srcStageMask, |
| 1253 | VkPipelineStageFlags dstStageMask, |
| 1254 | uint32_t memoryBarrierCount, |
| 1255 | const VkMemoryBarrier* pMemoryBarriers, |
| 1256 | uint32_t bufferMemoryBarrierCount, |
| 1257 | const VkBufferMemoryBarrier* pBufferMemoryBarriers, |
| 1258 | uint32_t imageMemoryBarrierCount, |
| 1259 | const VkImageMemoryBarrier* pImageMemoryBarriers) |
| 1260 | { |
| 1261 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1262 | vkEnc->vkCmdWaitEvents(commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); |
| 1263 | } |
| 1264 | static void entry_vkCmdPipelineBarrier( |
| 1265 | VkCommandBuffer commandBuffer, |
| 1266 | VkPipelineStageFlags srcStageMask, |
| 1267 | VkPipelineStageFlags dstStageMask, |
| 1268 | VkDependencyFlags dependencyFlags, |
| 1269 | uint32_t memoryBarrierCount, |
| 1270 | const VkMemoryBarrier* pMemoryBarriers, |
| 1271 | uint32_t bufferMemoryBarrierCount, |
| 1272 | const VkBufferMemoryBarrier* pBufferMemoryBarriers, |
| 1273 | uint32_t imageMemoryBarrierCount, |
| 1274 | const VkImageMemoryBarrier* pImageMemoryBarriers) |
| 1275 | { |
| 1276 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1277 | vkEnc->vkCmdPipelineBarrier(commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers); |
| 1278 | } |
| 1279 | static void entry_vkCmdBeginQuery( |
| 1280 | VkCommandBuffer commandBuffer, |
| 1281 | VkQueryPool queryPool, |
| 1282 | uint32_t query, |
| 1283 | VkQueryControlFlags flags) |
| 1284 | { |
| 1285 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1286 | vkEnc->vkCmdBeginQuery(commandBuffer, queryPool, query, flags); |
| 1287 | } |
| 1288 | static void entry_vkCmdEndQuery( |
| 1289 | VkCommandBuffer commandBuffer, |
| 1290 | VkQueryPool queryPool, |
| 1291 | uint32_t query) |
| 1292 | { |
| 1293 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1294 | vkEnc->vkCmdEndQuery(commandBuffer, queryPool, query); |
| 1295 | } |
| 1296 | static void entry_vkCmdResetQueryPool( |
| 1297 | VkCommandBuffer commandBuffer, |
| 1298 | VkQueryPool queryPool, |
| 1299 | uint32_t firstQuery, |
| 1300 | uint32_t queryCount) |
| 1301 | { |
| 1302 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1303 | vkEnc->vkCmdResetQueryPool(commandBuffer, queryPool, firstQuery, queryCount); |
| 1304 | } |
| 1305 | static void entry_vkCmdWriteTimestamp( |
| 1306 | VkCommandBuffer commandBuffer, |
| 1307 | VkPipelineStageFlagBits pipelineStage, |
| 1308 | VkQueryPool queryPool, |
| 1309 | uint32_t query) |
| 1310 | { |
| 1311 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1312 | vkEnc->vkCmdWriteTimestamp(commandBuffer, pipelineStage, queryPool, query); |
| 1313 | } |
| 1314 | static void entry_vkCmdCopyQueryPoolResults( |
| 1315 | VkCommandBuffer commandBuffer, |
| 1316 | VkQueryPool queryPool, |
| 1317 | uint32_t firstQuery, |
| 1318 | uint32_t queryCount, |
| 1319 | VkBuffer dstBuffer, |
| 1320 | VkDeviceSize dstOffset, |
| 1321 | VkDeviceSize stride, |
| 1322 | VkQueryResultFlags flags) |
| 1323 | { |
| 1324 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1325 | vkEnc->vkCmdCopyQueryPoolResults(commandBuffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags); |
| 1326 | } |
| 1327 | static void entry_vkCmdPushConstants( |
| 1328 | VkCommandBuffer commandBuffer, |
| 1329 | VkPipelineLayout layout, |
| 1330 | VkShaderStageFlags stageFlags, |
| 1331 | uint32_t offset, |
| 1332 | uint32_t size, |
| 1333 | const void* pValues) |
| 1334 | { |
| 1335 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1336 | vkEnc->vkCmdPushConstants(commandBuffer, layout, stageFlags, offset, size, pValues); |
| 1337 | } |
| 1338 | static void entry_vkCmdBeginRenderPass( |
| 1339 | VkCommandBuffer commandBuffer, |
| 1340 | const VkRenderPassBeginInfo* pRenderPassBegin, |
| 1341 | VkSubpassContents contents) |
| 1342 | { |
| 1343 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1344 | vkEnc->vkCmdBeginRenderPass(commandBuffer, pRenderPassBegin, contents); |
| 1345 | } |
| 1346 | static void entry_vkCmdNextSubpass( |
| 1347 | VkCommandBuffer commandBuffer, |
| 1348 | VkSubpassContents contents) |
| 1349 | { |
| 1350 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1351 | vkEnc->vkCmdNextSubpass(commandBuffer, contents); |
| 1352 | } |
| 1353 | static void entry_vkCmdEndRenderPass( |
| 1354 | VkCommandBuffer commandBuffer) |
| 1355 | { |
| 1356 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1357 | vkEnc->vkCmdEndRenderPass(commandBuffer); |
| 1358 | } |
| 1359 | static void entry_vkCmdExecuteCommands( |
| 1360 | VkCommandBuffer commandBuffer, |
| 1361 | uint32_t commandBufferCount, |
| 1362 | const VkCommandBuffer* pCommandBuffers) |
| 1363 | { |
| 1364 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1365 | vkEnc->vkCmdExecuteCommands(commandBuffer, commandBufferCount, pCommandBuffers); |
| 1366 | } |
| 1367 | #endif |
| 1368 | #ifdef VK_VERSION_1_1 |
| 1369 | static VkResult entry_vkEnumerateInstanceVersion( |
| 1370 | uint32_t* pApiVersion) |
| 1371 | { |
| 1372 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1373 | VkResult vkEnumerateInstanceVersion_VkResult_return = (VkResult)0; |
| 1374 | vkEnumerateInstanceVersion_VkResult_return = vkEnc->vkEnumerateInstanceVersion(pApiVersion); |
| 1375 | return vkEnumerateInstanceVersion_VkResult_return; |
| 1376 | } |
| 1377 | static VkResult entry_vkBindBufferMemory2( |
| 1378 | VkDevice device, |
| 1379 | uint32_t bindInfoCount, |
| 1380 | const VkBindBufferMemoryInfo* pBindInfos) |
| 1381 | { |
| 1382 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1383 | VkResult vkBindBufferMemory2_VkResult_return = (VkResult)0; |
| 1384 | vkBindBufferMemory2_VkResult_return = vkEnc->vkBindBufferMemory2(device, bindInfoCount, pBindInfos); |
| 1385 | return vkBindBufferMemory2_VkResult_return; |
| 1386 | } |
| 1387 | static VkResult entry_vkBindImageMemory2( |
| 1388 | VkDevice device, |
| 1389 | uint32_t bindInfoCount, |
| 1390 | const VkBindImageMemoryInfo* pBindInfos) |
| 1391 | { |
| 1392 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1393 | VkResult vkBindImageMemory2_VkResult_return = (VkResult)0; |
| 1394 | vkBindImageMemory2_VkResult_return = vkEnc->vkBindImageMemory2(device, bindInfoCount, pBindInfos); |
| 1395 | return vkBindImageMemory2_VkResult_return; |
| 1396 | } |
| 1397 | static void entry_vkGetDeviceGroupPeerMemoryFeatures( |
| 1398 | VkDevice device, |
| 1399 | uint32_t heapIndex, |
| 1400 | uint32_t localDeviceIndex, |
| 1401 | uint32_t remoteDeviceIndex, |
| 1402 | VkPeerMemoryFeatureFlags* pPeerMemoryFeatures) |
| 1403 | { |
| 1404 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1405 | vkEnc->vkGetDeviceGroupPeerMemoryFeatures(device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures); |
| 1406 | } |
| 1407 | static void entry_vkCmdSetDeviceMask( |
| 1408 | VkCommandBuffer commandBuffer, |
| 1409 | uint32_t deviceMask) |
| 1410 | { |
| 1411 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1412 | vkEnc->vkCmdSetDeviceMask(commandBuffer, deviceMask); |
| 1413 | } |
| 1414 | static void entry_vkCmdDispatchBase( |
| 1415 | VkCommandBuffer commandBuffer, |
| 1416 | uint32_t baseGroupX, |
| 1417 | uint32_t baseGroupY, |
| 1418 | uint32_t baseGroupZ, |
| 1419 | uint32_t groupCountX, |
| 1420 | uint32_t groupCountY, |
| 1421 | uint32_t groupCountZ) |
| 1422 | { |
| 1423 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1424 | vkEnc->vkCmdDispatchBase(commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ); |
| 1425 | } |
| 1426 | static VkResult entry_vkEnumeratePhysicalDeviceGroups( |
| 1427 | VkInstance instance, |
| 1428 | uint32_t* pPhysicalDeviceGroupCount, |
| 1429 | VkPhysicalDeviceGroupProperties* pPhysicalDeviceGroupProperties) |
| 1430 | { |
| 1431 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1432 | VkResult vkEnumeratePhysicalDeviceGroups_VkResult_return = (VkResult)0; |
| 1433 | vkEnumeratePhysicalDeviceGroups_VkResult_return = vkEnc->vkEnumeratePhysicalDeviceGroups(instance, pPhysicalDeviceGroupCount, pPhysicalDeviceGroupProperties); |
| 1434 | return vkEnumeratePhysicalDeviceGroups_VkResult_return; |
| 1435 | } |
| 1436 | static void entry_vkGetImageMemoryRequirements2( |
| 1437 | VkDevice device, |
| 1438 | const VkImageMemoryRequirementsInfo2* pInfo, |
| 1439 | VkMemoryRequirements2* pMemoryRequirements) |
| 1440 | { |
| 1441 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1442 | vkEnc->vkGetImageMemoryRequirements2(device, pInfo, pMemoryRequirements); |
| 1443 | } |
| 1444 | static void entry_vkGetBufferMemoryRequirements2( |
| 1445 | VkDevice device, |
| 1446 | const VkBufferMemoryRequirementsInfo2* pInfo, |
| 1447 | VkMemoryRequirements2* pMemoryRequirements) |
| 1448 | { |
| 1449 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1450 | vkEnc->vkGetBufferMemoryRequirements2(device, pInfo, pMemoryRequirements); |
| 1451 | } |
| 1452 | static void entry_vkGetImageSparseMemoryRequirements2( |
| 1453 | VkDevice device, |
| 1454 | const VkImageSparseMemoryRequirementsInfo2* pInfo, |
| 1455 | uint32_t* pSparseMemoryRequirementCount, |
| 1456 | VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) |
| 1457 | { |
| 1458 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1459 | vkEnc->vkGetImageSparseMemoryRequirements2(device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements); |
| 1460 | } |
| 1461 | static void entry_vkGetPhysicalDeviceFeatures2( |
| 1462 | VkPhysicalDevice physicalDevice, |
| 1463 | VkPhysicalDeviceFeatures2* pFeatures) |
| 1464 | { |
| 1465 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1466 | vkEnc->vkGetPhysicalDeviceFeatures2(physicalDevice, pFeatures); |
| 1467 | } |
| 1468 | static void entry_vkGetPhysicalDeviceProperties2( |
| 1469 | VkPhysicalDevice physicalDevice, |
| 1470 | VkPhysicalDeviceProperties2* pProperties) |
| 1471 | { |
| 1472 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1473 | vkEnc->vkGetPhysicalDeviceProperties2(physicalDevice, pProperties); |
| 1474 | } |
| 1475 | static void entry_vkGetPhysicalDeviceFormatProperties2( |
| 1476 | VkPhysicalDevice physicalDevice, |
| 1477 | VkFormat format, |
| 1478 | VkFormatProperties2* pFormatProperties) |
| 1479 | { |
| 1480 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1481 | vkEnc->vkGetPhysicalDeviceFormatProperties2(physicalDevice, format, pFormatProperties); |
| 1482 | } |
| 1483 | static VkResult entry_vkGetPhysicalDeviceImageFormatProperties2( |
| 1484 | VkPhysicalDevice physicalDevice, |
| 1485 | const VkPhysicalDeviceImageFormatInfo2* pImageFormatInfo, |
| 1486 | VkImageFormatProperties2* pImageFormatProperties) |
| 1487 | { |
| 1488 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1489 | VkResult vkGetPhysicalDeviceImageFormatProperties2_VkResult_return = (VkResult)0; |
| 1490 | vkGetPhysicalDeviceImageFormatProperties2_VkResult_return = vkEnc->vkGetPhysicalDeviceImageFormatProperties2(physicalDevice, pImageFormatInfo, pImageFormatProperties); |
| 1491 | return vkGetPhysicalDeviceImageFormatProperties2_VkResult_return; |
| 1492 | } |
| 1493 | static void entry_vkGetPhysicalDeviceQueueFamilyProperties2( |
| 1494 | VkPhysicalDevice physicalDevice, |
| 1495 | uint32_t* pQueueFamilyPropertyCount, |
| 1496 | VkQueueFamilyProperties2* pQueueFamilyProperties) |
| 1497 | { |
| 1498 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1499 | vkEnc->vkGetPhysicalDeviceQueueFamilyProperties2(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); |
| 1500 | } |
| 1501 | static void entry_vkGetPhysicalDeviceMemoryProperties2( |
| 1502 | VkPhysicalDevice physicalDevice, |
| 1503 | VkPhysicalDeviceMemoryProperties2* pMemoryProperties) |
| 1504 | { |
| 1505 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1506 | vkEnc->vkGetPhysicalDeviceMemoryProperties2(physicalDevice, pMemoryProperties); |
| 1507 | } |
| 1508 | static void entry_vkGetPhysicalDeviceSparseImageFormatProperties2( |
| 1509 | VkPhysicalDevice physicalDevice, |
| 1510 | const VkPhysicalDeviceSparseImageFormatInfo2* pFormatInfo, |
| 1511 | uint32_t* pPropertyCount, |
| 1512 | VkSparseImageFormatProperties2* pProperties) |
| 1513 | { |
| 1514 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1515 | vkEnc->vkGetPhysicalDeviceSparseImageFormatProperties2(physicalDevice, pFormatInfo, pPropertyCount, pProperties); |
| 1516 | } |
| 1517 | static void entry_vkTrimCommandPool( |
| 1518 | VkDevice device, |
| 1519 | VkCommandPool commandPool, |
| 1520 | VkCommandPoolTrimFlags flags) |
| 1521 | { |
| 1522 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1523 | vkEnc->vkTrimCommandPool(device, commandPool, flags); |
| 1524 | } |
| 1525 | static void entry_vkGetDeviceQueue2( |
| 1526 | VkDevice device, |
| 1527 | const VkDeviceQueueInfo2* pQueueInfo, |
| 1528 | VkQueue* pQueue) |
| 1529 | { |
| 1530 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1531 | vkEnc->vkGetDeviceQueue2(device, pQueueInfo, pQueue); |
| 1532 | } |
| 1533 | static VkResult entry_vkCreateSamplerYcbcrConversion( |
| 1534 | VkDevice device, |
| 1535 | const VkSamplerYcbcrConversionCreateInfo* pCreateInfo, |
| 1536 | const VkAllocationCallbacks* pAllocator, |
| 1537 | VkSamplerYcbcrConversion* pYcbcrConversion) |
| 1538 | { |
| 1539 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1540 | VkResult vkCreateSamplerYcbcrConversion_VkResult_return = (VkResult)0; |
| 1541 | vkCreateSamplerYcbcrConversion_VkResult_return = vkEnc->vkCreateSamplerYcbcrConversion(device, pCreateInfo, pAllocator, pYcbcrConversion); |
| 1542 | return vkCreateSamplerYcbcrConversion_VkResult_return; |
| 1543 | } |
| 1544 | static void entry_vkDestroySamplerYcbcrConversion( |
| 1545 | VkDevice device, |
| 1546 | VkSamplerYcbcrConversion ycbcrConversion, |
| 1547 | const VkAllocationCallbacks* pAllocator) |
| 1548 | { |
| 1549 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1550 | vkEnc->vkDestroySamplerYcbcrConversion(device, ycbcrConversion, pAllocator); |
| 1551 | } |
| 1552 | static VkResult entry_vkCreateDescriptorUpdateTemplate( |
| 1553 | VkDevice device, |
| 1554 | const VkDescriptorUpdateTemplateCreateInfo* pCreateInfo, |
| 1555 | const VkAllocationCallbacks* pAllocator, |
| 1556 | VkDescriptorUpdateTemplate* pDescriptorUpdateTemplate) |
| 1557 | { |
| 1558 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1559 | VkResult vkCreateDescriptorUpdateTemplate_VkResult_return = (VkResult)0; |
| 1560 | vkCreateDescriptorUpdateTemplate_VkResult_return = vkEnc->vkCreateDescriptorUpdateTemplate(device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate); |
| 1561 | return vkCreateDescriptorUpdateTemplate_VkResult_return; |
| 1562 | } |
| 1563 | static void entry_vkDestroyDescriptorUpdateTemplate( |
| 1564 | VkDevice device, |
| 1565 | VkDescriptorUpdateTemplate descriptorUpdateTemplate, |
| 1566 | const VkAllocationCallbacks* pAllocator) |
| 1567 | { |
| 1568 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1569 | vkEnc->vkDestroyDescriptorUpdateTemplate(device, descriptorUpdateTemplate, pAllocator); |
| 1570 | } |
| 1571 | static void entry_vkUpdateDescriptorSetWithTemplate( |
| 1572 | VkDevice device, |
| 1573 | VkDescriptorSet descriptorSet, |
| 1574 | VkDescriptorUpdateTemplate descriptorUpdateTemplate, |
| 1575 | const void* pData) |
| 1576 | { |
| 1577 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1578 | vkEnc->vkUpdateDescriptorSetWithTemplate(device, descriptorSet, descriptorUpdateTemplate, pData); |
| 1579 | } |
| 1580 | static void entry_vkGetPhysicalDeviceExternalBufferProperties( |
| 1581 | VkPhysicalDevice physicalDevice, |
| 1582 | const VkPhysicalDeviceExternalBufferInfo* pExternalBufferInfo, |
| 1583 | VkExternalBufferProperties* pExternalBufferProperties) |
| 1584 | { |
| 1585 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1586 | vkEnc->vkGetPhysicalDeviceExternalBufferProperties(physicalDevice, pExternalBufferInfo, pExternalBufferProperties); |
| 1587 | } |
| 1588 | static void entry_vkGetPhysicalDeviceExternalFenceProperties( |
| 1589 | VkPhysicalDevice physicalDevice, |
| 1590 | const VkPhysicalDeviceExternalFenceInfo* pExternalFenceInfo, |
| 1591 | VkExternalFenceProperties* pExternalFenceProperties) |
| 1592 | { |
| 1593 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1594 | vkEnc->vkGetPhysicalDeviceExternalFenceProperties(physicalDevice, pExternalFenceInfo, pExternalFenceProperties); |
| 1595 | } |
| 1596 | static void entry_vkGetPhysicalDeviceExternalSemaphoreProperties( |
| 1597 | VkPhysicalDevice physicalDevice, |
| 1598 | const VkPhysicalDeviceExternalSemaphoreInfo* pExternalSemaphoreInfo, |
| 1599 | VkExternalSemaphoreProperties* pExternalSemaphoreProperties) |
| 1600 | { |
| 1601 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1602 | vkEnc->vkGetPhysicalDeviceExternalSemaphoreProperties(physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties); |
| 1603 | } |
| 1604 | static void entry_vkGetDescriptorSetLayoutSupport( |
| 1605 | VkDevice device, |
| 1606 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 1607 | VkDescriptorSetLayoutSupport* pSupport) |
| 1608 | { |
| 1609 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1610 | vkEnc->vkGetDescriptorSetLayoutSupport(device, pCreateInfo, pSupport); |
| 1611 | } |
| 1612 | #endif |
| 1613 | #ifdef VK_KHR_surface |
| 1614 | static void entry_vkDestroySurfaceKHR( |
| 1615 | VkInstance instance, |
| 1616 | VkSurfaceKHR surface, |
| 1617 | const VkAllocationCallbacks* pAllocator) |
| 1618 | { |
| 1619 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1620 | vkEnc->vkDestroySurfaceKHR(instance, surface, pAllocator); |
| 1621 | } |
| 1622 | static VkResult entry_vkGetPhysicalDeviceSurfaceSupportKHR( |
| 1623 | VkPhysicalDevice physicalDevice, |
| 1624 | uint32_t queueFamilyIndex, |
| 1625 | VkSurfaceKHR surface, |
| 1626 | VkBool32* pSupported) |
| 1627 | { |
| 1628 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1629 | VkResult vkGetPhysicalDeviceSurfaceSupportKHR_VkResult_return = (VkResult)0; |
| 1630 | vkGetPhysicalDeviceSurfaceSupportKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, pSupported); |
| 1631 | return vkGetPhysicalDeviceSurfaceSupportKHR_VkResult_return; |
| 1632 | } |
| 1633 | static VkResult entry_vkGetPhysicalDeviceSurfaceCapabilitiesKHR( |
| 1634 | VkPhysicalDevice physicalDevice, |
| 1635 | VkSurfaceKHR surface, |
| 1636 | VkSurfaceCapabilitiesKHR* pSurfaceCapabilities) |
| 1637 | { |
| 1638 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1639 | VkResult vkGetPhysicalDeviceSurfaceCapabilitiesKHR_VkResult_return = (VkResult)0; |
| 1640 | vkGetPhysicalDeviceSurfaceCapabilitiesKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface, pSurfaceCapabilities); |
| 1641 | return vkGetPhysicalDeviceSurfaceCapabilitiesKHR_VkResult_return; |
| 1642 | } |
| 1643 | static VkResult entry_vkGetPhysicalDeviceSurfaceFormatsKHR( |
| 1644 | VkPhysicalDevice physicalDevice, |
| 1645 | VkSurfaceKHR surface, |
| 1646 | uint32_t* pSurfaceFormatCount, |
| 1647 | VkSurfaceFormatKHR* pSurfaceFormats) |
| 1648 | { |
| 1649 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1650 | VkResult vkGetPhysicalDeviceSurfaceFormatsKHR_VkResult_return = (VkResult)0; |
| 1651 | vkGetPhysicalDeviceSurfaceFormatsKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, pSurfaceFormatCount, pSurfaceFormats); |
| 1652 | return vkGetPhysicalDeviceSurfaceFormatsKHR_VkResult_return; |
| 1653 | } |
| 1654 | static VkResult entry_vkGetPhysicalDeviceSurfacePresentModesKHR( |
| 1655 | VkPhysicalDevice physicalDevice, |
| 1656 | VkSurfaceKHR surface, |
| 1657 | uint32_t* pPresentModeCount, |
| 1658 | VkPresentModeKHR* pPresentModes) |
| 1659 | { |
| 1660 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1661 | VkResult vkGetPhysicalDeviceSurfacePresentModesKHR_VkResult_return = (VkResult)0; |
| 1662 | vkGetPhysicalDeviceSurfacePresentModesKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, pPresentModeCount, pPresentModes); |
| 1663 | return vkGetPhysicalDeviceSurfacePresentModesKHR_VkResult_return; |
| 1664 | } |
| 1665 | #endif |
| 1666 | #ifdef VK_KHR_swapchain |
| 1667 | static VkResult entry_vkCreateSwapchainKHR( |
| 1668 | VkDevice device, |
| 1669 | const VkSwapchainCreateInfoKHR* pCreateInfo, |
| 1670 | const VkAllocationCallbacks* pAllocator, |
| 1671 | VkSwapchainKHR* pSwapchain) |
| 1672 | { |
| 1673 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1674 | VkResult vkCreateSwapchainKHR_VkResult_return = (VkResult)0; |
| 1675 | vkCreateSwapchainKHR_VkResult_return = vkEnc->vkCreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain); |
| 1676 | return vkCreateSwapchainKHR_VkResult_return; |
| 1677 | } |
| 1678 | static void entry_vkDestroySwapchainKHR( |
| 1679 | VkDevice device, |
| 1680 | VkSwapchainKHR swapchain, |
| 1681 | const VkAllocationCallbacks* pAllocator) |
| 1682 | { |
| 1683 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1684 | vkEnc->vkDestroySwapchainKHR(device, swapchain, pAllocator); |
| 1685 | } |
| 1686 | static VkResult entry_vkGetSwapchainImagesKHR( |
| 1687 | VkDevice device, |
| 1688 | VkSwapchainKHR swapchain, |
| 1689 | uint32_t* pSwapchainImageCount, |
| 1690 | VkImage* pSwapchainImages) |
| 1691 | { |
| 1692 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1693 | VkResult vkGetSwapchainImagesKHR_VkResult_return = (VkResult)0; |
| 1694 | vkGetSwapchainImagesKHR_VkResult_return = vkEnc->vkGetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages); |
| 1695 | return vkGetSwapchainImagesKHR_VkResult_return; |
| 1696 | } |
| 1697 | static VkResult entry_vkAcquireNextImageKHR( |
| 1698 | VkDevice device, |
| 1699 | VkSwapchainKHR swapchain, |
| 1700 | uint64_t timeout, |
| 1701 | VkSemaphore semaphore, |
| 1702 | VkFence fence, |
| 1703 | uint32_t* pImageIndex) |
| 1704 | { |
| 1705 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1706 | VkResult vkAcquireNextImageKHR_VkResult_return = (VkResult)0; |
| 1707 | vkAcquireNextImageKHR_VkResult_return = vkEnc->vkAcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex); |
| 1708 | return vkAcquireNextImageKHR_VkResult_return; |
| 1709 | } |
| 1710 | static VkResult entry_vkQueuePresentKHR( |
| 1711 | VkQueue queue, |
| 1712 | const VkPresentInfoKHR* pPresentInfo) |
| 1713 | { |
| 1714 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1715 | VkResult vkQueuePresentKHR_VkResult_return = (VkResult)0; |
| 1716 | vkQueuePresentKHR_VkResult_return = vkEnc->vkQueuePresentKHR(queue, pPresentInfo); |
| 1717 | return vkQueuePresentKHR_VkResult_return; |
| 1718 | } |
| 1719 | static VkResult entry_vkGetDeviceGroupPresentCapabilitiesKHR( |
| 1720 | VkDevice device, |
| 1721 | VkDeviceGroupPresentCapabilitiesKHR* pDeviceGroupPresentCapabilities) |
| 1722 | { |
| 1723 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1724 | VkResult vkGetDeviceGroupPresentCapabilitiesKHR_VkResult_return = (VkResult)0; |
| 1725 | vkGetDeviceGroupPresentCapabilitiesKHR_VkResult_return = vkEnc->vkGetDeviceGroupPresentCapabilitiesKHR(device, pDeviceGroupPresentCapabilities); |
| 1726 | return vkGetDeviceGroupPresentCapabilitiesKHR_VkResult_return; |
| 1727 | } |
| 1728 | static VkResult entry_vkGetDeviceGroupSurfacePresentModesKHR( |
| 1729 | VkDevice device, |
| 1730 | VkSurfaceKHR surface, |
| 1731 | VkDeviceGroupPresentModeFlagsKHR* pModes) |
| 1732 | { |
| 1733 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1734 | VkResult vkGetDeviceGroupSurfacePresentModesKHR_VkResult_return = (VkResult)0; |
| 1735 | vkGetDeviceGroupSurfacePresentModesKHR_VkResult_return = vkEnc->vkGetDeviceGroupSurfacePresentModesKHR(device, surface, pModes); |
| 1736 | return vkGetDeviceGroupSurfacePresentModesKHR_VkResult_return; |
| 1737 | } |
| 1738 | static VkResult entry_vkGetPhysicalDevicePresentRectanglesKHR( |
| 1739 | VkPhysicalDevice physicalDevice, |
| 1740 | VkSurfaceKHR surface, |
| 1741 | uint32_t* pRectCount, |
| 1742 | VkRect2D* pRects) |
| 1743 | { |
| 1744 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1745 | VkResult vkGetPhysicalDevicePresentRectanglesKHR_VkResult_return = (VkResult)0; |
| 1746 | vkGetPhysicalDevicePresentRectanglesKHR_VkResult_return = vkEnc->vkGetPhysicalDevicePresentRectanglesKHR(physicalDevice, surface, pRectCount, pRects); |
| 1747 | return vkGetPhysicalDevicePresentRectanglesKHR_VkResult_return; |
| 1748 | } |
| 1749 | static VkResult entry_vkAcquireNextImage2KHR( |
| 1750 | VkDevice device, |
| 1751 | const VkAcquireNextImageInfoKHR* pAcquireInfo, |
| 1752 | uint32_t* pImageIndex) |
| 1753 | { |
| 1754 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1755 | VkResult vkAcquireNextImage2KHR_VkResult_return = (VkResult)0; |
| 1756 | vkAcquireNextImage2KHR_VkResult_return = vkEnc->vkAcquireNextImage2KHR(device, pAcquireInfo, pImageIndex); |
| 1757 | return vkAcquireNextImage2KHR_VkResult_return; |
| 1758 | } |
| 1759 | #endif |
| 1760 | #ifdef VK_KHR_display |
| 1761 | static VkResult entry_vkGetPhysicalDeviceDisplayPropertiesKHR( |
| 1762 | VkPhysicalDevice physicalDevice, |
| 1763 | uint32_t* pPropertyCount, |
| 1764 | VkDisplayPropertiesKHR* pProperties) |
| 1765 | { |
| 1766 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1767 | VkResult vkGetPhysicalDeviceDisplayPropertiesKHR_VkResult_return = (VkResult)0; |
| 1768 | vkGetPhysicalDeviceDisplayPropertiesKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceDisplayPropertiesKHR(physicalDevice, pPropertyCount, pProperties); |
| 1769 | return vkGetPhysicalDeviceDisplayPropertiesKHR_VkResult_return; |
| 1770 | } |
| 1771 | static VkResult entry_vkGetPhysicalDeviceDisplayPlanePropertiesKHR( |
| 1772 | VkPhysicalDevice physicalDevice, |
| 1773 | uint32_t* pPropertyCount, |
| 1774 | VkDisplayPlanePropertiesKHR* pProperties) |
| 1775 | { |
| 1776 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1777 | VkResult vkGetPhysicalDeviceDisplayPlanePropertiesKHR_VkResult_return = (VkResult)0; |
| 1778 | vkGetPhysicalDeviceDisplayPlanePropertiesKHR_VkResult_return = vkEnc->vkGetPhysicalDeviceDisplayPlanePropertiesKHR(physicalDevice, pPropertyCount, pProperties); |
| 1779 | return vkGetPhysicalDeviceDisplayPlanePropertiesKHR_VkResult_return; |
| 1780 | } |
| 1781 | static VkResult entry_vkGetDisplayPlaneSupportedDisplaysKHR( |
| 1782 | VkPhysicalDevice physicalDevice, |
| 1783 | uint32_t planeIndex, |
| 1784 | uint32_t* pDisplayCount, |
| 1785 | VkDisplayKHR* pDisplays) |
| 1786 | { |
| 1787 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1788 | VkResult vkGetDisplayPlaneSupportedDisplaysKHR_VkResult_return = (VkResult)0; |
| 1789 | vkGetDisplayPlaneSupportedDisplaysKHR_VkResult_return = vkEnc->vkGetDisplayPlaneSupportedDisplaysKHR(physicalDevice, planeIndex, pDisplayCount, pDisplays); |
| 1790 | return vkGetDisplayPlaneSupportedDisplaysKHR_VkResult_return; |
| 1791 | } |
| 1792 | static VkResult entry_vkGetDisplayModePropertiesKHR( |
| 1793 | VkPhysicalDevice physicalDevice, |
| 1794 | VkDisplayKHR display, |
| 1795 | uint32_t* pPropertyCount, |
| 1796 | VkDisplayModePropertiesKHR* pProperties) |
| 1797 | { |
| 1798 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1799 | VkResult vkGetDisplayModePropertiesKHR_VkResult_return = (VkResult)0; |
| 1800 | vkGetDisplayModePropertiesKHR_VkResult_return = vkEnc->vkGetDisplayModePropertiesKHR(physicalDevice, display, pPropertyCount, pProperties); |
| 1801 | return vkGetDisplayModePropertiesKHR_VkResult_return; |
| 1802 | } |
| 1803 | static VkResult entry_vkCreateDisplayModeKHR( |
| 1804 | VkPhysicalDevice physicalDevice, |
| 1805 | VkDisplayKHR display, |
| 1806 | const VkDisplayModeCreateInfoKHR* pCreateInfo, |
| 1807 | const VkAllocationCallbacks* pAllocator, |
| 1808 | VkDisplayModeKHR* pMode) |
| 1809 | { |
| 1810 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1811 | VkResult vkCreateDisplayModeKHR_VkResult_return = (VkResult)0; |
| 1812 | vkCreateDisplayModeKHR_VkResult_return = vkEnc->vkCreateDisplayModeKHR(physicalDevice, display, pCreateInfo, pAllocator, pMode); |
| 1813 | return vkCreateDisplayModeKHR_VkResult_return; |
| 1814 | } |
| 1815 | static VkResult entry_vkGetDisplayPlaneCapabilitiesKHR( |
| 1816 | VkPhysicalDevice physicalDevice, |
| 1817 | VkDisplayModeKHR mode, |
| 1818 | uint32_t planeIndex, |
| 1819 | VkDisplayPlaneCapabilitiesKHR* pCapabilities) |
| 1820 | { |
| 1821 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1822 | VkResult vkGetDisplayPlaneCapabilitiesKHR_VkResult_return = (VkResult)0; |
| 1823 | vkGetDisplayPlaneCapabilitiesKHR_VkResult_return = vkEnc->vkGetDisplayPlaneCapabilitiesKHR(physicalDevice, mode, planeIndex, pCapabilities); |
| 1824 | return vkGetDisplayPlaneCapabilitiesKHR_VkResult_return; |
| 1825 | } |
| 1826 | static VkResult entry_vkCreateDisplayPlaneSurfaceKHR( |
| 1827 | VkInstance instance, |
| 1828 | const VkDisplaySurfaceCreateInfoKHR* pCreateInfo, |
| 1829 | const VkAllocationCallbacks* pAllocator, |
| 1830 | VkSurfaceKHR* pSurface) |
| 1831 | { |
| 1832 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1833 | VkResult vkCreateDisplayPlaneSurfaceKHR_VkResult_return = (VkResult)0; |
| 1834 | vkCreateDisplayPlaneSurfaceKHR_VkResult_return = vkEnc->vkCreateDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1835 | return vkCreateDisplayPlaneSurfaceKHR_VkResult_return; |
| 1836 | } |
| 1837 | #endif |
| 1838 | #ifdef VK_KHR_display_swapchain |
| 1839 | static VkResult entry_vkCreateSharedSwapchainsKHR( |
| 1840 | VkDevice device, |
| 1841 | uint32_t swapchainCount, |
| 1842 | const VkSwapchainCreateInfoKHR* pCreateInfos, |
| 1843 | const VkAllocationCallbacks* pAllocator, |
| 1844 | VkSwapchainKHR* pSwapchains) |
| 1845 | { |
| 1846 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1847 | VkResult vkCreateSharedSwapchainsKHR_VkResult_return = (VkResult)0; |
| 1848 | vkCreateSharedSwapchainsKHR_VkResult_return = vkEnc->vkCreateSharedSwapchainsKHR(device, swapchainCount, pCreateInfos, pAllocator, pSwapchains); |
| 1849 | return vkCreateSharedSwapchainsKHR_VkResult_return; |
| 1850 | } |
| 1851 | #endif |
| 1852 | #ifdef VK_KHR_xlib_surface |
| 1853 | static VkResult entry_vkCreateXlibSurfaceKHR( |
| 1854 | VkInstance instance, |
| 1855 | const VkXlibSurfaceCreateInfoKHR* pCreateInfo, |
| 1856 | const VkAllocationCallbacks* pAllocator, |
| 1857 | VkSurfaceKHR* pSurface) |
| 1858 | { |
| 1859 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1860 | VkResult vkCreateXlibSurfaceKHR_VkResult_return = (VkResult)0; |
| 1861 | vkCreateXlibSurfaceKHR_VkResult_return = vkEnc->vkCreateXlibSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1862 | return vkCreateXlibSurfaceKHR_VkResult_return; |
| 1863 | } |
| 1864 | static VkBool32 entry_vkGetPhysicalDeviceXlibPresentationSupportKHR( |
| 1865 | VkPhysicalDevice physicalDevice, |
| 1866 | uint32_t queueFamilyIndex, |
| 1867 | Display* dpy, |
| 1868 | VisualID visualID) |
| 1869 | { |
| 1870 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1871 | VkBool32 vkGetPhysicalDeviceXlibPresentationSupportKHR_VkBool32_return = (VkBool32)0; |
| 1872 | vkGetPhysicalDeviceXlibPresentationSupportKHR_VkBool32_return = vkEnc->vkGetPhysicalDeviceXlibPresentationSupportKHR(physicalDevice, queueFamilyIndex, dpy, visualID); |
| 1873 | return vkGetPhysicalDeviceXlibPresentationSupportKHR_VkBool32_return; |
| 1874 | } |
| 1875 | #endif |
| 1876 | #ifdef VK_KHR_xcb_surface |
| 1877 | static VkResult entry_vkCreateXcbSurfaceKHR( |
| 1878 | VkInstance instance, |
| 1879 | const VkXcbSurfaceCreateInfoKHR* pCreateInfo, |
| 1880 | const VkAllocationCallbacks* pAllocator, |
| 1881 | VkSurfaceKHR* pSurface) |
| 1882 | { |
| 1883 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1884 | VkResult vkCreateXcbSurfaceKHR_VkResult_return = (VkResult)0; |
| 1885 | vkCreateXcbSurfaceKHR_VkResult_return = vkEnc->vkCreateXcbSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1886 | return vkCreateXcbSurfaceKHR_VkResult_return; |
| 1887 | } |
| 1888 | static VkBool32 entry_vkGetPhysicalDeviceXcbPresentationSupportKHR( |
| 1889 | VkPhysicalDevice physicalDevice, |
| 1890 | uint32_t queueFamilyIndex, |
| 1891 | xcb_connection_t* connection, |
| 1892 | xcb_visualid_t visual_id) |
| 1893 | { |
| 1894 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1895 | VkBool32 vkGetPhysicalDeviceXcbPresentationSupportKHR_VkBool32_return = (VkBool32)0; |
| 1896 | vkGetPhysicalDeviceXcbPresentationSupportKHR_VkBool32_return = vkEnc->vkGetPhysicalDeviceXcbPresentationSupportKHR(physicalDevice, queueFamilyIndex, connection, visual_id); |
| 1897 | return vkGetPhysicalDeviceXcbPresentationSupportKHR_VkBool32_return; |
| 1898 | } |
| 1899 | #endif |
| 1900 | #ifdef VK_KHR_wayland_surface |
| 1901 | static VkResult entry_vkCreateWaylandSurfaceKHR( |
| 1902 | VkInstance instance, |
| 1903 | const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, |
| 1904 | const VkAllocationCallbacks* pAllocator, |
| 1905 | VkSurfaceKHR* pSurface) |
| 1906 | { |
| 1907 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1908 | VkResult vkCreateWaylandSurfaceKHR_VkResult_return = (VkResult)0; |
| 1909 | vkCreateWaylandSurfaceKHR_VkResult_return = vkEnc->vkCreateWaylandSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1910 | return vkCreateWaylandSurfaceKHR_VkResult_return; |
| 1911 | } |
| 1912 | static VkBool32 entry_vkGetPhysicalDeviceWaylandPresentationSupportKHR( |
| 1913 | VkPhysicalDevice physicalDevice, |
| 1914 | uint32_t queueFamilyIndex, |
| 1915 | wl_display* display) |
| 1916 | { |
| 1917 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1918 | VkBool32 vkGetPhysicalDeviceWaylandPresentationSupportKHR_VkBool32_return = (VkBool32)0; |
| 1919 | vkGetPhysicalDeviceWaylandPresentationSupportKHR_VkBool32_return = vkEnc->vkGetPhysicalDeviceWaylandPresentationSupportKHR(physicalDevice, queueFamilyIndex, display); |
| 1920 | return vkGetPhysicalDeviceWaylandPresentationSupportKHR_VkBool32_return; |
| 1921 | } |
| 1922 | #endif |
| 1923 | #ifdef VK_KHR_mir_surface |
| 1924 | static VkResult entry_vkCreateMirSurfaceKHR( |
| 1925 | VkInstance instance, |
| 1926 | const VkMirSurfaceCreateInfoKHR* pCreateInfo, |
| 1927 | const VkAllocationCallbacks* pAllocator, |
| 1928 | VkSurfaceKHR* pSurface) |
| 1929 | { |
| 1930 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1931 | VkResult vkCreateMirSurfaceKHR_VkResult_return = (VkResult)0; |
| 1932 | vkCreateMirSurfaceKHR_VkResult_return = vkEnc->vkCreateMirSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1933 | return vkCreateMirSurfaceKHR_VkResult_return; |
| 1934 | } |
| 1935 | static VkBool32 entry_vkGetPhysicalDeviceMirPresentationSupportKHR( |
| 1936 | VkPhysicalDevice physicalDevice, |
| 1937 | uint32_t queueFamilyIndex, |
| 1938 | MirConnection* connection) |
| 1939 | { |
| 1940 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1941 | VkBool32 vkGetPhysicalDeviceMirPresentationSupportKHR_VkBool32_return = (VkBool32)0; |
| 1942 | vkGetPhysicalDeviceMirPresentationSupportKHR_VkBool32_return = vkEnc->vkGetPhysicalDeviceMirPresentationSupportKHR(physicalDevice, queueFamilyIndex, connection); |
| 1943 | return vkGetPhysicalDeviceMirPresentationSupportKHR_VkBool32_return; |
| 1944 | } |
| 1945 | #endif |
| 1946 | #ifdef VK_KHR_android_surface |
| 1947 | static VkResult entry_vkCreateAndroidSurfaceKHR( |
| 1948 | VkInstance instance, |
| 1949 | const VkAndroidSurfaceCreateInfoKHR* pCreateInfo, |
| 1950 | const VkAllocationCallbacks* pAllocator, |
| 1951 | VkSurfaceKHR* pSurface) |
| 1952 | { |
| 1953 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1954 | VkResult vkCreateAndroidSurfaceKHR_VkResult_return = (VkResult)0; |
| 1955 | vkCreateAndroidSurfaceKHR_VkResult_return = vkEnc->vkCreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1956 | return vkCreateAndroidSurfaceKHR_VkResult_return; |
| 1957 | } |
| 1958 | #endif |
| 1959 | #ifdef VK_KHR_win32_surface |
| 1960 | static VkResult entry_vkCreateWin32SurfaceKHR( |
| 1961 | VkInstance instance, |
| 1962 | const VkWin32SurfaceCreateInfoKHR* pCreateInfo, |
| 1963 | const VkAllocationCallbacks* pAllocator, |
| 1964 | VkSurfaceKHR* pSurface) |
| 1965 | { |
| 1966 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1967 | VkResult vkCreateWin32SurfaceKHR_VkResult_return = (VkResult)0; |
| 1968 | vkCreateWin32SurfaceKHR_VkResult_return = vkEnc->vkCreateWin32SurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); |
| 1969 | return vkCreateWin32SurfaceKHR_VkResult_return; |
| 1970 | } |
| 1971 | static VkBool32 entry_vkGetPhysicalDeviceWin32PresentationSupportKHR( |
| 1972 | VkPhysicalDevice physicalDevice, |
| 1973 | uint32_t queueFamilyIndex) |
| 1974 | { |
| 1975 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1976 | VkBool32 vkGetPhysicalDeviceWin32PresentationSupportKHR_VkBool32_return = (VkBool32)0; |
| 1977 | vkGetPhysicalDeviceWin32PresentationSupportKHR_VkBool32_return = vkEnc->vkGetPhysicalDeviceWin32PresentationSupportKHR(physicalDevice, queueFamilyIndex); |
| 1978 | return vkGetPhysicalDeviceWin32PresentationSupportKHR_VkBool32_return; |
| 1979 | } |
| 1980 | #endif |
| 1981 | #ifdef VK_KHR_sampler_mirror_clamp_to_edge |
| 1982 | #endif |
| 1983 | #ifdef VK_KHR_multiview |
| 1984 | #endif |
| 1985 | #ifdef VK_KHR_get_physical_device_properties2 |
| 1986 | static void entry_vkGetPhysicalDeviceFeatures2KHR( |
| 1987 | VkPhysicalDevice physicalDevice, |
| 1988 | VkPhysicalDeviceFeatures2* pFeatures) |
| 1989 | { |
| 1990 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1991 | vkEnc->vkGetPhysicalDeviceFeatures2KHR(physicalDevice, pFeatures); |
| 1992 | } |
| 1993 | static void entry_vkGetPhysicalDeviceProperties2KHR( |
| 1994 | VkPhysicalDevice physicalDevice, |
| 1995 | VkPhysicalDeviceProperties2* pProperties) |
| 1996 | { |
| 1997 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 1998 | vkEnc->vkGetPhysicalDeviceProperties2KHR(physicalDevice, pProperties); |
| 1999 | } |
| 2000 | static void entry_vkGetPhysicalDeviceFormatProperties2KHR( |
| 2001 | VkPhysicalDevice physicalDevice, |
| 2002 | VkFormat format, |
| 2003 | VkFormatProperties2* pFormatProperties) |
| 2004 | { |
| 2005 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2006 | vkEnc->vkGetPhysicalDeviceFormatProperties2KHR(physicalDevice, format, pFormatProperties); |
| 2007 | } |
| 2008 | static VkResult entry_vkGetPhysicalDeviceImageFormatProperties2KHR( |
| 2009 | VkPhysicalDevice physicalDevice, |
| 2010 | const VkPhysicalDeviceImageFormatInfo2* pImageFormatInfo, |
| 2011 | VkImageFormatProperties2* pImageFormatProperties) |
| 2012 | { |
| 2013 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2014 | VkResult vkGetPhysicalDeviceImageFormatProperties2KHR_VkResult_return = (VkResult)0; |
| 2015 | vkGetPhysicalDeviceImageFormatProperties2KHR_VkResult_return = vkEnc->vkGetPhysicalDeviceImageFormatProperties2KHR(physicalDevice, pImageFormatInfo, pImageFormatProperties); |
| 2016 | return vkGetPhysicalDeviceImageFormatProperties2KHR_VkResult_return; |
| 2017 | } |
| 2018 | static void entry_vkGetPhysicalDeviceQueueFamilyProperties2KHR( |
| 2019 | VkPhysicalDevice physicalDevice, |
| 2020 | uint32_t* pQueueFamilyPropertyCount, |
| 2021 | VkQueueFamilyProperties2* pQueueFamilyProperties) |
| 2022 | { |
| 2023 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2024 | vkEnc->vkGetPhysicalDeviceQueueFamilyProperties2KHR(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); |
| 2025 | } |
| 2026 | static void entry_vkGetPhysicalDeviceMemoryProperties2KHR( |
| 2027 | VkPhysicalDevice physicalDevice, |
| 2028 | VkPhysicalDeviceMemoryProperties2* pMemoryProperties) |
| 2029 | { |
| 2030 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2031 | vkEnc->vkGetPhysicalDeviceMemoryProperties2KHR(physicalDevice, pMemoryProperties); |
| 2032 | } |
| 2033 | static void entry_vkGetPhysicalDeviceSparseImageFormatProperties2KHR( |
| 2034 | VkPhysicalDevice physicalDevice, |
| 2035 | const VkPhysicalDeviceSparseImageFormatInfo2* pFormatInfo, |
| 2036 | uint32_t* pPropertyCount, |
| 2037 | VkSparseImageFormatProperties2* pProperties) |
| 2038 | { |
| 2039 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2040 | vkEnc->vkGetPhysicalDeviceSparseImageFormatProperties2KHR(physicalDevice, pFormatInfo, pPropertyCount, pProperties); |
| 2041 | } |
| 2042 | #endif |
| 2043 | #ifdef VK_KHR_device_group |
| 2044 | static void entry_vkGetDeviceGroupPeerMemoryFeaturesKHR( |
| 2045 | VkDevice device, |
| 2046 | uint32_t heapIndex, |
| 2047 | uint32_t localDeviceIndex, |
| 2048 | uint32_t remoteDeviceIndex, |
| 2049 | VkPeerMemoryFeatureFlags* pPeerMemoryFeatures) |
| 2050 | { |
| 2051 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2052 | vkEnc->vkGetDeviceGroupPeerMemoryFeaturesKHR(device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures); |
| 2053 | } |
| 2054 | static void entry_vkCmdSetDeviceMaskKHR( |
| 2055 | VkCommandBuffer commandBuffer, |
| 2056 | uint32_t deviceMask) |
| 2057 | { |
| 2058 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2059 | vkEnc->vkCmdSetDeviceMaskKHR(commandBuffer, deviceMask); |
| 2060 | } |
| 2061 | static void entry_vkCmdDispatchBaseKHR( |
| 2062 | VkCommandBuffer commandBuffer, |
| 2063 | uint32_t baseGroupX, |
| 2064 | uint32_t baseGroupY, |
| 2065 | uint32_t baseGroupZ, |
| 2066 | uint32_t groupCountX, |
| 2067 | uint32_t groupCountY, |
| 2068 | uint32_t groupCountZ) |
| 2069 | { |
| 2070 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2071 | vkEnc->vkCmdDispatchBaseKHR(commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ); |
| 2072 | } |
| 2073 | #endif |
| 2074 | #ifdef VK_KHR_shader_draw_parameters |
| 2075 | #endif |
| 2076 | #ifdef VK_KHR_maintenance1 |
| 2077 | static void entry_vkTrimCommandPoolKHR( |
| 2078 | VkDevice device, |
| 2079 | VkCommandPool commandPool, |
| 2080 | VkCommandPoolTrimFlags flags) |
| 2081 | { |
| 2082 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2083 | vkEnc->vkTrimCommandPoolKHR(device, commandPool, flags); |
| 2084 | } |
| 2085 | #endif |
| 2086 | #ifdef VK_KHR_device_group_creation |
| 2087 | static VkResult entry_vkEnumeratePhysicalDeviceGroupsKHR( |
| 2088 | VkInstance instance, |
| 2089 | uint32_t* pPhysicalDeviceGroupCount, |
| 2090 | VkPhysicalDeviceGroupProperties* pPhysicalDeviceGroupProperties) |
| 2091 | { |
| 2092 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2093 | VkResult vkEnumeratePhysicalDeviceGroupsKHR_VkResult_return = (VkResult)0; |
| 2094 | vkEnumeratePhysicalDeviceGroupsKHR_VkResult_return = vkEnc->vkEnumeratePhysicalDeviceGroupsKHR(instance, pPhysicalDeviceGroupCount, pPhysicalDeviceGroupProperties); |
| 2095 | return vkEnumeratePhysicalDeviceGroupsKHR_VkResult_return; |
| 2096 | } |
| 2097 | #endif |
| 2098 | #ifdef VK_KHR_external_memory_capabilities |
| 2099 | static void entry_vkGetPhysicalDeviceExternalBufferPropertiesKHR( |
| 2100 | VkPhysicalDevice physicalDevice, |
| 2101 | const VkPhysicalDeviceExternalBufferInfo* pExternalBufferInfo, |
| 2102 | VkExternalBufferProperties* pExternalBufferProperties) |
| 2103 | { |
| 2104 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2105 | vkEnc->vkGetPhysicalDeviceExternalBufferPropertiesKHR(physicalDevice, pExternalBufferInfo, pExternalBufferProperties); |
| 2106 | } |
| 2107 | #endif |
| 2108 | #ifdef VK_KHR_external_memory |
| 2109 | #endif |
| 2110 | #ifdef VK_KHR_external_memory_win32 |
| 2111 | static VkResult entry_vkGetMemoryWin32HandleKHR( |
| 2112 | VkDevice device, |
| 2113 | const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
| 2114 | HANDLE* pHandle) |
| 2115 | { |
| 2116 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2117 | VkResult vkGetMemoryWin32HandleKHR_VkResult_return = (VkResult)0; |
| 2118 | vkGetMemoryWin32HandleKHR_VkResult_return = vkEnc->vkGetMemoryWin32HandleKHR(device, pGetWin32HandleInfo, pHandle); |
| 2119 | return vkGetMemoryWin32HandleKHR_VkResult_return; |
| 2120 | } |
| 2121 | static VkResult entry_vkGetMemoryWin32HandlePropertiesKHR( |
| 2122 | VkDevice device, |
| 2123 | VkExternalMemoryHandleTypeFlagBits handleType, |
| 2124 | HANDLE handle, |
| 2125 | VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties) |
| 2126 | { |
| 2127 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2128 | VkResult vkGetMemoryWin32HandlePropertiesKHR_VkResult_return = (VkResult)0; |
| 2129 | vkGetMemoryWin32HandlePropertiesKHR_VkResult_return = vkEnc->vkGetMemoryWin32HandlePropertiesKHR(device, handleType, handle, pMemoryWin32HandleProperties); |
| 2130 | return vkGetMemoryWin32HandlePropertiesKHR_VkResult_return; |
| 2131 | } |
| 2132 | #endif |
| 2133 | #ifdef VK_KHR_external_memory_fd |
| 2134 | static VkResult entry_vkGetMemoryFdKHR( |
| 2135 | VkDevice device, |
| 2136 | const VkMemoryGetFdInfoKHR* pGetFdInfo, |
| 2137 | int* pFd) |
| 2138 | { |
| 2139 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2140 | VkResult vkGetMemoryFdKHR_VkResult_return = (VkResult)0; |
| 2141 | vkGetMemoryFdKHR_VkResult_return = vkEnc->vkGetMemoryFdKHR(device, pGetFdInfo, pFd); |
| 2142 | return vkGetMemoryFdKHR_VkResult_return; |
| 2143 | } |
| 2144 | static VkResult entry_vkGetMemoryFdPropertiesKHR( |
| 2145 | VkDevice device, |
| 2146 | VkExternalMemoryHandleTypeFlagBits handleType, |
| 2147 | int fd, |
| 2148 | VkMemoryFdPropertiesKHR* pMemoryFdProperties) |
| 2149 | { |
| 2150 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2151 | VkResult vkGetMemoryFdPropertiesKHR_VkResult_return = (VkResult)0; |
| 2152 | vkGetMemoryFdPropertiesKHR_VkResult_return = vkEnc->vkGetMemoryFdPropertiesKHR(device, handleType, fd, pMemoryFdProperties); |
| 2153 | return vkGetMemoryFdPropertiesKHR_VkResult_return; |
| 2154 | } |
| 2155 | #endif |
| 2156 | #ifdef VK_KHR_win32_keyed_mutex |
| 2157 | #endif |
| 2158 | #ifdef VK_KHR_external_semaphore_capabilities |
| 2159 | static void entry_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR( |
| 2160 | VkPhysicalDevice physicalDevice, |
| 2161 | const VkPhysicalDeviceExternalSemaphoreInfo* pExternalSemaphoreInfo, |
| 2162 | VkExternalSemaphoreProperties* pExternalSemaphoreProperties) |
| 2163 | { |
| 2164 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2165 | vkEnc->vkGetPhysicalDeviceExternalSemaphorePropertiesKHR(physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties); |
| 2166 | } |
| 2167 | #endif |
| 2168 | #ifdef VK_KHR_external_semaphore |
| 2169 | #endif |
| 2170 | #ifdef VK_KHR_external_semaphore_win32 |
| 2171 | static VkResult entry_vkImportSemaphoreWin32HandleKHR( |
| 2172 | VkDevice device, |
| 2173 | const VkImportSemaphoreWin32HandleInfoKHR* pImportSemaphoreWin32HandleInfo) |
| 2174 | { |
| 2175 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2176 | VkResult vkImportSemaphoreWin32HandleKHR_VkResult_return = (VkResult)0; |
| 2177 | vkImportSemaphoreWin32HandleKHR_VkResult_return = vkEnc->vkImportSemaphoreWin32HandleKHR(device, pImportSemaphoreWin32HandleInfo); |
| 2178 | return vkImportSemaphoreWin32HandleKHR_VkResult_return; |
| 2179 | } |
| 2180 | static VkResult entry_vkGetSemaphoreWin32HandleKHR( |
| 2181 | VkDevice device, |
| 2182 | const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
| 2183 | HANDLE* pHandle) |
| 2184 | { |
| 2185 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2186 | VkResult vkGetSemaphoreWin32HandleKHR_VkResult_return = (VkResult)0; |
| 2187 | vkGetSemaphoreWin32HandleKHR_VkResult_return = vkEnc->vkGetSemaphoreWin32HandleKHR(device, pGetWin32HandleInfo, pHandle); |
| 2188 | return vkGetSemaphoreWin32HandleKHR_VkResult_return; |
| 2189 | } |
| 2190 | #endif |
| 2191 | #ifdef VK_KHR_external_semaphore_fd |
| 2192 | static VkResult entry_vkImportSemaphoreFdKHR( |
| 2193 | VkDevice device, |
| 2194 | const VkImportSemaphoreFdInfoKHR* pImportSemaphoreFdInfo) |
| 2195 | { |
| 2196 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2197 | VkResult vkImportSemaphoreFdKHR_VkResult_return = (VkResult)0; |
| 2198 | vkImportSemaphoreFdKHR_VkResult_return = vkEnc->vkImportSemaphoreFdKHR(device, pImportSemaphoreFdInfo); |
| 2199 | return vkImportSemaphoreFdKHR_VkResult_return; |
| 2200 | } |
| 2201 | static VkResult entry_vkGetSemaphoreFdKHR( |
| 2202 | VkDevice device, |
| 2203 | const VkSemaphoreGetFdInfoKHR* pGetFdInfo, |
| 2204 | int* pFd) |
| 2205 | { |
| 2206 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2207 | VkResult vkGetSemaphoreFdKHR_VkResult_return = (VkResult)0; |
| 2208 | vkGetSemaphoreFdKHR_VkResult_return = vkEnc->vkGetSemaphoreFdKHR(device, pGetFdInfo, pFd); |
| 2209 | return vkGetSemaphoreFdKHR_VkResult_return; |
| 2210 | } |
| 2211 | #endif |
| 2212 | #ifdef VK_KHR_push_descriptor |
| 2213 | static void entry_vkCmdPushDescriptorSetKHR( |
| 2214 | VkCommandBuffer commandBuffer, |
| 2215 | VkPipelineBindPoint pipelineBindPoint, |
| 2216 | VkPipelineLayout layout, |
| 2217 | uint32_t set, |
| 2218 | uint32_t descriptorWriteCount, |
| 2219 | const VkWriteDescriptorSet* pDescriptorWrites) |
| 2220 | { |
| 2221 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2222 | vkEnc->vkCmdPushDescriptorSetKHR(commandBuffer, pipelineBindPoint, layout, set, descriptorWriteCount, pDescriptorWrites); |
| 2223 | } |
| 2224 | static void entry_vkCmdPushDescriptorSetWithTemplateKHR( |
| 2225 | VkCommandBuffer commandBuffer, |
| 2226 | VkDescriptorUpdateTemplate descriptorUpdateTemplate, |
| 2227 | VkPipelineLayout layout, |
| 2228 | uint32_t set, |
| 2229 | const void* pData) |
| 2230 | { |
| 2231 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2232 | vkEnc->vkCmdPushDescriptorSetWithTemplateKHR(commandBuffer, descriptorUpdateTemplate, layout, set, pData); |
| 2233 | } |
| 2234 | #endif |
| 2235 | #ifdef VK_KHR_16bit_storage |
| 2236 | #endif |
| 2237 | #ifdef VK_KHR_incremental_present |
| 2238 | #endif |
| 2239 | #ifdef VK_KHR_descriptor_update_template |
| 2240 | static VkResult entry_vkCreateDescriptorUpdateTemplateKHR( |
| 2241 | VkDevice device, |
| 2242 | const VkDescriptorUpdateTemplateCreateInfo* pCreateInfo, |
| 2243 | const VkAllocationCallbacks* pAllocator, |
| 2244 | VkDescriptorUpdateTemplate* pDescriptorUpdateTemplate) |
| 2245 | { |
| 2246 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2247 | VkResult vkCreateDescriptorUpdateTemplateKHR_VkResult_return = (VkResult)0; |
| 2248 | vkCreateDescriptorUpdateTemplateKHR_VkResult_return = vkEnc->vkCreateDescriptorUpdateTemplateKHR(device, pCreateInfo, pAllocator, pDescriptorUpdateTemplate); |
| 2249 | return vkCreateDescriptorUpdateTemplateKHR_VkResult_return; |
| 2250 | } |
| 2251 | static void entry_vkDestroyDescriptorUpdateTemplateKHR( |
| 2252 | VkDevice device, |
| 2253 | VkDescriptorUpdateTemplate descriptorUpdateTemplate, |
| 2254 | const VkAllocationCallbacks* pAllocator) |
| 2255 | { |
| 2256 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2257 | vkEnc->vkDestroyDescriptorUpdateTemplateKHR(device, descriptorUpdateTemplate, pAllocator); |
| 2258 | } |
| 2259 | static void entry_vkUpdateDescriptorSetWithTemplateKHR( |
| 2260 | VkDevice device, |
| 2261 | VkDescriptorSet descriptorSet, |
| 2262 | VkDescriptorUpdateTemplate descriptorUpdateTemplate, |
| 2263 | const void* pData) |
| 2264 | { |
| 2265 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2266 | vkEnc->vkUpdateDescriptorSetWithTemplateKHR(device, descriptorSet, descriptorUpdateTemplate, pData); |
| 2267 | } |
| 2268 | #endif |
| 2269 | #ifdef VK_KHR_create_renderpass2 |
| 2270 | static VkResult entry_vkCreateRenderPass2KHR( |
| 2271 | VkDevice device, |
| 2272 | const VkRenderPassCreateInfo2KHR* pCreateInfo, |
| 2273 | const VkAllocationCallbacks* pAllocator, |
| 2274 | VkRenderPass* pRenderPass) |
| 2275 | { |
| 2276 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2277 | VkResult vkCreateRenderPass2KHR_VkResult_return = (VkResult)0; |
| 2278 | vkCreateRenderPass2KHR_VkResult_return = vkEnc->vkCreateRenderPass2KHR(device, pCreateInfo, pAllocator, pRenderPass); |
| 2279 | return vkCreateRenderPass2KHR_VkResult_return; |
| 2280 | } |
| 2281 | static void entry_vkCmdBeginRenderPass2KHR( |
| 2282 | VkCommandBuffer commandBuffer, |
| 2283 | const VkRenderPassBeginInfo* pRenderPassBegin, |
| 2284 | const VkSubpassBeginInfoKHR* pSubpassBeginInfo) |
| 2285 | { |
| 2286 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2287 | vkEnc->vkCmdBeginRenderPass2KHR(commandBuffer, pRenderPassBegin, pSubpassBeginInfo); |
| 2288 | } |
| 2289 | static void entry_vkCmdNextSubpass2KHR( |
| 2290 | VkCommandBuffer commandBuffer, |
| 2291 | const VkSubpassBeginInfoKHR* pSubpassBeginInfo, |
| 2292 | const VkSubpassEndInfoKHR* pSubpassEndInfo) |
| 2293 | { |
| 2294 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2295 | vkEnc->vkCmdNextSubpass2KHR(commandBuffer, pSubpassBeginInfo, pSubpassEndInfo); |
| 2296 | } |
| 2297 | static void entry_vkCmdEndRenderPass2KHR( |
| 2298 | VkCommandBuffer commandBuffer, |
| 2299 | const VkSubpassEndInfoKHR* pSubpassEndInfo) |
| 2300 | { |
| 2301 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2302 | vkEnc->vkCmdEndRenderPass2KHR(commandBuffer, pSubpassEndInfo); |
| 2303 | } |
| 2304 | #endif |
| 2305 | #ifdef VK_KHR_shared_presentable_image |
| 2306 | static VkResult entry_vkGetSwapchainStatusKHR( |
| 2307 | VkDevice device, |
| 2308 | VkSwapchainKHR swapchain) |
| 2309 | { |
| 2310 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2311 | VkResult vkGetSwapchainStatusKHR_VkResult_return = (VkResult)0; |
| 2312 | vkGetSwapchainStatusKHR_VkResult_return = vkEnc->vkGetSwapchainStatusKHR(device, swapchain); |
| 2313 | return vkGetSwapchainStatusKHR_VkResult_return; |
| 2314 | } |
| 2315 | #endif |
| 2316 | #ifdef VK_KHR_external_fence_capabilities |
| 2317 | static void entry_vkGetPhysicalDeviceExternalFencePropertiesKHR( |
| 2318 | VkPhysicalDevice physicalDevice, |
| 2319 | const VkPhysicalDeviceExternalFenceInfo* pExternalFenceInfo, |
| 2320 | VkExternalFenceProperties* pExternalFenceProperties) |
| 2321 | { |
| 2322 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2323 | vkEnc->vkGetPhysicalDeviceExternalFencePropertiesKHR(physicalDevice, pExternalFenceInfo, pExternalFenceProperties); |
| 2324 | } |
| 2325 | #endif |
| 2326 | #ifdef VK_KHR_external_fence |
| 2327 | #endif |
| 2328 | #ifdef VK_KHR_external_fence_win32 |
| 2329 | static VkResult entry_vkImportFenceWin32HandleKHR( |
| 2330 | VkDevice device, |
| 2331 | const VkImportFenceWin32HandleInfoKHR* pImportFenceWin32HandleInfo) |
| 2332 | { |
| 2333 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2334 | VkResult vkImportFenceWin32HandleKHR_VkResult_return = (VkResult)0; |
| 2335 | vkImportFenceWin32HandleKHR_VkResult_return = vkEnc->vkImportFenceWin32HandleKHR(device, pImportFenceWin32HandleInfo); |
| 2336 | return vkImportFenceWin32HandleKHR_VkResult_return; |
| 2337 | } |
| 2338 | static VkResult entry_vkGetFenceWin32HandleKHR( |
| 2339 | VkDevice device, |
| 2340 | const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, |
| 2341 | HANDLE* pHandle) |
| 2342 | { |
| 2343 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2344 | VkResult vkGetFenceWin32HandleKHR_VkResult_return = (VkResult)0; |
| 2345 | vkGetFenceWin32HandleKHR_VkResult_return = vkEnc->vkGetFenceWin32HandleKHR(device, pGetWin32HandleInfo, pHandle); |
| 2346 | return vkGetFenceWin32HandleKHR_VkResult_return; |
| 2347 | } |
| 2348 | #endif |
| 2349 | #ifdef VK_KHR_external_fence_fd |
| 2350 | static VkResult entry_vkImportFenceFdKHR( |
| 2351 | VkDevice device, |
| 2352 | const VkImportFenceFdInfoKHR* pImportFenceFdInfo) |
| 2353 | { |
| 2354 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2355 | VkResult vkImportFenceFdKHR_VkResult_return = (VkResult)0; |
| 2356 | vkImportFenceFdKHR_VkResult_return = vkEnc->vkImportFenceFdKHR(device, pImportFenceFdInfo); |
| 2357 | return vkImportFenceFdKHR_VkResult_return; |
| 2358 | } |
| 2359 | static VkResult entry_vkGetFenceFdKHR( |
| 2360 | VkDevice device, |
| 2361 | const VkFenceGetFdInfoKHR* pGetFdInfo, |
| 2362 | int* pFd) |
| 2363 | { |
| 2364 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2365 | VkResult vkGetFenceFdKHR_VkResult_return = (VkResult)0; |
| 2366 | vkGetFenceFdKHR_VkResult_return = vkEnc->vkGetFenceFdKHR(device, pGetFdInfo, pFd); |
| 2367 | return vkGetFenceFdKHR_VkResult_return; |
| 2368 | } |
| 2369 | #endif |
| 2370 | #ifdef VK_KHR_maintenance2 |
| 2371 | #endif |
| 2372 | #ifdef VK_KHR_get_surface_capabilities2 |
| 2373 | static VkResult entry_vkGetPhysicalDeviceSurfaceCapabilities2KHR( |
| 2374 | VkPhysicalDevice physicalDevice, |
| 2375 | const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, |
| 2376 | VkSurfaceCapabilities2KHR* pSurfaceCapabilities) |
| 2377 | { |
| 2378 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2379 | VkResult vkGetPhysicalDeviceSurfaceCapabilities2KHR_VkResult_return = (VkResult)0; |
| 2380 | vkGetPhysicalDeviceSurfaceCapabilities2KHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceCapabilities2KHR(physicalDevice, pSurfaceInfo, pSurfaceCapabilities); |
| 2381 | return vkGetPhysicalDeviceSurfaceCapabilities2KHR_VkResult_return; |
| 2382 | } |
| 2383 | static VkResult entry_vkGetPhysicalDeviceSurfaceFormats2KHR( |
| 2384 | VkPhysicalDevice physicalDevice, |
| 2385 | const VkPhysicalDeviceSurfaceInfo2KHR* pSurfaceInfo, |
| 2386 | uint32_t* pSurfaceFormatCount, |
| 2387 | VkSurfaceFormat2KHR* pSurfaceFormats) |
| 2388 | { |
| 2389 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2390 | VkResult vkGetPhysicalDeviceSurfaceFormats2KHR_VkResult_return = (VkResult)0; |
| 2391 | vkGetPhysicalDeviceSurfaceFormats2KHR_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceFormats2KHR(physicalDevice, pSurfaceInfo, pSurfaceFormatCount, pSurfaceFormats); |
| 2392 | return vkGetPhysicalDeviceSurfaceFormats2KHR_VkResult_return; |
| 2393 | } |
| 2394 | #endif |
| 2395 | #ifdef VK_KHR_variable_pointers |
| 2396 | #endif |
| 2397 | #ifdef VK_KHR_get_display_properties2 |
| 2398 | static VkResult entry_vkGetPhysicalDeviceDisplayProperties2KHR( |
| 2399 | VkPhysicalDevice physicalDevice, |
| 2400 | uint32_t* pPropertyCount, |
| 2401 | VkDisplayProperties2KHR* pProperties) |
| 2402 | { |
| 2403 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2404 | VkResult vkGetPhysicalDeviceDisplayProperties2KHR_VkResult_return = (VkResult)0; |
| 2405 | vkGetPhysicalDeviceDisplayProperties2KHR_VkResult_return = vkEnc->vkGetPhysicalDeviceDisplayProperties2KHR(physicalDevice, pPropertyCount, pProperties); |
| 2406 | return vkGetPhysicalDeviceDisplayProperties2KHR_VkResult_return; |
| 2407 | } |
| 2408 | static VkResult entry_vkGetPhysicalDeviceDisplayPlaneProperties2KHR( |
| 2409 | VkPhysicalDevice physicalDevice, |
| 2410 | uint32_t* pPropertyCount, |
| 2411 | VkDisplayPlaneProperties2KHR* pProperties) |
| 2412 | { |
| 2413 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2414 | VkResult vkGetPhysicalDeviceDisplayPlaneProperties2KHR_VkResult_return = (VkResult)0; |
| 2415 | vkGetPhysicalDeviceDisplayPlaneProperties2KHR_VkResult_return = vkEnc->vkGetPhysicalDeviceDisplayPlaneProperties2KHR(physicalDevice, pPropertyCount, pProperties); |
| 2416 | return vkGetPhysicalDeviceDisplayPlaneProperties2KHR_VkResult_return; |
| 2417 | } |
| 2418 | static VkResult entry_vkGetDisplayModeProperties2KHR( |
| 2419 | VkPhysicalDevice physicalDevice, |
| 2420 | VkDisplayKHR display, |
| 2421 | uint32_t* pPropertyCount, |
| 2422 | VkDisplayModeProperties2KHR* pProperties) |
| 2423 | { |
| 2424 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2425 | VkResult vkGetDisplayModeProperties2KHR_VkResult_return = (VkResult)0; |
| 2426 | vkGetDisplayModeProperties2KHR_VkResult_return = vkEnc->vkGetDisplayModeProperties2KHR(physicalDevice, display, pPropertyCount, pProperties); |
| 2427 | return vkGetDisplayModeProperties2KHR_VkResult_return; |
| 2428 | } |
| 2429 | static VkResult entry_vkGetDisplayPlaneCapabilities2KHR( |
| 2430 | VkPhysicalDevice physicalDevice, |
| 2431 | const VkDisplayPlaneInfo2KHR* pDisplayPlaneInfo, |
| 2432 | VkDisplayPlaneCapabilities2KHR* pCapabilities) |
| 2433 | { |
| 2434 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2435 | VkResult vkGetDisplayPlaneCapabilities2KHR_VkResult_return = (VkResult)0; |
| 2436 | vkGetDisplayPlaneCapabilities2KHR_VkResult_return = vkEnc->vkGetDisplayPlaneCapabilities2KHR(physicalDevice, pDisplayPlaneInfo, pCapabilities); |
| 2437 | return vkGetDisplayPlaneCapabilities2KHR_VkResult_return; |
| 2438 | } |
| 2439 | #endif |
| 2440 | #ifdef VK_KHR_dedicated_allocation |
| 2441 | #endif |
| 2442 | #ifdef VK_KHR_storage_buffer_storage_class |
| 2443 | #endif |
| 2444 | #ifdef VK_KHR_relaxed_block_layout |
| 2445 | #endif |
| 2446 | #ifdef VK_KHR_get_memory_requirements2 |
| 2447 | static void entry_vkGetImageMemoryRequirements2KHR( |
| 2448 | VkDevice device, |
| 2449 | const VkImageMemoryRequirementsInfo2* pInfo, |
| 2450 | VkMemoryRequirements2* pMemoryRequirements) |
| 2451 | { |
| 2452 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2453 | vkEnc->vkGetImageMemoryRequirements2KHR(device, pInfo, pMemoryRequirements); |
| 2454 | } |
| 2455 | static void entry_vkGetBufferMemoryRequirements2KHR( |
| 2456 | VkDevice device, |
| 2457 | const VkBufferMemoryRequirementsInfo2* pInfo, |
| 2458 | VkMemoryRequirements2* pMemoryRequirements) |
| 2459 | { |
| 2460 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2461 | vkEnc->vkGetBufferMemoryRequirements2KHR(device, pInfo, pMemoryRequirements); |
| 2462 | } |
| 2463 | static void entry_vkGetImageSparseMemoryRequirements2KHR( |
| 2464 | VkDevice device, |
| 2465 | const VkImageSparseMemoryRequirementsInfo2* pInfo, |
| 2466 | uint32_t* pSparseMemoryRequirementCount, |
| 2467 | VkSparseImageMemoryRequirements2* pSparseMemoryRequirements) |
| 2468 | { |
| 2469 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2470 | vkEnc->vkGetImageSparseMemoryRequirements2KHR(device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements); |
| 2471 | } |
| 2472 | #endif |
| 2473 | #ifdef VK_KHR_image_format_list |
| 2474 | #endif |
| 2475 | #ifdef VK_KHR_sampler_ycbcr_conversion |
| 2476 | static VkResult entry_vkCreateSamplerYcbcrConversionKHR( |
| 2477 | VkDevice device, |
| 2478 | const VkSamplerYcbcrConversionCreateInfo* pCreateInfo, |
| 2479 | const VkAllocationCallbacks* pAllocator, |
| 2480 | VkSamplerYcbcrConversion* pYcbcrConversion) |
| 2481 | { |
| 2482 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2483 | VkResult vkCreateSamplerYcbcrConversionKHR_VkResult_return = (VkResult)0; |
| 2484 | vkCreateSamplerYcbcrConversionKHR_VkResult_return = vkEnc->vkCreateSamplerYcbcrConversionKHR(device, pCreateInfo, pAllocator, pYcbcrConversion); |
| 2485 | return vkCreateSamplerYcbcrConversionKHR_VkResult_return; |
| 2486 | } |
| 2487 | static void entry_vkDestroySamplerYcbcrConversionKHR( |
| 2488 | VkDevice device, |
| 2489 | VkSamplerYcbcrConversion ycbcrConversion, |
| 2490 | const VkAllocationCallbacks* pAllocator) |
| 2491 | { |
| 2492 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2493 | vkEnc->vkDestroySamplerYcbcrConversionKHR(device, ycbcrConversion, pAllocator); |
| 2494 | } |
| 2495 | #endif |
| 2496 | #ifdef VK_KHR_bind_memory2 |
| 2497 | static VkResult entry_vkBindBufferMemory2KHR( |
| 2498 | VkDevice device, |
| 2499 | uint32_t bindInfoCount, |
| 2500 | const VkBindBufferMemoryInfo* pBindInfos) |
| 2501 | { |
| 2502 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2503 | VkResult vkBindBufferMemory2KHR_VkResult_return = (VkResult)0; |
| 2504 | vkBindBufferMemory2KHR_VkResult_return = vkEnc->vkBindBufferMemory2KHR(device, bindInfoCount, pBindInfos); |
| 2505 | return vkBindBufferMemory2KHR_VkResult_return; |
| 2506 | } |
| 2507 | static VkResult entry_vkBindImageMemory2KHR( |
| 2508 | VkDevice device, |
| 2509 | uint32_t bindInfoCount, |
| 2510 | const VkBindImageMemoryInfo* pBindInfos) |
| 2511 | { |
| 2512 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2513 | VkResult vkBindImageMemory2KHR_VkResult_return = (VkResult)0; |
| 2514 | vkBindImageMemory2KHR_VkResult_return = vkEnc->vkBindImageMemory2KHR(device, bindInfoCount, pBindInfos); |
| 2515 | return vkBindImageMemory2KHR_VkResult_return; |
| 2516 | } |
| 2517 | #endif |
| 2518 | #ifdef VK_KHR_maintenance3 |
| 2519 | static void entry_vkGetDescriptorSetLayoutSupportKHR( |
| 2520 | VkDevice device, |
| 2521 | const VkDescriptorSetLayoutCreateInfo* pCreateInfo, |
| 2522 | VkDescriptorSetLayoutSupport* pSupport) |
| 2523 | { |
| 2524 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2525 | vkEnc->vkGetDescriptorSetLayoutSupportKHR(device, pCreateInfo, pSupport); |
| 2526 | } |
| 2527 | #endif |
| 2528 | #ifdef VK_KHR_draw_indirect_count |
| 2529 | static void entry_vkCmdDrawIndirectCountKHR( |
| 2530 | VkCommandBuffer commandBuffer, |
| 2531 | VkBuffer buffer, |
| 2532 | VkDeviceSize offset, |
| 2533 | VkBuffer countBuffer, |
| 2534 | VkDeviceSize countBufferOffset, |
| 2535 | uint32_t maxDrawCount, |
| 2536 | uint32_t stride) |
| 2537 | { |
| 2538 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2539 | vkEnc->vkCmdDrawIndirectCountKHR(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride); |
| 2540 | } |
| 2541 | static void entry_vkCmdDrawIndexedIndirectCountKHR( |
| 2542 | VkCommandBuffer commandBuffer, |
| 2543 | VkBuffer buffer, |
| 2544 | VkDeviceSize offset, |
| 2545 | VkBuffer countBuffer, |
| 2546 | VkDeviceSize countBufferOffset, |
| 2547 | uint32_t maxDrawCount, |
| 2548 | uint32_t stride) |
| 2549 | { |
| 2550 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2551 | vkEnc->vkCmdDrawIndexedIndirectCountKHR(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride); |
| 2552 | } |
| 2553 | #endif |
| 2554 | #ifdef VK_KHR_8bit_storage |
| 2555 | #endif |
Lingfeng Yang | 808a631 | 2018-11-13 21:06:15 -0800 | [diff] [blame] | 2556 | #ifdef VK_ANDROID_native_buffer |
| 2557 | static VkResult entry_vkGetSwapchainGrallocUsageANDROID( |
| 2558 | VkDevice device, |
| 2559 | VkFormat format, |
| 2560 | VkImageUsageFlags imageUsage, |
| 2561 | int* grallocUsage) |
| 2562 | { |
| 2563 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2564 | VkResult vkGetSwapchainGrallocUsageANDROID_VkResult_return = (VkResult)0; |
| 2565 | vkGetSwapchainGrallocUsageANDROID_VkResult_return = vkEnc->vkGetSwapchainGrallocUsageANDROID(device, format, imageUsage, grallocUsage); |
| 2566 | return vkGetSwapchainGrallocUsageANDROID_VkResult_return; |
| 2567 | } |
| 2568 | static VkResult entry_vkAcquireImageANDROID( |
| 2569 | VkDevice device, |
| 2570 | VkImage image, |
| 2571 | int nativeFenceFd, |
| 2572 | VkSemaphore semaphore, |
| 2573 | VkFence fence) |
| 2574 | { |
| 2575 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2576 | VkResult vkAcquireImageANDROID_VkResult_return = (VkResult)0; |
| 2577 | vkAcquireImageANDROID_VkResult_return = vkEnc->vkAcquireImageANDROID(device, image, nativeFenceFd, semaphore, fence); |
| 2578 | return vkAcquireImageANDROID_VkResult_return; |
| 2579 | } |
| 2580 | static VkResult entry_vkQueueSignalReleaseImageANDROID( |
| 2581 | VkQueue queue, |
| 2582 | uint32_t waitSemaphoreCount, |
| 2583 | const VkSemaphore* pWaitSemaphores, |
| 2584 | VkImage image, |
| 2585 | int* pNativeFenceFd) |
| 2586 | { |
| 2587 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2588 | VkResult vkQueueSignalReleaseImageANDROID_VkResult_return = (VkResult)0; |
| 2589 | vkQueueSignalReleaseImageANDROID_VkResult_return = vkEnc->vkQueueSignalReleaseImageANDROID(queue, waitSemaphoreCount, pWaitSemaphores, image, pNativeFenceFd); |
| 2590 | return vkQueueSignalReleaseImageANDROID_VkResult_return; |
| 2591 | } |
| 2592 | #endif |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 2593 | #ifdef VK_EXT_debug_report |
| 2594 | static VkResult entry_vkCreateDebugReportCallbackEXT( |
| 2595 | VkInstance instance, |
| 2596 | const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, |
| 2597 | const VkAllocationCallbacks* pAllocator, |
| 2598 | VkDebugReportCallbackEXT* pCallback) |
| 2599 | { |
| 2600 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2601 | VkResult vkCreateDebugReportCallbackEXT_VkResult_return = (VkResult)0; |
| 2602 | vkCreateDebugReportCallbackEXT_VkResult_return = vkEnc->vkCreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pCallback); |
| 2603 | return vkCreateDebugReportCallbackEXT_VkResult_return; |
| 2604 | } |
| 2605 | static void entry_vkDestroyDebugReportCallbackEXT( |
| 2606 | VkInstance instance, |
| 2607 | VkDebugReportCallbackEXT callback, |
| 2608 | const VkAllocationCallbacks* pAllocator) |
| 2609 | { |
| 2610 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2611 | vkEnc->vkDestroyDebugReportCallbackEXT(instance, callback, pAllocator); |
| 2612 | } |
| 2613 | static void entry_vkDebugReportMessageEXT( |
| 2614 | VkInstance instance, |
| 2615 | VkDebugReportFlagsEXT flags, |
| 2616 | VkDebugReportObjectTypeEXT objectType, |
| 2617 | uint64_t object, |
| 2618 | size_t location, |
| 2619 | int32_t messageCode, |
| 2620 | const char* pLayerPrefix, |
| 2621 | const char* pMessage) |
| 2622 | { |
| 2623 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2624 | vkEnc->vkDebugReportMessageEXT(instance, flags, objectType, object, location, messageCode, pLayerPrefix, pMessage); |
| 2625 | } |
| 2626 | #endif |
| 2627 | #ifdef VK_NV_glsl_shader |
| 2628 | #endif |
| 2629 | #ifdef VK_EXT_depth_range_unrestricted |
| 2630 | #endif |
| 2631 | #ifdef VK_IMG_filter_cubic |
| 2632 | #endif |
| 2633 | #ifdef VK_AMD_rasterization_order |
| 2634 | #endif |
| 2635 | #ifdef VK_AMD_shader_trinary_minmax |
| 2636 | #endif |
| 2637 | #ifdef VK_AMD_shader_explicit_vertex_parameter |
| 2638 | #endif |
| 2639 | #ifdef VK_EXT_debug_marker |
| 2640 | static VkResult entry_vkDebugMarkerSetObjectTagEXT( |
| 2641 | VkDevice device, |
| 2642 | const VkDebugMarkerObjectTagInfoEXT* pTagInfo) |
| 2643 | { |
| 2644 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2645 | VkResult vkDebugMarkerSetObjectTagEXT_VkResult_return = (VkResult)0; |
| 2646 | vkDebugMarkerSetObjectTagEXT_VkResult_return = vkEnc->vkDebugMarkerSetObjectTagEXT(device, pTagInfo); |
| 2647 | return vkDebugMarkerSetObjectTagEXT_VkResult_return; |
| 2648 | } |
| 2649 | static VkResult entry_vkDebugMarkerSetObjectNameEXT( |
| 2650 | VkDevice device, |
| 2651 | const VkDebugMarkerObjectNameInfoEXT* pNameInfo) |
| 2652 | { |
| 2653 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2654 | VkResult vkDebugMarkerSetObjectNameEXT_VkResult_return = (VkResult)0; |
| 2655 | vkDebugMarkerSetObjectNameEXT_VkResult_return = vkEnc->vkDebugMarkerSetObjectNameEXT(device, pNameInfo); |
| 2656 | return vkDebugMarkerSetObjectNameEXT_VkResult_return; |
| 2657 | } |
| 2658 | static void entry_vkCmdDebugMarkerBeginEXT( |
| 2659 | VkCommandBuffer commandBuffer, |
| 2660 | const VkDebugMarkerMarkerInfoEXT* pMarkerInfo) |
| 2661 | { |
| 2662 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2663 | vkEnc->vkCmdDebugMarkerBeginEXT(commandBuffer, pMarkerInfo); |
| 2664 | } |
| 2665 | static void entry_vkCmdDebugMarkerEndEXT( |
| 2666 | VkCommandBuffer commandBuffer) |
| 2667 | { |
| 2668 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2669 | vkEnc->vkCmdDebugMarkerEndEXT(commandBuffer); |
| 2670 | } |
| 2671 | static void entry_vkCmdDebugMarkerInsertEXT( |
| 2672 | VkCommandBuffer commandBuffer, |
| 2673 | const VkDebugMarkerMarkerInfoEXT* pMarkerInfo) |
| 2674 | { |
| 2675 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2676 | vkEnc->vkCmdDebugMarkerInsertEXT(commandBuffer, pMarkerInfo); |
| 2677 | } |
| 2678 | #endif |
| 2679 | #ifdef VK_AMD_gcn_shader |
| 2680 | #endif |
| 2681 | #ifdef VK_NV_dedicated_allocation |
| 2682 | #endif |
| 2683 | #ifdef VK_AMD_draw_indirect_count |
| 2684 | static void entry_vkCmdDrawIndirectCountAMD( |
| 2685 | VkCommandBuffer commandBuffer, |
| 2686 | VkBuffer buffer, |
| 2687 | VkDeviceSize offset, |
| 2688 | VkBuffer countBuffer, |
| 2689 | VkDeviceSize countBufferOffset, |
| 2690 | uint32_t maxDrawCount, |
| 2691 | uint32_t stride) |
| 2692 | { |
| 2693 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2694 | vkEnc->vkCmdDrawIndirectCountAMD(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride); |
| 2695 | } |
| 2696 | static void entry_vkCmdDrawIndexedIndirectCountAMD( |
| 2697 | VkCommandBuffer commandBuffer, |
| 2698 | VkBuffer buffer, |
| 2699 | VkDeviceSize offset, |
| 2700 | VkBuffer countBuffer, |
| 2701 | VkDeviceSize countBufferOffset, |
| 2702 | uint32_t maxDrawCount, |
| 2703 | uint32_t stride) |
| 2704 | { |
| 2705 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2706 | vkEnc->vkCmdDrawIndexedIndirectCountAMD(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride); |
| 2707 | } |
| 2708 | #endif |
| 2709 | #ifdef VK_AMD_negative_viewport_height |
| 2710 | #endif |
| 2711 | #ifdef VK_AMD_gpu_shader_half_float |
| 2712 | #endif |
| 2713 | #ifdef VK_AMD_shader_ballot |
| 2714 | #endif |
| 2715 | #ifdef VK_AMD_texture_gather_bias_lod |
| 2716 | #endif |
| 2717 | #ifdef VK_AMD_shader_info |
| 2718 | static VkResult entry_vkGetShaderInfoAMD( |
| 2719 | VkDevice device, |
| 2720 | VkPipeline pipeline, |
| 2721 | VkShaderStageFlagBits shaderStage, |
| 2722 | VkShaderInfoTypeAMD infoType, |
| 2723 | size_t* pInfoSize, |
| 2724 | void* pInfo) |
| 2725 | { |
| 2726 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2727 | VkResult vkGetShaderInfoAMD_VkResult_return = (VkResult)0; |
| 2728 | vkGetShaderInfoAMD_VkResult_return = vkEnc->vkGetShaderInfoAMD(device, pipeline, shaderStage, infoType, pInfoSize, pInfo); |
| 2729 | return vkGetShaderInfoAMD_VkResult_return; |
| 2730 | } |
| 2731 | #endif |
| 2732 | #ifdef VK_AMD_shader_image_load_store_lod |
| 2733 | #endif |
| 2734 | #ifdef VK_IMG_format_pvrtc |
| 2735 | #endif |
| 2736 | #ifdef VK_NV_external_memory_capabilities |
| 2737 | static VkResult entry_vkGetPhysicalDeviceExternalImageFormatPropertiesNV( |
| 2738 | VkPhysicalDevice physicalDevice, |
| 2739 | VkFormat format, |
| 2740 | VkImageType type, |
| 2741 | VkImageTiling tiling, |
| 2742 | VkImageUsageFlags usage, |
| 2743 | VkImageCreateFlags flags, |
| 2744 | VkExternalMemoryHandleTypeFlagsNV externalHandleType, |
| 2745 | VkExternalImageFormatPropertiesNV* pExternalImageFormatProperties) |
| 2746 | { |
| 2747 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2748 | VkResult vkGetPhysicalDeviceExternalImageFormatPropertiesNV_VkResult_return = (VkResult)0; |
| 2749 | vkGetPhysicalDeviceExternalImageFormatPropertiesNV_VkResult_return = vkEnc->vkGetPhysicalDeviceExternalImageFormatPropertiesNV(physicalDevice, format, type, tiling, usage, flags, externalHandleType, pExternalImageFormatProperties); |
| 2750 | return vkGetPhysicalDeviceExternalImageFormatPropertiesNV_VkResult_return; |
| 2751 | } |
| 2752 | #endif |
| 2753 | #ifdef VK_NV_external_memory |
| 2754 | #endif |
| 2755 | #ifdef VK_NV_external_memory_win32 |
| 2756 | static VkResult entry_vkGetMemoryWin32HandleNV( |
| 2757 | VkDevice device, |
| 2758 | VkDeviceMemory memory, |
| 2759 | VkExternalMemoryHandleTypeFlagsNV handleType, |
| 2760 | HANDLE* pHandle) |
| 2761 | { |
| 2762 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2763 | VkResult vkGetMemoryWin32HandleNV_VkResult_return = (VkResult)0; |
| 2764 | vkGetMemoryWin32HandleNV_VkResult_return = vkEnc->vkGetMemoryWin32HandleNV(device, memory, handleType, pHandle); |
| 2765 | return vkGetMemoryWin32HandleNV_VkResult_return; |
| 2766 | } |
| 2767 | #endif |
| 2768 | #ifdef VK_NV_win32_keyed_mutex |
| 2769 | #endif |
| 2770 | #ifdef VK_EXT_validation_flags |
| 2771 | #endif |
| 2772 | #ifdef VK_NN_vi_surface |
| 2773 | static VkResult entry_vkCreateViSurfaceNN( |
| 2774 | VkInstance instance, |
| 2775 | const VkViSurfaceCreateInfoNN* pCreateInfo, |
| 2776 | const VkAllocationCallbacks* pAllocator, |
| 2777 | VkSurfaceKHR* pSurface) |
| 2778 | { |
| 2779 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2780 | VkResult vkCreateViSurfaceNN_VkResult_return = (VkResult)0; |
| 2781 | vkCreateViSurfaceNN_VkResult_return = vkEnc->vkCreateViSurfaceNN(instance, pCreateInfo, pAllocator, pSurface); |
| 2782 | return vkCreateViSurfaceNN_VkResult_return; |
| 2783 | } |
| 2784 | #endif |
| 2785 | #ifdef VK_EXT_shader_subgroup_ballot |
| 2786 | #endif |
| 2787 | #ifdef VK_EXT_shader_subgroup_vote |
| 2788 | #endif |
| 2789 | #ifdef VK_EXT_conditional_rendering |
| 2790 | static void entry_vkCmdBeginConditionalRenderingEXT( |
| 2791 | VkCommandBuffer commandBuffer, |
| 2792 | const VkConditionalRenderingBeginInfoEXT* pConditionalRenderingBegin) |
| 2793 | { |
| 2794 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2795 | vkEnc->vkCmdBeginConditionalRenderingEXT(commandBuffer, pConditionalRenderingBegin); |
| 2796 | } |
| 2797 | static void entry_vkCmdEndConditionalRenderingEXT( |
| 2798 | VkCommandBuffer commandBuffer) |
| 2799 | { |
| 2800 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2801 | vkEnc->vkCmdEndConditionalRenderingEXT(commandBuffer); |
| 2802 | } |
| 2803 | #endif |
| 2804 | #ifdef VK_NVX_device_generated_commands |
| 2805 | static void entry_vkCmdProcessCommandsNVX( |
| 2806 | VkCommandBuffer commandBuffer, |
| 2807 | const VkCmdProcessCommandsInfoNVX* pProcessCommandsInfo) |
| 2808 | { |
| 2809 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2810 | vkEnc->vkCmdProcessCommandsNVX(commandBuffer, pProcessCommandsInfo); |
| 2811 | } |
| 2812 | static void entry_vkCmdReserveSpaceForCommandsNVX( |
| 2813 | VkCommandBuffer commandBuffer, |
| 2814 | const VkCmdReserveSpaceForCommandsInfoNVX* pReserveSpaceInfo) |
| 2815 | { |
| 2816 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2817 | vkEnc->vkCmdReserveSpaceForCommandsNVX(commandBuffer, pReserveSpaceInfo); |
| 2818 | } |
| 2819 | static VkResult entry_vkCreateIndirectCommandsLayoutNVX( |
| 2820 | VkDevice device, |
| 2821 | const VkIndirectCommandsLayoutCreateInfoNVX* pCreateInfo, |
| 2822 | const VkAllocationCallbacks* pAllocator, |
| 2823 | VkIndirectCommandsLayoutNVX* pIndirectCommandsLayout) |
| 2824 | { |
| 2825 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2826 | VkResult vkCreateIndirectCommandsLayoutNVX_VkResult_return = (VkResult)0; |
| 2827 | vkCreateIndirectCommandsLayoutNVX_VkResult_return = vkEnc->vkCreateIndirectCommandsLayoutNVX(device, pCreateInfo, pAllocator, pIndirectCommandsLayout); |
| 2828 | return vkCreateIndirectCommandsLayoutNVX_VkResult_return; |
| 2829 | } |
| 2830 | static void entry_vkDestroyIndirectCommandsLayoutNVX( |
| 2831 | VkDevice device, |
| 2832 | VkIndirectCommandsLayoutNVX indirectCommandsLayout, |
| 2833 | const VkAllocationCallbacks* pAllocator) |
| 2834 | { |
| 2835 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2836 | vkEnc->vkDestroyIndirectCommandsLayoutNVX(device, indirectCommandsLayout, pAllocator); |
| 2837 | } |
| 2838 | static VkResult entry_vkCreateObjectTableNVX( |
| 2839 | VkDevice device, |
| 2840 | const VkObjectTableCreateInfoNVX* pCreateInfo, |
| 2841 | const VkAllocationCallbacks* pAllocator, |
| 2842 | VkObjectTableNVX* pObjectTable) |
| 2843 | { |
| 2844 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2845 | VkResult vkCreateObjectTableNVX_VkResult_return = (VkResult)0; |
| 2846 | vkCreateObjectTableNVX_VkResult_return = vkEnc->vkCreateObjectTableNVX(device, pCreateInfo, pAllocator, pObjectTable); |
| 2847 | return vkCreateObjectTableNVX_VkResult_return; |
| 2848 | } |
| 2849 | static void entry_vkDestroyObjectTableNVX( |
| 2850 | VkDevice device, |
| 2851 | VkObjectTableNVX objectTable, |
| 2852 | const VkAllocationCallbacks* pAllocator) |
| 2853 | { |
| 2854 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2855 | vkEnc->vkDestroyObjectTableNVX(device, objectTable, pAllocator); |
| 2856 | } |
| 2857 | static VkResult entry_vkRegisterObjectsNVX( |
| 2858 | VkDevice device, |
| 2859 | VkObjectTableNVX objectTable, |
| 2860 | uint32_t objectCount, |
| 2861 | const VkObjectTableEntryNVX* const* ppObjectTableEntries, |
| 2862 | const uint32_t* pObjectIndices) |
| 2863 | { |
| 2864 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2865 | VkResult vkRegisterObjectsNVX_VkResult_return = (VkResult)0; |
| 2866 | vkRegisterObjectsNVX_VkResult_return = vkEnc->vkRegisterObjectsNVX(device, objectTable, objectCount, ppObjectTableEntries, pObjectIndices); |
| 2867 | return vkRegisterObjectsNVX_VkResult_return; |
| 2868 | } |
| 2869 | static VkResult entry_vkUnregisterObjectsNVX( |
| 2870 | VkDevice device, |
| 2871 | VkObjectTableNVX objectTable, |
| 2872 | uint32_t objectCount, |
| 2873 | const VkObjectEntryTypeNVX* pObjectEntryTypes, |
| 2874 | const uint32_t* pObjectIndices) |
| 2875 | { |
| 2876 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2877 | VkResult vkUnregisterObjectsNVX_VkResult_return = (VkResult)0; |
| 2878 | vkUnregisterObjectsNVX_VkResult_return = vkEnc->vkUnregisterObjectsNVX(device, objectTable, objectCount, pObjectEntryTypes, pObjectIndices); |
| 2879 | return vkUnregisterObjectsNVX_VkResult_return; |
| 2880 | } |
| 2881 | static void entry_vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX( |
| 2882 | VkPhysicalDevice physicalDevice, |
| 2883 | VkDeviceGeneratedCommandsFeaturesNVX* pFeatures, |
| 2884 | VkDeviceGeneratedCommandsLimitsNVX* pLimits) |
| 2885 | { |
| 2886 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2887 | vkEnc->vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX(physicalDevice, pFeatures, pLimits); |
| 2888 | } |
| 2889 | #endif |
| 2890 | #ifdef VK_NV_clip_space_w_scaling |
| 2891 | static void entry_vkCmdSetViewportWScalingNV( |
| 2892 | VkCommandBuffer commandBuffer, |
| 2893 | uint32_t firstViewport, |
| 2894 | uint32_t viewportCount, |
| 2895 | const VkViewportWScalingNV* pViewportWScalings) |
| 2896 | { |
| 2897 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2898 | vkEnc->vkCmdSetViewportWScalingNV(commandBuffer, firstViewport, viewportCount, pViewportWScalings); |
| 2899 | } |
| 2900 | #endif |
| 2901 | #ifdef VK_EXT_direct_mode_display |
| 2902 | static VkResult entry_vkReleaseDisplayEXT( |
| 2903 | VkPhysicalDevice physicalDevice, |
| 2904 | VkDisplayKHR display) |
| 2905 | { |
| 2906 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2907 | VkResult vkReleaseDisplayEXT_VkResult_return = (VkResult)0; |
| 2908 | vkReleaseDisplayEXT_VkResult_return = vkEnc->vkReleaseDisplayEXT(physicalDevice, display); |
| 2909 | return vkReleaseDisplayEXT_VkResult_return; |
| 2910 | } |
| 2911 | #endif |
| 2912 | #ifdef VK_EXT_acquire_xlib_display |
| 2913 | static VkResult entry_vkAcquireXlibDisplayEXT( |
| 2914 | VkPhysicalDevice physicalDevice, |
| 2915 | Display* dpy, |
| 2916 | VkDisplayKHR display) |
| 2917 | { |
| 2918 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2919 | VkResult vkAcquireXlibDisplayEXT_VkResult_return = (VkResult)0; |
| 2920 | vkAcquireXlibDisplayEXT_VkResult_return = vkEnc->vkAcquireXlibDisplayEXT(physicalDevice, dpy, display); |
| 2921 | return vkAcquireXlibDisplayEXT_VkResult_return; |
| 2922 | } |
| 2923 | static VkResult entry_vkGetRandROutputDisplayEXT( |
| 2924 | VkPhysicalDevice physicalDevice, |
| 2925 | Display* dpy, |
| 2926 | RROutput rrOutput, |
| 2927 | VkDisplayKHR* pDisplay) |
| 2928 | { |
| 2929 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2930 | VkResult vkGetRandROutputDisplayEXT_VkResult_return = (VkResult)0; |
| 2931 | vkGetRandROutputDisplayEXT_VkResult_return = vkEnc->vkGetRandROutputDisplayEXT(physicalDevice, dpy, rrOutput, pDisplay); |
| 2932 | return vkGetRandROutputDisplayEXT_VkResult_return; |
| 2933 | } |
| 2934 | #endif |
| 2935 | #ifdef VK_EXT_display_surface_counter |
| 2936 | static VkResult entry_vkGetPhysicalDeviceSurfaceCapabilities2EXT( |
| 2937 | VkPhysicalDevice physicalDevice, |
| 2938 | VkSurfaceKHR surface, |
| 2939 | VkSurfaceCapabilities2EXT* pSurfaceCapabilities) |
| 2940 | { |
| 2941 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2942 | VkResult vkGetPhysicalDeviceSurfaceCapabilities2EXT_VkResult_return = (VkResult)0; |
| 2943 | vkGetPhysicalDeviceSurfaceCapabilities2EXT_VkResult_return = vkEnc->vkGetPhysicalDeviceSurfaceCapabilities2EXT(physicalDevice, surface, pSurfaceCapabilities); |
| 2944 | return vkGetPhysicalDeviceSurfaceCapabilities2EXT_VkResult_return; |
| 2945 | } |
| 2946 | #endif |
| 2947 | #ifdef VK_EXT_display_control |
| 2948 | static VkResult entry_vkDisplayPowerControlEXT( |
| 2949 | VkDevice device, |
| 2950 | VkDisplayKHR display, |
| 2951 | const VkDisplayPowerInfoEXT* pDisplayPowerInfo) |
| 2952 | { |
| 2953 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2954 | VkResult vkDisplayPowerControlEXT_VkResult_return = (VkResult)0; |
| 2955 | vkDisplayPowerControlEXT_VkResult_return = vkEnc->vkDisplayPowerControlEXT(device, display, pDisplayPowerInfo); |
| 2956 | return vkDisplayPowerControlEXT_VkResult_return; |
| 2957 | } |
| 2958 | static VkResult entry_vkRegisterDeviceEventEXT( |
| 2959 | VkDevice device, |
| 2960 | const VkDeviceEventInfoEXT* pDeviceEventInfo, |
| 2961 | const VkAllocationCallbacks* pAllocator, |
| 2962 | VkFence* pFence) |
| 2963 | { |
| 2964 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2965 | VkResult vkRegisterDeviceEventEXT_VkResult_return = (VkResult)0; |
| 2966 | vkRegisterDeviceEventEXT_VkResult_return = vkEnc->vkRegisterDeviceEventEXT(device, pDeviceEventInfo, pAllocator, pFence); |
| 2967 | return vkRegisterDeviceEventEXT_VkResult_return; |
| 2968 | } |
| 2969 | static VkResult entry_vkRegisterDisplayEventEXT( |
| 2970 | VkDevice device, |
| 2971 | VkDisplayKHR display, |
| 2972 | const VkDisplayEventInfoEXT* pDisplayEventInfo, |
| 2973 | const VkAllocationCallbacks* pAllocator, |
| 2974 | VkFence* pFence) |
| 2975 | { |
| 2976 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2977 | VkResult vkRegisterDisplayEventEXT_VkResult_return = (VkResult)0; |
| 2978 | vkRegisterDisplayEventEXT_VkResult_return = vkEnc->vkRegisterDisplayEventEXT(device, display, pDisplayEventInfo, pAllocator, pFence); |
| 2979 | return vkRegisterDisplayEventEXT_VkResult_return; |
| 2980 | } |
| 2981 | static VkResult entry_vkGetSwapchainCounterEXT( |
| 2982 | VkDevice device, |
| 2983 | VkSwapchainKHR swapchain, |
| 2984 | VkSurfaceCounterFlagBitsEXT counter, |
| 2985 | uint64_t* pCounterValue) |
| 2986 | { |
| 2987 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 2988 | VkResult vkGetSwapchainCounterEXT_VkResult_return = (VkResult)0; |
| 2989 | vkGetSwapchainCounterEXT_VkResult_return = vkEnc->vkGetSwapchainCounterEXT(device, swapchain, counter, pCounterValue); |
| 2990 | return vkGetSwapchainCounterEXT_VkResult_return; |
| 2991 | } |
| 2992 | #endif |
| 2993 | #ifdef VK_GOOGLE_display_timing |
| 2994 | static VkResult entry_vkGetRefreshCycleDurationGOOGLE( |
| 2995 | VkDevice device, |
| 2996 | VkSwapchainKHR swapchain, |
| 2997 | VkRefreshCycleDurationGOOGLE* pDisplayTimingProperties) |
| 2998 | { |
| 2999 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3000 | VkResult vkGetRefreshCycleDurationGOOGLE_VkResult_return = (VkResult)0; |
| 3001 | vkGetRefreshCycleDurationGOOGLE_VkResult_return = vkEnc->vkGetRefreshCycleDurationGOOGLE(device, swapchain, pDisplayTimingProperties); |
| 3002 | return vkGetRefreshCycleDurationGOOGLE_VkResult_return; |
| 3003 | } |
| 3004 | static VkResult entry_vkGetPastPresentationTimingGOOGLE( |
| 3005 | VkDevice device, |
| 3006 | VkSwapchainKHR swapchain, |
| 3007 | uint32_t* pPresentationTimingCount, |
| 3008 | VkPastPresentationTimingGOOGLE* pPresentationTimings) |
| 3009 | { |
| 3010 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3011 | VkResult vkGetPastPresentationTimingGOOGLE_VkResult_return = (VkResult)0; |
| 3012 | vkGetPastPresentationTimingGOOGLE_VkResult_return = vkEnc->vkGetPastPresentationTimingGOOGLE(device, swapchain, pPresentationTimingCount, pPresentationTimings); |
| 3013 | return vkGetPastPresentationTimingGOOGLE_VkResult_return; |
| 3014 | } |
| 3015 | #endif |
| 3016 | #ifdef VK_NV_sample_mask_override_coverage |
| 3017 | #endif |
| 3018 | #ifdef VK_NV_geometry_shader_passthrough |
| 3019 | #endif |
| 3020 | #ifdef VK_NV_viewport_array2 |
| 3021 | #endif |
| 3022 | #ifdef VK_NVX_multiview_per_view_attributes |
| 3023 | #endif |
| 3024 | #ifdef VK_NV_viewport_swizzle |
| 3025 | #endif |
| 3026 | #ifdef VK_EXT_discard_rectangles |
| 3027 | static void entry_vkCmdSetDiscardRectangleEXT( |
| 3028 | VkCommandBuffer commandBuffer, |
| 3029 | uint32_t firstDiscardRectangle, |
| 3030 | uint32_t discardRectangleCount, |
| 3031 | const VkRect2D* pDiscardRectangles) |
| 3032 | { |
| 3033 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3034 | vkEnc->vkCmdSetDiscardRectangleEXT(commandBuffer, firstDiscardRectangle, discardRectangleCount, pDiscardRectangles); |
| 3035 | } |
| 3036 | #endif |
| 3037 | #ifdef VK_EXT_conservative_rasterization |
| 3038 | #endif |
| 3039 | #ifdef VK_EXT_swapchain_colorspace |
| 3040 | #endif |
| 3041 | #ifdef VK_EXT_hdr_metadata |
| 3042 | static void entry_vkSetHdrMetadataEXT( |
| 3043 | VkDevice device, |
| 3044 | uint32_t swapchainCount, |
| 3045 | const VkSwapchainKHR* pSwapchains, |
| 3046 | const VkHdrMetadataEXT* pMetadata) |
| 3047 | { |
| 3048 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3049 | vkEnc->vkSetHdrMetadataEXT(device, swapchainCount, pSwapchains, pMetadata); |
| 3050 | } |
| 3051 | #endif |
| 3052 | #ifdef VK_MVK_ios_surface |
| 3053 | static VkResult entry_vkCreateIOSSurfaceMVK( |
| 3054 | VkInstance instance, |
| 3055 | const VkIOSSurfaceCreateInfoMVK* pCreateInfo, |
| 3056 | const VkAllocationCallbacks* pAllocator, |
| 3057 | VkSurfaceKHR* pSurface) |
| 3058 | { |
| 3059 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3060 | VkResult vkCreateIOSSurfaceMVK_VkResult_return = (VkResult)0; |
| 3061 | vkCreateIOSSurfaceMVK_VkResult_return = vkEnc->vkCreateIOSSurfaceMVK(instance, pCreateInfo, pAllocator, pSurface); |
| 3062 | return vkCreateIOSSurfaceMVK_VkResult_return; |
| 3063 | } |
| 3064 | #endif |
| 3065 | #ifdef VK_MVK_macos_surface |
| 3066 | static VkResult entry_vkCreateMacOSSurfaceMVK( |
| 3067 | VkInstance instance, |
| 3068 | const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, |
| 3069 | const VkAllocationCallbacks* pAllocator, |
| 3070 | VkSurfaceKHR* pSurface) |
| 3071 | { |
| 3072 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3073 | VkResult vkCreateMacOSSurfaceMVK_VkResult_return = (VkResult)0; |
| 3074 | vkCreateMacOSSurfaceMVK_VkResult_return = vkEnc->vkCreateMacOSSurfaceMVK(instance, pCreateInfo, pAllocator, pSurface); |
| 3075 | return vkCreateMacOSSurfaceMVK_VkResult_return; |
| 3076 | } |
| 3077 | #endif |
| 3078 | #ifdef VK_EXT_external_memory_dma_buf |
| 3079 | #endif |
| 3080 | #ifdef VK_EXT_queue_family_foreign |
| 3081 | #endif |
| 3082 | #ifdef VK_EXT_debug_utils |
| 3083 | static VkResult entry_vkSetDebugUtilsObjectNameEXT( |
| 3084 | VkDevice device, |
| 3085 | const VkDebugUtilsObjectNameInfoEXT* pNameInfo) |
| 3086 | { |
| 3087 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3088 | VkResult vkSetDebugUtilsObjectNameEXT_VkResult_return = (VkResult)0; |
| 3089 | vkSetDebugUtilsObjectNameEXT_VkResult_return = vkEnc->vkSetDebugUtilsObjectNameEXT(device, pNameInfo); |
| 3090 | return vkSetDebugUtilsObjectNameEXT_VkResult_return; |
| 3091 | } |
| 3092 | static VkResult entry_vkSetDebugUtilsObjectTagEXT( |
| 3093 | VkDevice device, |
| 3094 | const VkDebugUtilsObjectTagInfoEXT* pTagInfo) |
| 3095 | { |
| 3096 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3097 | VkResult vkSetDebugUtilsObjectTagEXT_VkResult_return = (VkResult)0; |
| 3098 | vkSetDebugUtilsObjectTagEXT_VkResult_return = vkEnc->vkSetDebugUtilsObjectTagEXT(device, pTagInfo); |
| 3099 | return vkSetDebugUtilsObjectTagEXT_VkResult_return; |
| 3100 | } |
| 3101 | static void entry_vkQueueBeginDebugUtilsLabelEXT( |
| 3102 | VkQueue queue, |
| 3103 | const VkDebugUtilsLabelEXT* pLabelInfo) |
| 3104 | { |
| 3105 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3106 | vkEnc->vkQueueBeginDebugUtilsLabelEXT(queue, pLabelInfo); |
| 3107 | } |
| 3108 | static void entry_vkQueueEndDebugUtilsLabelEXT( |
| 3109 | VkQueue queue) |
| 3110 | { |
| 3111 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3112 | vkEnc->vkQueueEndDebugUtilsLabelEXT(queue); |
| 3113 | } |
| 3114 | static void entry_vkQueueInsertDebugUtilsLabelEXT( |
| 3115 | VkQueue queue, |
| 3116 | const VkDebugUtilsLabelEXT* pLabelInfo) |
| 3117 | { |
| 3118 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3119 | vkEnc->vkQueueInsertDebugUtilsLabelEXT(queue, pLabelInfo); |
| 3120 | } |
| 3121 | static void entry_vkCmdBeginDebugUtilsLabelEXT( |
| 3122 | VkCommandBuffer commandBuffer, |
| 3123 | const VkDebugUtilsLabelEXT* pLabelInfo) |
| 3124 | { |
| 3125 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3126 | vkEnc->vkCmdBeginDebugUtilsLabelEXT(commandBuffer, pLabelInfo); |
| 3127 | } |
| 3128 | static void entry_vkCmdEndDebugUtilsLabelEXT( |
| 3129 | VkCommandBuffer commandBuffer) |
| 3130 | { |
| 3131 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3132 | vkEnc->vkCmdEndDebugUtilsLabelEXT(commandBuffer); |
| 3133 | } |
| 3134 | static void entry_vkCmdInsertDebugUtilsLabelEXT( |
| 3135 | VkCommandBuffer commandBuffer, |
| 3136 | const VkDebugUtilsLabelEXT* pLabelInfo) |
| 3137 | { |
| 3138 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3139 | vkEnc->vkCmdInsertDebugUtilsLabelEXT(commandBuffer, pLabelInfo); |
| 3140 | } |
| 3141 | static VkResult entry_vkCreateDebugUtilsMessengerEXT( |
| 3142 | VkInstance instance, |
| 3143 | const VkDebugUtilsMessengerCreateInfoEXT* pCreateInfo, |
| 3144 | const VkAllocationCallbacks* pAllocator, |
| 3145 | VkDebugUtilsMessengerEXT* pMessenger) |
| 3146 | { |
| 3147 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3148 | VkResult vkCreateDebugUtilsMessengerEXT_VkResult_return = (VkResult)0; |
| 3149 | vkCreateDebugUtilsMessengerEXT_VkResult_return = vkEnc->vkCreateDebugUtilsMessengerEXT(instance, pCreateInfo, pAllocator, pMessenger); |
| 3150 | return vkCreateDebugUtilsMessengerEXT_VkResult_return; |
| 3151 | } |
| 3152 | static void entry_vkDestroyDebugUtilsMessengerEXT( |
| 3153 | VkInstance instance, |
| 3154 | VkDebugUtilsMessengerEXT messenger, |
| 3155 | const VkAllocationCallbacks* pAllocator) |
| 3156 | { |
| 3157 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3158 | vkEnc->vkDestroyDebugUtilsMessengerEXT(instance, messenger, pAllocator); |
| 3159 | } |
| 3160 | static void entry_vkSubmitDebugUtilsMessageEXT( |
| 3161 | VkInstance instance, |
| 3162 | VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, |
| 3163 | VkDebugUtilsMessageTypeFlagsEXT messageTypes, |
| 3164 | const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData) |
| 3165 | { |
| 3166 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3167 | vkEnc->vkSubmitDebugUtilsMessageEXT(instance, messageSeverity, messageTypes, pCallbackData); |
| 3168 | } |
| 3169 | #endif |
| 3170 | #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| 3171 | static VkResult entry_vkGetAndroidHardwareBufferPropertiesANDROID( |
| 3172 | VkDevice device, |
| 3173 | const AHardwareBuffer* buffer, |
| 3174 | VkAndroidHardwareBufferPropertiesANDROID* pProperties) |
| 3175 | { |
| 3176 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3177 | VkResult vkGetAndroidHardwareBufferPropertiesANDROID_VkResult_return = (VkResult)0; |
| 3178 | vkGetAndroidHardwareBufferPropertiesANDROID_VkResult_return = vkEnc->vkGetAndroidHardwareBufferPropertiesANDROID(device, buffer, pProperties); |
| 3179 | return vkGetAndroidHardwareBufferPropertiesANDROID_VkResult_return; |
| 3180 | } |
| 3181 | static VkResult entry_vkGetMemoryAndroidHardwareBufferANDROID( |
| 3182 | VkDevice device, |
| 3183 | const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, |
| 3184 | AHardwareBuffer** pBuffer) |
| 3185 | { |
| 3186 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3187 | VkResult vkGetMemoryAndroidHardwareBufferANDROID_VkResult_return = (VkResult)0; |
| 3188 | vkGetMemoryAndroidHardwareBufferANDROID_VkResult_return = vkEnc->vkGetMemoryAndroidHardwareBufferANDROID(device, pInfo, pBuffer); |
| 3189 | return vkGetMemoryAndroidHardwareBufferANDROID_VkResult_return; |
| 3190 | } |
| 3191 | #endif |
| 3192 | #ifdef VK_EXT_sampler_filter_minmax |
| 3193 | #endif |
| 3194 | #ifdef VK_AMD_gpu_shader_int16 |
| 3195 | #endif |
| 3196 | #ifdef VK_AMD_mixed_attachment_samples |
| 3197 | #endif |
| 3198 | #ifdef VK_AMD_shader_fragment_mask |
| 3199 | #endif |
| 3200 | #ifdef VK_EXT_shader_stencil_export |
| 3201 | #endif |
| 3202 | #ifdef VK_EXT_sample_locations |
| 3203 | static void entry_vkCmdSetSampleLocationsEXT( |
| 3204 | VkCommandBuffer commandBuffer, |
| 3205 | const VkSampleLocationsInfoEXT* pSampleLocationsInfo) |
| 3206 | { |
| 3207 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3208 | vkEnc->vkCmdSetSampleLocationsEXT(commandBuffer, pSampleLocationsInfo); |
| 3209 | } |
| 3210 | static void entry_vkGetPhysicalDeviceMultisamplePropertiesEXT( |
| 3211 | VkPhysicalDevice physicalDevice, |
| 3212 | VkSampleCountFlagBits samples, |
| 3213 | VkMultisamplePropertiesEXT* pMultisampleProperties) |
| 3214 | { |
| 3215 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3216 | vkEnc->vkGetPhysicalDeviceMultisamplePropertiesEXT(physicalDevice, samples, pMultisampleProperties); |
| 3217 | } |
| 3218 | #endif |
| 3219 | #ifdef VK_EXT_blend_operation_advanced |
| 3220 | #endif |
| 3221 | #ifdef VK_NV_fragment_coverage_to_color |
| 3222 | #endif |
| 3223 | #ifdef VK_NV_framebuffer_mixed_samples |
| 3224 | #endif |
| 3225 | #ifdef VK_NV_fill_rectangle |
| 3226 | #endif |
| 3227 | #ifdef VK_EXT_post_depth_coverage |
| 3228 | #endif |
| 3229 | #ifdef VK_EXT_validation_cache |
| 3230 | static VkResult entry_vkCreateValidationCacheEXT( |
| 3231 | VkDevice device, |
| 3232 | const VkValidationCacheCreateInfoEXT* pCreateInfo, |
| 3233 | const VkAllocationCallbacks* pAllocator, |
| 3234 | VkValidationCacheEXT* pValidationCache) |
| 3235 | { |
| 3236 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3237 | VkResult vkCreateValidationCacheEXT_VkResult_return = (VkResult)0; |
| 3238 | vkCreateValidationCacheEXT_VkResult_return = vkEnc->vkCreateValidationCacheEXT(device, pCreateInfo, pAllocator, pValidationCache); |
| 3239 | return vkCreateValidationCacheEXT_VkResult_return; |
| 3240 | } |
| 3241 | static void entry_vkDestroyValidationCacheEXT( |
| 3242 | VkDevice device, |
| 3243 | VkValidationCacheEXT validationCache, |
| 3244 | const VkAllocationCallbacks* pAllocator) |
| 3245 | { |
| 3246 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3247 | vkEnc->vkDestroyValidationCacheEXT(device, validationCache, pAllocator); |
| 3248 | } |
| 3249 | static VkResult entry_vkMergeValidationCachesEXT( |
| 3250 | VkDevice device, |
| 3251 | VkValidationCacheEXT dstCache, |
| 3252 | uint32_t srcCacheCount, |
| 3253 | const VkValidationCacheEXT* pSrcCaches) |
| 3254 | { |
| 3255 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3256 | VkResult vkMergeValidationCachesEXT_VkResult_return = (VkResult)0; |
| 3257 | vkMergeValidationCachesEXT_VkResult_return = vkEnc->vkMergeValidationCachesEXT(device, dstCache, srcCacheCount, pSrcCaches); |
| 3258 | return vkMergeValidationCachesEXT_VkResult_return; |
| 3259 | } |
| 3260 | static VkResult entry_vkGetValidationCacheDataEXT( |
| 3261 | VkDevice device, |
| 3262 | VkValidationCacheEXT validationCache, |
| 3263 | size_t* pDataSize, |
| 3264 | void* pData) |
| 3265 | { |
| 3266 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3267 | VkResult vkGetValidationCacheDataEXT_VkResult_return = (VkResult)0; |
| 3268 | vkGetValidationCacheDataEXT_VkResult_return = vkEnc->vkGetValidationCacheDataEXT(device, validationCache, pDataSize, pData); |
| 3269 | return vkGetValidationCacheDataEXT_VkResult_return; |
| 3270 | } |
| 3271 | #endif |
| 3272 | #ifdef VK_EXT_descriptor_indexing |
| 3273 | #endif |
| 3274 | #ifdef VK_EXT_shader_viewport_index_layer |
| 3275 | #endif |
| 3276 | #ifdef VK_EXT_global_priority |
| 3277 | #endif |
| 3278 | #ifdef VK_EXT_external_memory_host |
| 3279 | static VkResult entry_vkGetMemoryHostPointerPropertiesEXT( |
| 3280 | VkDevice device, |
| 3281 | VkExternalMemoryHandleTypeFlagBits handleType, |
| 3282 | const void* pHostPointer, |
| 3283 | VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties) |
| 3284 | { |
| 3285 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3286 | VkResult vkGetMemoryHostPointerPropertiesEXT_VkResult_return = (VkResult)0; |
| 3287 | vkGetMemoryHostPointerPropertiesEXT_VkResult_return = vkEnc->vkGetMemoryHostPointerPropertiesEXT(device, handleType, pHostPointer, pMemoryHostPointerProperties); |
| 3288 | return vkGetMemoryHostPointerPropertiesEXT_VkResult_return; |
| 3289 | } |
| 3290 | #endif |
| 3291 | #ifdef VK_AMD_buffer_marker |
| 3292 | static void entry_vkCmdWriteBufferMarkerAMD( |
| 3293 | VkCommandBuffer commandBuffer, |
| 3294 | VkPipelineStageFlagBits pipelineStage, |
| 3295 | VkBuffer dstBuffer, |
| 3296 | VkDeviceSize dstOffset, |
| 3297 | uint32_t marker) |
| 3298 | { |
| 3299 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3300 | vkEnc->vkCmdWriteBufferMarkerAMD(commandBuffer, pipelineStage, dstBuffer, dstOffset, marker); |
| 3301 | } |
| 3302 | #endif |
| 3303 | #ifdef VK_AMD_shader_core_properties |
| 3304 | #endif |
| 3305 | #ifdef VK_EXT_vertex_attribute_divisor |
| 3306 | #endif |
| 3307 | #ifdef VK_NV_shader_subgroup_partitioned |
| 3308 | #endif |
| 3309 | #ifdef VK_NV_device_diagnostic_checkpoints |
| 3310 | static void entry_vkCmdSetCheckpointNV( |
| 3311 | VkCommandBuffer commandBuffer, |
| 3312 | const void* pCheckpointMarker) |
| 3313 | { |
| 3314 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3315 | vkEnc->vkCmdSetCheckpointNV(commandBuffer, pCheckpointMarker); |
| 3316 | } |
| 3317 | static void entry_vkGetQueueCheckpointDataNV( |
| 3318 | VkQueue queue, |
| 3319 | uint32_t* pCheckpointDataCount, |
| 3320 | VkCheckpointDataNV* pCheckpointData) |
| 3321 | { |
| 3322 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3323 | vkEnc->vkGetQueueCheckpointDataNV(queue, pCheckpointDataCount, pCheckpointData); |
| 3324 | } |
| 3325 | #endif |
Lingfeng Yang | 5c63afd | 2018-12-22 01:21:14 -0800 | [diff] [blame] | 3326 | #ifdef VK_GOOGLE_address_space |
| 3327 | static VkResult entry_vkMapMemoryIntoAddressSpaceGOOGLE( |
| 3328 | VkDevice device, |
| 3329 | VkDeviceMemory memory, |
| 3330 | uint64_t* pAddress) |
| 3331 | { |
| 3332 | auto vkEnc = HostConnection::get()->vkEncoder(); |
| 3333 | VkResult vkMapMemoryIntoAddressSpaceGOOGLE_VkResult_return = (VkResult)0; |
| 3334 | vkMapMemoryIntoAddressSpaceGOOGLE_VkResult_return = vkEnc->vkMapMemoryIntoAddressSpaceGOOGLE(device, memory, pAddress); |
| 3335 | return vkMapMemoryIntoAddressSpaceGOOGLE_VkResult_return; |
| 3336 | } |
| 3337 | #endif |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 3338 | void* goldfish_vulkan_get_proc_address(const char* name){ |
| 3339 | #ifdef VK_VERSION_1_0 |
| 3340 | if (!strcmp(name, "vkCreateInstance")) |
| 3341 | { |
| 3342 | return (void*)entry_vkCreateInstance; |
| 3343 | } |
| 3344 | if (!strcmp(name, "vkDestroyInstance")) |
| 3345 | { |
| 3346 | return (void*)entry_vkDestroyInstance; |
| 3347 | } |
| 3348 | if (!strcmp(name, "vkEnumeratePhysicalDevices")) |
| 3349 | { |
| 3350 | return (void*)entry_vkEnumeratePhysicalDevices; |
| 3351 | } |
| 3352 | if (!strcmp(name, "vkGetPhysicalDeviceFeatures")) |
| 3353 | { |
| 3354 | return (void*)entry_vkGetPhysicalDeviceFeatures; |
| 3355 | } |
| 3356 | if (!strcmp(name, "vkGetPhysicalDeviceFormatProperties")) |
| 3357 | { |
| 3358 | return (void*)entry_vkGetPhysicalDeviceFormatProperties; |
| 3359 | } |
| 3360 | if (!strcmp(name, "vkGetPhysicalDeviceImageFormatProperties")) |
| 3361 | { |
| 3362 | return (void*)entry_vkGetPhysicalDeviceImageFormatProperties; |
| 3363 | } |
| 3364 | if (!strcmp(name, "vkGetPhysicalDeviceProperties")) |
| 3365 | { |
| 3366 | return (void*)entry_vkGetPhysicalDeviceProperties; |
| 3367 | } |
| 3368 | if (!strcmp(name, "vkGetPhysicalDeviceQueueFamilyProperties")) |
| 3369 | { |
| 3370 | return (void*)entry_vkGetPhysicalDeviceQueueFamilyProperties; |
| 3371 | } |
| 3372 | if (!strcmp(name, "vkGetPhysicalDeviceMemoryProperties")) |
| 3373 | { |
| 3374 | return (void*)entry_vkGetPhysicalDeviceMemoryProperties; |
| 3375 | } |
| 3376 | if (!strcmp(name, "vkGetInstanceProcAddr")) |
| 3377 | { |
| 3378 | return (void*)entry_vkGetInstanceProcAddr; |
| 3379 | } |
| 3380 | if (!strcmp(name, "vkGetDeviceProcAddr")) |
| 3381 | { |
| 3382 | return (void*)entry_vkGetDeviceProcAddr; |
| 3383 | } |
| 3384 | if (!strcmp(name, "vkCreateDevice")) |
| 3385 | { |
| 3386 | return (void*)entry_vkCreateDevice; |
| 3387 | } |
| 3388 | if (!strcmp(name, "vkDestroyDevice")) |
| 3389 | { |
| 3390 | return (void*)entry_vkDestroyDevice; |
| 3391 | } |
| 3392 | if (!strcmp(name, "vkEnumerateInstanceExtensionProperties")) |
| 3393 | { |
| 3394 | return (void*)entry_vkEnumerateInstanceExtensionProperties; |
| 3395 | } |
| 3396 | if (!strcmp(name, "vkEnumerateDeviceExtensionProperties")) |
| 3397 | { |
| 3398 | return (void*)entry_vkEnumerateDeviceExtensionProperties; |
| 3399 | } |
| 3400 | if (!strcmp(name, "vkEnumerateInstanceLayerProperties")) |
| 3401 | { |
| 3402 | return (void*)entry_vkEnumerateInstanceLayerProperties; |
| 3403 | } |
| 3404 | if (!strcmp(name, "vkEnumerateDeviceLayerProperties")) |
| 3405 | { |
| 3406 | return (void*)entry_vkEnumerateDeviceLayerProperties; |
| 3407 | } |
| 3408 | if (!strcmp(name, "vkGetDeviceQueue")) |
| 3409 | { |
| 3410 | return (void*)entry_vkGetDeviceQueue; |
| 3411 | } |
| 3412 | if (!strcmp(name, "vkQueueSubmit")) |
| 3413 | { |
| 3414 | return (void*)entry_vkQueueSubmit; |
| 3415 | } |
| 3416 | if (!strcmp(name, "vkQueueWaitIdle")) |
| 3417 | { |
| 3418 | return (void*)entry_vkQueueWaitIdle; |
| 3419 | } |
| 3420 | if (!strcmp(name, "vkDeviceWaitIdle")) |
| 3421 | { |
| 3422 | return (void*)entry_vkDeviceWaitIdle; |
| 3423 | } |
| 3424 | if (!strcmp(name, "vkAllocateMemory")) |
| 3425 | { |
| 3426 | return (void*)entry_vkAllocateMemory; |
| 3427 | } |
| 3428 | if (!strcmp(name, "vkFreeMemory")) |
| 3429 | { |
| 3430 | return (void*)entry_vkFreeMemory; |
| 3431 | } |
| 3432 | if (!strcmp(name, "vkMapMemory")) |
| 3433 | { |
| 3434 | return (void*)entry_vkMapMemory; |
| 3435 | } |
| 3436 | if (!strcmp(name, "vkUnmapMemory")) |
| 3437 | { |
| 3438 | return (void*)entry_vkUnmapMemory; |
| 3439 | } |
| 3440 | if (!strcmp(name, "vkFlushMappedMemoryRanges")) |
| 3441 | { |
| 3442 | return (void*)entry_vkFlushMappedMemoryRanges; |
| 3443 | } |
| 3444 | if (!strcmp(name, "vkInvalidateMappedMemoryRanges")) |
| 3445 | { |
| 3446 | return (void*)entry_vkInvalidateMappedMemoryRanges; |
| 3447 | } |
| 3448 | if (!strcmp(name, "vkGetDeviceMemoryCommitment")) |
| 3449 | { |
| 3450 | return (void*)entry_vkGetDeviceMemoryCommitment; |
| 3451 | } |
| 3452 | if (!strcmp(name, "vkBindBufferMemory")) |
| 3453 | { |
| 3454 | return (void*)entry_vkBindBufferMemory; |
| 3455 | } |
| 3456 | if (!strcmp(name, "vkBindImageMemory")) |
| 3457 | { |
| 3458 | return (void*)entry_vkBindImageMemory; |
| 3459 | } |
| 3460 | if (!strcmp(name, "vkGetBufferMemoryRequirements")) |
| 3461 | { |
| 3462 | return (void*)entry_vkGetBufferMemoryRequirements; |
| 3463 | } |
| 3464 | if (!strcmp(name, "vkGetImageMemoryRequirements")) |
| 3465 | { |
| 3466 | return (void*)entry_vkGetImageMemoryRequirements; |
| 3467 | } |
| 3468 | if (!strcmp(name, "vkGetImageSparseMemoryRequirements")) |
| 3469 | { |
| 3470 | return (void*)entry_vkGetImageSparseMemoryRequirements; |
| 3471 | } |
| 3472 | if (!strcmp(name, "vkGetPhysicalDeviceSparseImageFormatProperties")) |
| 3473 | { |
| 3474 | return (void*)entry_vkGetPhysicalDeviceSparseImageFormatProperties; |
| 3475 | } |
| 3476 | if (!strcmp(name, "vkQueueBindSparse")) |
| 3477 | { |
| 3478 | return (void*)entry_vkQueueBindSparse; |
| 3479 | } |
| 3480 | if (!strcmp(name, "vkCreateFence")) |
| 3481 | { |
| 3482 | return (void*)entry_vkCreateFence; |
| 3483 | } |
| 3484 | if (!strcmp(name, "vkDestroyFence")) |
| 3485 | { |
| 3486 | return (void*)entry_vkDestroyFence; |
| 3487 | } |
| 3488 | if (!strcmp(name, "vkResetFences")) |
| 3489 | { |
| 3490 | return (void*)entry_vkResetFences; |
| 3491 | } |
| 3492 | if (!strcmp(name, "vkGetFenceStatus")) |
| 3493 | { |
| 3494 | return (void*)entry_vkGetFenceStatus; |
| 3495 | } |
| 3496 | if (!strcmp(name, "vkWaitForFences")) |
| 3497 | { |
| 3498 | return (void*)entry_vkWaitForFences; |
| 3499 | } |
| 3500 | if (!strcmp(name, "vkCreateSemaphore")) |
| 3501 | { |
| 3502 | return (void*)entry_vkCreateSemaphore; |
| 3503 | } |
| 3504 | if (!strcmp(name, "vkDestroySemaphore")) |
| 3505 | { |
| 3506 | return (void*)entry_vkDestroySemaphore; |
| 3507 | } |
| 3508 | if (!strcmp(name, "vkCreateEvent")) |
| 3509 | { |
| 3510 | return (void*)entry_vkCreateEvent; |
| 3511 | } |
| 3512 | if (!strcmp(name, "vkDestroyEvent")) |
| 3513 | { |
| 3514 | return (void*)entry_vkDestroyEvent; |
| 3515 | } |
| 3516 | if (!strcmp(name, "vkGetEventStatus")) |
| 3517 | { |
| 3518 | return (void*)entry_vkGetEventStatus; |
| 3519 | } |
| 3520 | if (!strcmp(name, "vkSetEvent")) |
| 3521 | { |
| 3522 | return (void*)entry_vkSetEvent; |
| 3523 | } |
| 3524 | if (!strcmp(name, "vkResetEvent")) |
| 3525 | { |
| 3526 | return (void*)entry_vkResetEvent; |
| 3527 | } |
| 3528 | if (!strcmp(name, "vkCreateQueryPool")) |
| 3529 | { |
| 3530 | return (void*)entry_vkCreateQueryPool; |
| 3531 | } |
| 3532 | if (!strcmp(name, "vkDestroyQueryPool")) |
| 3533 | { |
| 3534 | return (void*)entry_vkDestroyQueryPool; |
| 3535 | } |
| 3536 | if (!strcmp(name, "vkGetQueryPoolResults")) |
| 3537 | { |
| 3538 | return (void*)entry_vkGetQueryPoolResults; |
| 3539 | } |
| 3540 | if (!strcmp(name, "vkCreateBuffer")) |
| 3541 | { |
| 3542 | return (void*)entry_vkCreateBuffer; |
| 3543 | } |
| 3544 | if (!strcmp(name, "vkDestroyBuffer")) |
| 3545 | { |
| 3546 | return (void*)entry_vkDestroyBuffer; |
| 3547 | } |
| 3548 | if (!strcmp(name, "vkCreateBufferView")) |
| 3549 | { |
| 3550 | return (void*)entry_vkCreateBufferView; |
| 3551 | } |
| 3552 | if (!strcmp(name, "vkDestroyBufferView")) |
| 3553 | { |
| 3554 | return (void*)entry_vkDestroyBufferView; |
| 3555 | } |
| 3556 | if (!strcmp(name, "vkCreateImage")) |
| 3557 | { |
| 3558 | return (void*)entry_vkCreateImage; |
| 3559 | } |
| 3560 | if (!strcmp(name, "vkDestroyImage")) |
| 3561 | { |
| 3562 | return (void*)entry_vkDestroyImage; |
| 3563 | } |
| 3564 | if (!strcmp(name, "vkGetImageSubresourceLayout")) |
| 3565 | { |
| 3566 | return (void*)entry_vkGetImageSubresourceLayout; |
| 3567 | } |
| 3568 | if (!strcmp(name, "vkCreateImageView")) |
| 3569 | { |
| 3570 | return (void*)entry_vkCreateImageView; |
| 3571 | } |
| 3572 | if (!strcmp(name, "vkDestroyImageView")) |
| 3573 | { |
| 3574 | return (void*)entry_vkDestroyImageView; |
| 3575 | } |
| 3576 | if (!strcmp(name, "vkCreateShaderModule")) |
| 3577 | { |
| 3578 | return (void*)entry_vkCreateShaderModule; |
| 3579 | } |
| 3580 | if (!strcmp(name, "vkDestroyShaderModule")) |
| 3581 | { |
| 3582 | return (void*)entry_vkDestroyShaderModule; |
| 3583 | } |
| 3584 | if (!strcmp(name, "vkCreatePipelineCache")) |
| 3585 | { |
| 3586 | return (void*)entry_vkCreatePipelineCache; |
| 3587 | } |
| 3588 | if (!strcmp(name, "vkDestroyPipelineCache")) |
| 3589 | { |
| 3590 | return (void*)entry_vkDestroyPipelineCache; |
| 3591 | } |
| 3592 | if (!strcmp(name, "vkGetPipelineCacheData")) |
| 3593 | { |
| 3594 | return (void*)entry_vkGetPipelineCacheData; |
| 3595 | } |
| 3596 | if (!strcmp(name, "vkMergePipelineCaches")) |
| 3597 | { |
| 3598 | return (void*)entry_vkMergePipelineCaches; |
| 3599 | } |
| 3600 | if (!strcmp(name, "vkCreateGraphicsPipelines")) |
| 3601 | { |
| 3602 | return (void*)entry_vkCreateGraphicsPipelines; |
| 3603 | } |
| 3604 | if (!strcmp(name, "vkCreateComputePipelines")) |
| 3605 | { |
| 3606 | return (void*)entry_vkCreateComputePipelines; |
| 3607 | } |
| 3608 | if (!strcmp(name, "vkDestroyPipeline")) |
| 3609 | { |
| 3610 | return (void*)entry_vkDestroyPipeline; |
| 3611 | } |
| 3612 | if (!strcmp(name, "vkCreatePipelineLayout")) |
| 3613 | { |
| 3614 | return (void*)entry_vkCreatePipelineLayout; |
| 3615 | } |
| 3616 | if (!strcmp(name, "vkDestroyPipelineLayout")) |
| 3617 | { |
| 3618 | return (void*)entry_vkDestroyPipelineLayout; |
| 3619 | } |
| 3620 | if (!strcmp(name, "vkCreateSampler")) |
| 3621 | { |
| 3622 | return (void*)entry_vkCreateSampler; |
| 3623 | } |
| 3624 | if (!strcmp(name, "vkDestroySampler")) |
| 3625 | { |
| 3626 | return (void*)entry_vkDestroySampler; |
| 3627 | } |
| 3628 | if (!strcmp(name, "vkCreateDescriptorSetLayout")) |
| 3629 | { |
| 3630 | return (void*)entry_vkCreateDescriptorSetLayout; |
| 3631 | } |
| 3632 | if (!strcmp(name, "vkDestroyDescriptorSetLayout")) |
| 3633 | { |
| 3634 | return (void*)entry_vkDestroyDescriptorSetLayout; |
| 3635 | } |
| 3636 | if (!strcmp(name, "vkCreateDescriptorPool")) |
| 3637 | { |
| 3638 | return (void*)entry_vkCreateDescriptorPool; |
| 3639 | } |
| 3640 | if (!strcmp(name, "vkDestroyDescriptorPool")) |
| 3641 | { |
| 3642 | return (void*)entry_vkDestroyDescriptorPool; |
| 3643 | } |
| 3644 | if (!strcmp(name, "vkResetDescriptorPool")) |
| 3645 | { |
| 3646 | return (void*)entry_vkResetDescriptorPool; |
| 3647 | } |
| 3648 | if (!strcmp(name, "vkAllocateDescriptorSets")) |
| 3649 | { |
| 3650 | return (void*)entry_vkAllocateDescriptorSets; |
| 3651 | } |
| 3652 | if (!strcmp(name, "vkFreeDescriptorSets")) |
| 3653 | { |
| 3654 | return (void*)entry_vkFreeDescriptorSets; |
| 3655 | } |
| 3656 | if (!strcmp(name, "vkUpdateDescriptorSets")) |
| 3657 | { |
| 3658 | return (void*)entry_vkUpdateDescriptorSets; |
| 3659 | } |
| 3660 | if (!strcmp(name, "vkCreateFramebuffer")) |
| 3661 | { |
| 3662 | return (void*)entry_vkCreateFramebuffer; |
| 3663 | } |
| 3664 | if (!strcmp(name, "vkDestroyFramebuffer")) |
| 3665 | { |
| 3666 | return (void*)entry_vkDestroyFramebuffer; |
| 3667 | } |
| 3668 | if (!strcmp(name, "vkCreateRenderPass")) |
| 3669 | { |
| 3670 | return (void*)entry_vkCreateRenderPass; |
| 3671 | } |
| 3672 | if (!strcmp(name, "vkDestroyRenderPass")) |
| 3673 | { |
| 3674 | return (void*)entry_vkDestroyRenderPass; |
| 3675 | } |
| 3676 | if (!strcmp(name, "vkGetRenderAreaGranularity")) |
| 3677 | { |
| 3678 | return (void*)entry_vkGetRenderAreaGranularity; |
| 3679 | } |
| 3680 | if (!strcmp(name, "vkCreateCommandPool")) |
| 3681 | { |
| 3682 | return (void*)entry_vkCreateCommandPool; |
| 3683 | } |
| 3684 | if (!strcmp(name, "vkDestroyCommandPool")) |
| 3685 | { |
| 3686 | return (void*)entry_vkDestroyCommandPool; |
| 3687 | } |
| 3688 | if (!strcmp(name, "vkResetCommandPool")) |
| 3689 | { |
| 3690 | return (void*)entry_vkResetCommandPool; |
| 3691 | } |
| 3692 | if (!strcmp(name, "vkAllocateCommandBuffers")) |
| 3693 | { |
| 3694 | return (void*)entry_vkAllocateCommandBuffers; |
| 3695 | } |
| 3696 | if (!strcmp(name, "vkFreeCommandBuffers")) |
| 3697 | { |
| 3698 | return (void*)entry_vkFreeCommandBuffers; |
| 3699 | } |
| 3700 | if (!strcmp(name, "vkBeginCommandBuffer")) |
| 3701 | { |
| 3702 | return (void*)entry_vkBeginCommandBuffer; |
| 3703 | } |
| 3704 | if (!strcmp(name, "vkEndCommandBuffer")) |
| 3705 | { |
| 3706 | return (void*)entry_vkEndCommandBuffer; |
| 3707 | } |
| 3708 | if (!strcmp(name, "vkResetCommandBuffer")) |
| 3709 | { |
| 3710 | return (void*)entry_vkResetCommandBuffer; |
| 3711 | } |
| 3712 | if (!strcmp(name, "vkCmdBindPipeline")) |
| 3713 | { |
| 3714 | return (void*)entry_vkCmdBindPipeline; |
| 3715 | } |
| 3716 | if (!strcmp(name, "vkCmdSetViewport")) |
| 3717 | { |
| 3718 | return (void*)entry_vkCmdSetViewport; |
| 3719 | } |
| 3720 | if (!strcmp(name, "vkCmdSetScissor")) |
| 3721 | { |
| 3722 | return (void*)entry_vkCmdSetScissor; |
| 3723 | } |
| 3724 | if (!strcmp(name, "vkCmdSetLineWidth")) |
| 3725 | { |
| 3726 | return (void*)entry_vkCmdSetLineWidth; |
| 3727 | } |
| 3728 | if (!strcmp(name, "vkCmdSetDepthBias")) |
| 3729 | { |
| 3730 | return (void*)entry_vkCmdSetDepthBias; |
| 3731 | } |
| 3732 | if (!strcmp(name, "vkCmdSetBlendConstants")) |
| 3733 | { |
| 3734 | return (void*)entry_vkCmdSetBlendConstants; |
| 3735 | } |
| 3736 | if (!strcmp(name, "vkCmdSetDepthBounds")) |
| 3737 | { |
| 3738 | return (void*)entry_vkCmdSetDepthBounds; |
| 3739 | } |
| 3740 | if (!strcmp(name, "vkCmdSetStencilCompareMask")) |
| 3741 | { |
| 3742 | return (void*)entry_vkCmdSetStencilCompareMask; |
| 3743 | } |
| 3744 | if (!strcmp(name, "vkCmdSetStencilWriteMask")) |
| 3745 | { |
| 3746 | return (void*)entry_vkCmdSetStencilWriteMask; |
| 3747 | } |
| 3748 | if (!strcmp(name, "vkCmdSetStencilReference")) |
| 3749 | { |
| 3750 | return (void*)entry_vkCmdSetStencilReference; |
| 3751 | } |
| 3752 | if (!strcmp(name, "vkCmdBindDescriptorSets")) |
| 3753 | { |
| 3754 | return (void*)entry_vkCmdBindDescriptorSets; |
| 3755 | } |
| 3756 | if (!strcmp(name, "vkCmdBindIndexBuffer")) |
| 3757 | { |
| 3758 | return (void*)entry_vkCmdBindIndexBuffer; |
| 3759 | } |
| 3760 | if (!strcmp(name, "vkCmdBindVertexBuffers")) |
| 3761 | { |
| 3762 | return (void*)entry_vkCmdBindVertexBuffers; |
| 3763 | } |
| 3764 | if (!strcmp(name, "vkCmdDraw")) |
| 3765 | { |
| 3766 | return (void*)entry_vkCmdDraw; |
| 3767 | } |
| 3768 | if (!strcmp(name, "vkCmdDrawIndexed")) |
| 3769 | { |
| 3770 | return (void*)entry_vkCmdDrawIndexed; |
| 3771 | } |
| 3772 | if (!strcmp(name, "vkCmdDrawIndirect")) |
| 3773 | { |
| 3774 | return (void*)entry_vkCmdDrawIndirect; |
| 3775 | } |
| 3776 | if (!strcmp(name, "vkCmdDrawIndexedIndirect")) |
| 3777 | { |
| 3778 | return (void*)entry_vkCmdDrawIndexedIndirect; |
| 3779 | } |
| 3780 | if (!strcmp(name, "vkCmdDispatch")) |
| 3781 | { |
| 3782 | return (void*)entry_vkCmdDispatch; |
| 3783 | } |
| 3784 | if (!strcmp(name, "vkCmdDispatchIndirect")) |
| 3785 | { |
| 3786 | return (void*)entry_vkCmdDispatchIndirect; |
| 3787 | } |
| 3788 | if (!strcmp(name, "vkCmdCopyBuffer")) |
| 3789 | { |
| 3790 | return (void*)entry_vkCmdCopyBuffer; |
| 3791 | } |
| 3792 | if (!strcmp(name, "vkCmdCopyImage")) |
| 3793 | { |
| 3794 | return (void*)entry_vkCmdCopyImage; |
| 3795 | } |
| 3796 | if (!strcmp(name, "vkCmdBlitImage")) |
| 3797 | { |
| 3798 | return (void*)entry_vkCmdBlitImage; |
| 3799 | } |
| 3800 | if (!strcmp(name, "vkCmdCopyBufferToImage")) |
| 3801 | { |
| 3802 | return (void*)entry_vkCmdCopyBufferToImage; |
| 3803 | } |
| 3804 | if (!strcmp(name, "vkCmdCopyImageToBuffer")) |
| 3805 | { |
| 3806 | return (void*)entry_vkCmdCopyImageToBuffer; |
| 3807 | } |
| 3808 | if (!strcmp(name, "vkCmdUpdateBuffer")) |
| 3809 | { |
| 3810 | return (void*)entry_vkCmdUpdateBuffer; |
| 3811 | } |
| 3812 | if (!strcmp(name, "vkCmdFillBuffer")) |
| 3813 | { |
| 3814 | return (void*)entry_vkCmdFillBuffer; |
| 3815 | } |
| 3816 | if (!strcmp(name, "vkCmdClearColorImage")) |
| 3817 | { |
| 3818 | return (void*)entry_vkCmdClearColorImage; |
| 3819 | } |
| 3820 | if (!strcmp(name, "vkCmdClearDepthStencilImage")) |
| 3821 | { |
| 3822 | return (void*)entry_vkCmdClearDepthStencilImage; |
| 3823 | } |
| 3824 | if (!strcmp(name, "vkCmdClearAttachments")) |
| 3825 | { |
| 3826 | return (void*)entry_vkCmdClearAttachments; |
| 3827 | } |
| 3828 | if (!strcmp(name, "vkCmdResolveImage")) |
| 3829 | { |
| 3830 | return (void*)entry_vkCmdResolveImage; |
| 3831 | } |
| 3832 | if (!strcmp(name, "vkCmdSetEvent")) |
| 3833 | { |
| 3834 | return (void*)entry_vkCmdSetEvent; |
| 3835 | } |
| 3836 | if (!strcmp(name, "vkCmdResetEvent")) |
| 3837 | { |
| 3838 | return (void*)entry_vkCmdResetEvent; |
| 3839 | } |
| 3840 | if (!strcmp(name, "vkCmdWaitEvents")) |
| 3841 | { |
| 3842 | return (void*)entry_vkCmdWaitEvents; |
| 3843 | } |
| 3844 | if (!strcmp(name, "vkCmdPipelineBarrier")) |
| 3845 | { |
| 3846 | return (void*)entry_vkCmdPipelineBarrier; |
| 3847 | } |
| 3848 | if (!strcmp(name, "vkCmdBeginQuery")) |
| 3849 | { |
| 3850 | return (void*)entry_vkCmdBeginQuery; |
| 3851 | } |
| 3852 | if (!strcmp(name, "vkCmdEndQuery")) |
| 3853 | { |
| 3854 | return (void*)entry_vkCmdEndQuery; |
| 3855 | } |
| 3856 | if (!strcmp(name, "vkCmdResetQueryPool")) |
| 3857 | { |
| 3858 | return (void*)entry_vkCmdResetQueryPool; |
| 3859 | } |
| 3860 | if (!strcmp(name, "vkCmdWriteTimestamp")) |
| 3861 | { |
| 3862 | return (void*)entry_vkCmdWriteTimestamp; |
| 3863 | } |
| 3864 | if (!strcmp(name, "vkCmdCopyQueryPoolResults")) |
| 3865 | { |
| 3866 | return (void*)entry_vkCmdCopyQueryPoolResults; |
| 3867 | } |
| 3868 | if (!strcmp(name, "vkCmdPushConstants")) |
| 3869 | { |
| 3870 | return (void*)entry_vkCmdPushConstants; |
| 3871 | } |
| 3872 | if (!strcmp(name, "vkCmdBeginRenderPass")) |
| 3873 | { |
| 3874 | return (void*)entry_vkCmdBeginRenderPass; |
| 3875 | } |
| 3876 | if (!strcmp(name, "vkCmdNextSubpass")) |
| 3877 | { |
| 3878 | return (void*)entry_vkCmdNextSubpass; |
| 3879 | } |
| 3880 | if (!strcmp(name, "vkCmdEndRenderPass")) |
| 3881 | { |
| 3882 | return (void*)entry_vkCmdEndRenderPass; |
| 3883 | } |
| 3884 | if (!strcmp(name, "vkCmdExecuteCommands")) |
| 3885 | { |
| 3886 | return (void*)entry_vkCmdExecuteCommands; |
| 3887 | } |
| 3888 | #endif |
| 3889 | #ifdef VK_VERSION_1_1 |
| 3890 | if (!strcmp(name, "vkEnumerateInstanceVersion")) |
| 3891 | { |
| 3892 | return (void*)entry_vkEnumerateInstanceVersion; |
| 3893 | } |
| 3894 | if (!strcmp(name, "vkBindBufferMemory2")) |
| 3895 | { |
| 3896 | return (void*)entry_vkBindBufferMemory2; |
| 3897 | } |
| 3898 | if (!strcmp(name, "vkBindImageMemory2")) |
| 3899 | { |
| 3900 | return (void*)entry_vkBindImageMemory2; |
| 3901 | } |
| 3902 | if (!strcmp(name, "vkGetDeviceGroupPeerMemoryFeatures")) |
| 3903 | { |
| 3904 | return (void*)entry_vkGetDeviceGroupPeerMemoryFeatures; |
| 3905 | } |
| 3906 | if (!strcmp(name, "vkCmdSetDeviceMask")) |
| 3907 | { |
| 3908 | return (void*)entry_vkCmdSetDeviceMask; |
| 3909 | } |
| 3910 | if (!strcmp(name, "vkCmdDispatchBase")) |
| 3911 | { |
| 3912 | return (void*)entry_vkCmdDispatchBase; |
| 3913 | } |
| 3914 | if (!strcmp(name, "vkEnumeratePhysicalDeviceGroups")) |
| 3915 | { |
Lingfeng Yang | 113689e | 2018-11-11 16:48:50 -0800 | [diff] [blame] | 3916 | return nullptr; |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 3917 | } |
| 3918 | if (!strcmp(name, "vkGetImageMemoryRequirements2")) |
| 3919 | { |
| 3920 | return (void*)entry_vkGetImageMemoryRequirements2; |
| 3921 | } |
| 3922 | if (!strcmp(name, "vkGetBufferMemoryRequirements2")) |
| 3923 | { |
| 3924 | return (void*)entry_vkGetBufferMemoryRequirements2; |
| 3925 | } |
| 3926 | if (!strcmp(name, "vkGetImageSparseMemoryRequirements2")) |
| 3927 | { |
| 3928 | return (void*)entry_vkGetImageSparseMemoryRequirements2; |
| 3929 | } |
| 3930 | if (!strcmp(name, "vkGetPhysicalDeviceFeatures2")) |
| 3931 | { |
| 3932 | return (void*)entry_vkGetPhysicalDeviceFeatures2; |
| 3933 | } |
| 3934 | if (!strcmp(name, "vkGetPhysicalDeviceProperties2")) |
| 3935 | { |
| 3936 | return (void*)entry_vkGetPhysicalDeviceProperties2; |
| 3937 | } |
| 3938 | if (!strcmp(name, "vkGetPhysicalDeviceFormatProperties2")) |
| 3939 | { |
| 3940 | return (void*)entry_vkGetPhysicalDeviceFormatProperties2; |
| 3941 | } |
| 3942 | if (!strcmp(name, "vkGetPhysicalDeviceImageFormatProperties2")) |
| 3943 | { |
| 3944 | return (void*)entry_vkGetPhysicalDeviceImageFormatProperties2; |
| 3945 | } |
| 3946 | if (!strcmp(name, "vkGetPhysicalDeviceQueueFamilyProperties2")) |
| 3947 | { |
| 3948 | return (void*)entry_vkGetPhysicalDeviceQueueFamilyProperties2; |
| 3949 | } |
| 3950 | if (!strcmp(name, "vkGetPhysicalDeviceMemoryProperties2")) |
| 3951 | { |
| 3952 | return (void*)entry_vkGetPhysicalDeviceMemoryProperties2; |
| 3953 | } |
| 3954 | if (!strcmp(name, "vkGetPhysicalDeviceSparseImageFormatProperties2")) |
| 3955 | { |
| 3956 | return (void*)entry_vkGetPhysicalDeviceSparseImageFormatProperties2; |
| 3957 | } |
| 3958 | if (!strcmp(name, "vkTrimCommandPool")) |
| 3959 | { |
| 3960 | return (void*)entry_vkTrimCommandPool; |
| 3961 | } |
| 3962 | if (!strcmp(name, "vkGetDeviceQueue2")) |
| 3963 | { |
| 3964 | return (void*)entry_vkGetDeviceQueue2; |
| 3965 | } |
| 3966 | if (!strcmp(name, "vkCreateSamplerYcbcrConversion")) |
| 3967 | { |
| 3968 | return (void*)entry_vkCreateSamplerYcbcrConversion; |
| 3969 | } |
| 3970 | if (!strcmp(name, "vkDestroySamplerYcbcrConversion")) |
| 3971 | { |
| 3972 | return (void*)entry_vkDestroySamplerYcbcrConversion; |
| 3973 | } |
| 3974 | if (!strcmp(name, "vkCreateDescriptorUpdateTemplate")) |
| 3975 | { |
| 3976 | return (void*)entry_vkCreateDescriptorUpdateTemplate; |
| 3977 | } |
| 3978 | if (!strcmp(name, "vkDestroyDescriptorUpdateTemplate")) |
| 3979 | { |
| 3980 | return (void*)entry_vkDestroyDescriptorUpdateTemplate; |
| 3981 | } |
| 3982 | if (!strcmp(name, "vkUpdateDescriptorSetWithTemplate")) |
| 3983 | { |
| 3984 | return (void*)entry_vkUpdateDescriptorSetWithTemplate; |
| 3985 | } |
| 3986 | if (!strcmp(name, "vkGetPhysicalDeviceExternalBufferProperties")) |
| 3987 | { |
| 3988 | return (void*)entry_vkGetPhysicalDeviceExternalBufferProperties; |
| 3989 | } |
| 3990 | if (!strcmp(name, "vkGetPhysicalDeviceExternalFenceProperties")) |
| 3991 | { |
| 3992 | return (void*)entry_vkGetPhysicalDeviceExternalFenceProperties; |
| 3993 | } |
| 3994 | if (!strcmp(name, "vkGetPhysicalDeviceExternalSemaphoreProperties")) |
| 3995 | { |
| 3996 | return (void*)entry_vkGetPhysicalDeviceExternalSemaphoreProperties; |
| 3997 | } |
| 3998 | if (!strcmp(name, "vkGetDescriptorSetLayoutSupport")) |
| 3999 | { |
| 4000 | return (void*)entry_vkGetDescriptorSetLayoutSupport; |
| 4001 | } |
| 4002 | #endif |
| 4003 | #ifdef VK_KHR_surface |
| 4004 | if (!strcmp(name, "vkDestroySurfaceKHR")) |
| 4005 | { |
| 4006 | return (void*)entry_vkDestroySurfaceKHR; |
| 4007 | } |
| 4008 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceSupportKHR")) |
| 4009 | { |
| 4010 | return (void*)entry_vkGetPhysicalDeviceSurfaceSupportKHR; |
| 4011 | } |
| 4012 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceCapabilitiesKHR")) |
| 4013 | { |
| 4014 | return (void*)entry_vkGetPhysicalDeviceSurfaceCapabilitiesKHR; |
| 4015 | } |
| 4016 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceFormatsKHR")) |
| 4017 | { |
| 4018 | return (void*)entry_vkGetPhysicalDeviceSurfaceFormatsKHR; |
| 4019 | } |
| 4020 | if (!strcmp(name, "vkGetPhysicalDeviceSurfacePresentModesKHR")) |
| 4021 | { |
| 4022 | return (void*)entry_vkGetPhysicalDeviceSurfacePresentModesKHR; |
| 4023 | } |
| 4024 | #endif |
| 4025 | #ifdef VK_KHR_swapchain |
| 4026 | if (!strcmp(name, "vkCreateSwapchainKHR")) |
| 4027 | { |
| 4028 | return (void*)entry_vkCreateSwapchainKHR; |
| 4029 | } |
| 4030 | if (!strcmp(name, "vkDestroySwapchainKHR")) |
| 4031 | { |
| 4032 | return (void*)entry_vkDestroySwapchainKHR; |
| 4033 | } |
| 4034 | if (!strcmp(name, "vkGetSwapchainImagesKHR")) |
| 4035 | { |
| 4036 | return (void*)entry_vkGetSwapchainImagesKHR; |
| 4037 | } |
| 4038 | if (!strcmp(name, "vkAcquireNextImageKHR")) |
| 4039 | { |
| 4040 | return (void*)entry_vkAcquireNextImageKHR; |
| 4041 | } |
| 4042 | if (!strcmp(name, "vkQueuePresentKHR")) |
| 4043 | { |
| 4044 | return (void*)entry_vkQueuePresentKHR; |
| 4045 | } |
| 4046 | if (!strcmp(name, "vkGetDeviceGroupPresentCapabilitiesKHR")) |
| 4047 | { |
| 4048 | return (void*)entry_vkGetDeviceGroupPresentCapabilitiesKHR; |
| 4049 | } |
| 4050 | if (!strcmp(name, "vkGetDeviceGroupSurfacePresentModesKHR")) |
| 4051 | { |
| 4052 | return (void*)entry_vkGetDeviceGroupSurfacePresentModesKHR; |
| 4053 | } |
| 4054 | if (!strcmp(name, "vkGetPhysicalDevicePresentRectanglesKHR")) |
| 4055 | { |
| 4056 | return (void*)entry_vkGetPhysicalDevicePresentRectanglesKHR; |
| 4057 | } |
| 4058 | if (!strcmp(name, "vkAcquireNextImage2KHR")) |
| 4059 | { |
| 4060 | return (void*)entry_vkAcquireNextImage2KHR; |
| 4061 | } |
| 4062 | #endif |
| 4063 | #ifdef VK_KHR_display |
| 4064 | if (!strcmp(name, "vkGetPhysicalDeviceDisplayPropertiesKHR")) |
| 4065 | { |
| 4066 | return (void*)entry_vkGetPhysicalDeviceDisplayPropertiesKHR; |
| 4067 | } |
| 4068 | if (!strcmp(name, "vkGetPhysicalDeviceDisplayPlanePropertiesKHR")) |
| 4069 | { |
| 4070 | return (void*)entry_vkGetPhysicalDeviceDisplayPlanePropertiesKHR; |
| 4071 | } |
| 4072 | if (!strcmp(name, "vkGetDisplayPlaneSupportedDisplaysKHR")) |
| 4073 | { |
| 4074 | return (void*)entry_vkGetDisplayPlaneSupportedDisplaysKHR; |
| 4075 | } |
| 4076 | if (!strcmp(name, "vkGetDisplayModePropertiesKHR")) |
| 4077 | { |
| 4078 | return (void*)entry_vkGetDisplayModePropertiesKHR; |
| 4079 | } |
| 4080 | if (!strcmp(name, "vkCreateDisplayModeKHR")) |
| 4081 | { |
| 4082 | return (void*)entry_vkCreateDisplayModeKHR; |
| 4083 | } |
| 4084 | if (!strcmp(name, "vkGetDisplayPlaneCapabilitiesKHR")) |
| 4085 | { |
| 4086 | return (void*)entry_vkGetDisplayPlaneCapabilitiesKHR; |
| 4087 | } |
| 4088 | if (!strcmp(name, "vkCreateDisplayPlaneSurfaceKHR")) |
| 4089 | { |
| 4090 | return (void*)entry_vkCreateDisplayPlaneSurfaceKHR; |
| 4091 | } |
| 4092 | #endif |
| 4093 | #ifdef VK_KHR_display_swapchain |
| 4094 | if (!strcmp(name, "vkCreateSharedSwapchainsKHR")) |
| 4095 | { |
| 4096 | return (void*)entry_vkCreateSharedSwapchainsKHR; |
| 4097 | } |
| 4098 | #endif |
| 4099 | #ifdef VK_KHR_xlib_surface |
| 4100 | if (!strcmp(name, "vkCreateXlibSurfaceKHR")) |
| 4101 | { |
| 4102 | return (void*)entry_vkCreateXlibSurfaceKHR; |
| 4103 | } |
| 4104 | if (!strcmp(name, "vkGetPhysicalDeviceXlibPresentationSupportKHR")) |
| 4105 | { |
| 4106 | return (void*)entry_vkGetPhysicalDeviceXlibPresentationSupportKHR; |
| 4107 | } |
| 4108 | #endif |
| 4109 | #ifdef VK_KHR_xcb_surface |
| 4110 | if (!strcmp(name, "vkCreateXcbSurfaceKHR")) |
| 4111 | { |
| 4112 | return (void*)entry_vkCreateXcbSurfaceKHR; |
| 4113 | } |
| 4114 | if (!strcmp(name, "vkGetPhysicalDeviceXcbPresentationSupportKHR")) |
| 4115 | { |
| 4116 | return (void*)entry_vkGetPhysicalDeviceXcbPresentationSupportKHR; |
| 4117 | } |
| 4118 | #endif |
| 4119 | #ifdef VK_KHR_wayland_surface |
| 4120 | if (!strcmp(name, "vkCreateWaylandSurfaceKHR")) |
| 4121 | { |
| 4122 | return (void*)entry_vkCreateWaylandSurfaceKHR; |
| 4123 | } |
| 4124 | if (!strcmp(name, "vkGetPhysicalDeviceWaylandPresentationSupportKHR")) |
| 4125 | { |
| 4126 | return (void*)entry_vkGetPhysicalDeviceWaylandPresentationSupportKHR; |
| 4127 | } |
| 4128 | #endif |
| 4129 | #ifdef VK_KHR_mir_surface |
| 4130 | if (!strcmp(name, "vkCreateMirSurfaceKHR")) |
| 4131 | { |
| 4132 | return (void*)entry_vkCreateMirSurfaceKHR; |
| 4133 | } |
| 4134 | if (!strcmp(name, "vkGetPhysicalDeviceMirPresentationSupportKHR")) |
| 4135 | { |
| 4136 | return (void*)entry_vkGetPhysicalDeviceMirPresentationSupportKHR; |
| 4137 | } |
| 4138 | #endif |
| 4139 | #ifdef VK_KHR_android_surface |
| 4140 | if (!strcmp(name, "vkCreateAndroidSurfaceKHR")) |
| 4141 | { |
| 4142 | return (void*)entry_vkCreateAndroidSurfaceKHR; |
| 4143 | } |
| 4144 | #endif |
| 4145 | #ifdef VK_KHR_win32_surface |
| 4146 | if (!strcmp(name, "vkCreateWin32SurfaceKHR")) |
| 4147 | { |
| 4148 | return (void*)entry_vkCreateWin32SurfaceKHR; |
| 4149 | } |
| 4150 | if (!strcmp(name, "vkGetPhysicalDeviceWin32PresentationSupportKHR")) |
| 4151 | { |
| 4152 | return (void*)entry_vkGetPhysicalDeviceWin32PresentationSupportKHR; |
| 4153 | } |
| 4154 | #endif |
| 4155 | #ifdef VK_KHR_get_physical_device_properties2 |
| 4156 | if (!strcmp(name, "vkGetPhysicalDeviceFeatures2KHR")) |
| 4157 | { |
| 4158 | return (void*)entry_vkGetPhysicalDeviceFeatures2KHR; |
| 4159 | } |
| 4160 | if (!strcmp(name, "vkGetPhysicalDeviceProperties2KHR")) |
| 4161 | { |
| 4162 | return (void*)entry_vkGetPhysicalDeviceProperties2KHR; |
| 4163 | } |
| 4164 | if (!strcmp(name, "vkGetPhysicalDeviceFormatProperties2KHR")) |
| 4165 | { |
| 4166 | return (void*)entry_vkGetPhysicalDeviceFormatProperties2KHR; |
| 4167 | } |
| 4168 | if (!strcmp(name, "vkGetPhysicalDeviceImageFormatProperties2KHR")) |
| 4169 | { |
| 4170 | return (void*)entry_vkGetPhysicalDeviceImageFormatProperties2KHR; |
| 4171 | } |
| 4172 | if (!strcmp(name, "vkGetPhysicalDeviceQueueFamilyProperties2KHR")) |
| 4173 | { |
| 4174 | return (void*)entry_vkGetPhysicalDeviceQueueFamilyProperties2KHR; |
| 4175 | } |
| 4176 | if (!strcmp(name, "vkGetPhysicalDeviceMemoryProperties2KHR")) |
| 4177 | { |
| 4178 | return (void*)entry_vkGetPhysicalDeviceMemoryProperties2KHR; |
| 4179 | } |
| 4180 | if (!strcmp(name, "vkGetPhysicalDeviceSparseImageFormatProperties2KHR")) |
| 4181 | { |
| 4182 | return (void*)entry_vkGetPhysicalDeviceSparseImageFormatProperties2KHR; |
| 4183 | } |
| 4184 | #endif |
| 4185 | #ifdef VK_KHR_device_group |
| 4186 | if (!strcmp(name, "vkGetDeviceGroupPeerMemoryFeaturesKHR")) |
| 4187 | { |
| 4188 | return (void*)entry_vkGetDeviceGroupPeerMemoryFeaturesKHR; |
| 4189 | } |
| 4190 | if (!strcmp(name, "vkCmdSetDeviceMaskKHR")) |
| 4191 | { |
| 4192 | return (void*)entry_vkCmdSetDeviceMaskKHR; |
| 4193 | } |
| 4194 | if (!strcmp(name, "vkCmdDispatchBaseKHR")) |
| 4195 | { |
| 4196 | return (void*)entry_vkCmdDispatchBaseKHR; |
| 4197 | } |
| 4198 | #endif |
| 4199 | #ifdef VK_KHR_maintenance1 |
| 4200 | if (!strcmp(name, "vkTrimCommandPoolKHR")) |
| 4201 | { |
| 4202 | return (void*)entry_vkTrimCommandPoolKHR; |
| 4203 | } |
| 4204 | #endif |
| 4205 | #ifdef VK_KHR_device_group_creation |
| 4206 | if (!strcmp(name, "vkEnumeratePhysicalDeviceGroupsKHR")) |
| 4207 | { |
| 4208 | return (void*)entry_vkEnumeratePhysicalDeviceGroupsKHR; |
| 4209 | } |
| 4210 | #endif |
| 4211 | #ifdef VK_KHR_external_memory_capabilities |
| 4212 | if (!strcmp(name, "vkGetPhysicalDeviceExternalBufferPropertiesKHR")) |
| 4213 | { |
| 4214 | return (void*)entry_vkGetPhysicalDeviceExternalBufferPropertiesKHR; |
| 4215 | } |
| 4216 | #endif |
| 4217 | #ifdef VK_KHR_external_memory_win32 |
| 4218 | if (!strcmp(name, "vkGetMemoryWin32HandleKHR")) |
| 4219 | { |
| 4220 | return (void*)entry_vkGetMemoryWin32HandleKHR; |
| 4221 | } |
| 4222 | if (!strcmp(name, "vkGetMemoryWin32HandlePropertiesKHR")) |
| 4223 | { |
| 4224 | return (void*)entry_vkGetMemoryWin32HandlePropertiesKHR; |
| 4225 | } |
| 4226 | #endif |
| 4227 | #ifdef VK_KHR_external_memory_fd |
| 4228 | if (!strcmp(name, "vkGetMemoryFdKHR")) |
| 4229 | { |
| 4230 | return (void*)entry_vkGetMemoryFdKHR; |
| 4231 | } |
| 4232 | if (!strcmp(name, "vkGetMemoryFdPropertiesKHR")) |
| 4233 | { |
| 4234 | return (void*)entry_vkGetMemoryFdPropertiesKHR; |
| 4235 | } |
| 4236 | #endif |
| 4237 | #ifdef VK_KHR_external_semaphore_capabilities |
| 4238 | if (!strcmp(name, "vkGetPhysicalDeviceExternalSemaphorePropertiesKHR")) |
| 4239 | { |
| 4240 | return (void*)entry_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR; |
| 4241 | } |
| 4242 | #endif |
| 4243 | #ifdef VK_KHR_external_semaphore_win32 |
| 4244 | if (!strcmp(name, "vkImportSemaphoreWin32HandleKHR")) |
| 4245 | { |
| 4246 | return (void*)entry_vkImportSemaphoreWin32HandleKHR; |
| 4247 | } |
| 4248 | if (!strcmp(name, "vkGetSemaphoreWin32HandleKHR")) |
| 4249 | { |
| 4250 | return (void*)entry_vkGetSemaphoreWin32HandleKHR; |
| 4251 | } |
| 4252 | #endif |
| 4253 | #ifdef VK_KHR_external_semaphore_fd |
| 4254 | if (!strcmp(name, "vkImportSemaphoreFdKHR")) |
| 4255 | { |
| 4256 | return (void*)entry_vkImportSemaphoreFdKHR; |
| 4257 | } |
| 4258 | if (!strcmp(name, "vkGetSemaphoreFdKHR")) |
| 4259 | { |
| 4260 | return (void*)entry_vkGetSemaphoreFdKHR; |
| 4261 | } |
| 4262 | #endif |
| 4263 | #ifdef VK_KHR_push_descriptor |
| 4264 | if (!strcmp(name, "vkCmdPushDescriptorSetKHR")) |
| 4265 | { |
| 4266 | return (void*)entry_vkCmdPushDescriptorSetKHR; |
| 4267 | } |
| 4268 | if (!strcmp(name, "vkCmdPushDescriptorSetWithTemplateKHR")) |
| 4269 | { |
| 4270 | return (void*)entry_vkCmdPushDescriptorSetWithTemplateKHR; |
| 4271 | } |
| 4272 | #endif |
| 4273 | #ifdef VK_KHR_descriptor_update_template |
| 4274 | if (!strcmp(name, "vkCreateDescriptorUpdateTemplateKHR")) |
| 4275 | { |
| 4276 | return (void*)entry_vkCreateDescriptorUpdateTemplateKHR; |
| 4277 | } |
| 4278 | if (!strcmp(name, "vkDestroyDescriptorUpdateTemplateKHR")) |
| 4279 | { |
| 4280 | return (void*)entry_vkDestroyDescriptorUpdateTemplateKHR; |
| 4281 | } |
| 4282 | if (!strcmp(name, "vkUpdateDescriptorSetWithTemplateKHR")) |
| 4283 | { |
| 4284 | return (void*)entry_vkUpdateDescriptorSetWithTemplateKHR; |
| 4285 | } |
| 4286 | #endif |
| 4287 | #ifdef VK_KHR_create_renderpass2 |
| 4288 | if (!strcmp(name, "vkCreateRenderPass2KHR")) |
| 4289 | { |
| 4290 | return (void*)entry_vkCreateRenderPass2KHR; |
| 4291 | } |
| 4292 | if (!strcmp(name, "vkCmdBeginRenderPass2KHR")) |
| 4293 | { |
| 4294 | return (void*)entry_vkCmdBeginRenderPass2KHR; |
| 4295 | } |
| 4296 | if (!strcmp(name, "vkCmdNextSubpass2KHR")) |
| 4297 | { |
| 4298 | return (void*)entry_vkCmdNextSubpass2KHR; |
| 4299 | } |
| 4300 | if (!strcmp(name, "vkCmdEndRenderPass2KHR")) |
| 4301 | { |
| 4302 | return (void*)entry_vkCmdEndRenderPass2KHR; |
| 4303 | } |
| 4304 | #endif |
| 4305 | #ifdef VK_KHR_shared_presentable_image |
| 4306 | if (!strcmp(name, "vkGetSwapchainStatusKHR")) |
| 4307 | { |
| 4308 | return (void*)entry_vkGetSwapchainStatusKHR; |
| 4309 | } |
| 4310 | #endif |
| 4311 | #ifdef VK_KHR_external_fence_capabilities |
| 4312 | if (!strcmp(name, "vkGetPhysicalDeviceExternalFencePropertiesKHR")) |
| 4313 | { |
| 4314 | return (void*)entry_vkGetPhysicalDeviceExternalFencePropertiesKHR; |
| 4315 | } |
| 4316 | #endif |
| 4317 | #ifdef VK_KHR_external_fence_win32 |
| 4318 | if (!strcmp(name, "vkImportFenceWin32HandleKHR")) |
| 4319 | { |
| 4320 | return (void*)entry_vkImportFenceWin32HandleKHR; |
| 4321 | } |
| 4322 | if (!strcmp(name, "vkGetFenceWin32HandleKHR")) |
| 4323 | { |
| 4324 | return (void*)entry_vkGetFenceWin32HandleKHR; |
| 4325 | } |
| 4326 | #endif |
| 4327 | #ifdef VK_KHR_external_fence_fd |
| 4328 | if (!strcmp(name, "vkImportFenceFdKHR")) |
| 4329 | { |
| 4330 | return (void*)entry_vkImportFenceFdKHR; |
| 4331 | } |
| 4332 | if (!strcmp(name, "vkGetFenceFdKHR")) |
| 4333 | { |
| 4334 | return (void*)entry_vkGetFenceFdKHR; |
| 4335 | } |
| 4336 | #endif |
| 4337 | #ifdef VK_KHR_get_surface_capabilities2 |
| 4338 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceCapabilities2KHR")) |
| 4339 | { |
| 4340 | return (void*)entry_vkGetPhysicalDeviceSurfaceCapabilities2KHR; |
| 4341 | } |
| 4342 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceFormats2KHR")) |
| 4343 | { |
| 4344 | return (void*)entry_vkGetPhysicalDeviceSurfaceFormats2KHR; |
| 4345 | } |
| 4346 | #endif |
| 4347 | #ifdef VK_KHR_get_display_properties2 |
| 4348 | if (!strcmp(name, "vkGetPhysicalDeviceDisplayProperties2KHR")) |
| 4349 | { |
| 4350 | return (void*)entry_vkGetPhysicalDeviceDisplayProperties2KHR; |
| 4351 | } |
| 4352 | if (!strcmp(name, "vkGetPhysicalDeviceDisplayPlaneProperties2KHR")) |
| 4353 | { |
| 4354 | return (void*)entry_vkGetPhysicalDeviceDisplayPlaneProperties2KHR; |
| 4355 | } |
| 4356 | if (!strcmp(name, "vkGetDisplayModeProperties2KHR")) |
| 4357 | { |
| 4358 | return (void*)entry_vkGetDisplayModeProperties2KHR; |
| 4359 | } |
| 4360 | if (!strcmp(name, "vkGetDisplayPlaneCapabilities2KHR")) |
| 4361 | { |
| 4362 | return (void*)entry_vkGetDisplayPlaneCapabilities2KHR; |
| 4363 | } |
| 4364 | #endif |
| 4365 | #ifdef VK_KHR_get_memory_requirements2 |
| 4366 | if (!strcmp(name, "vkGetImageMemoryRequirements2KHR")) |
| 4367 | { |
| 4368 | return (void*)entry_vkGetImageMemoryRequirements2KHR; |
| 4369 | } |
| 4370 | if (!strcmp(name, "vkGetBufferMemoryRequirements2KHR")) |
| 4371 | { |
| 4372 | return (void*)entry_vkGetBufferMemoryRequirements2KHR; |
| 4373 | } |
| 4374 | if (!strcmp(name, "vkGetImageSparseMemoryRequirements2KHR")) |
| 4375 | { |
| 4376 | return (void*)entry_vkGetImageSparseMemoryRequirements2KHR; |
| 4377 | } |
| 4378 | #endif |
| 4379 | #ifdef VK_KHR_sampler_ycbcr_conversion |
| 4380 | if (!strcmp(name, "vkCreateSamplerYcbcrConversionKHR")) |
| 4381 | { |
| 4382 | return (void*)entry_vkCreateSamplerYcbcrConversionKHR; |
| 4383 | } |
| 4384 | if (!strcmp(name, "vkDestroySamplerYcbcrConversionKHR")) |
| 4385 | { |
| 4386 | return (void*)entry_vkDestroySamplerYcbcrConversionKHR; |
| 4387 | } |
| 4388 | #endif |
| 4389 | #ifdef VK_KHR_bind_memory2 |
| 4390 | if (!strcmp(name, "vkBindBufferMemory2KHR")) |
| 4391 | { |
| 4392 | return (void*)entry_vkBindBufferMemory2KHR; |
| 4393 | } |
| 4394 | if (!strcmp(name, "vkBindImageMemory2KHR")) |
| 4395 | { |
| 4396 | return (void*)entry_vkBindImageMemory2KHR; |
| 4397 | } |
| 4398 | #endif |
| 4399 | #ifdef VK_KHR_maintenance3 |
| 4400 | if (!strcmp(name, "vkGetDescriptorSetLayoutSupportKHR")) |
| 4401 | { |
| 4402 | return (void*)entry_vkGetDescriptorSetLayoutSupportKHR; |
| 4403 | } |
| 4404 | #endif |
| 4405 | #ifdef VK_KHR_draw_indirect_count |
| 4406 | if (!strcmp(name, "vkCmdDrawIndirectCountKHR")) |
| 4407 | { |
| 4408 | return (void*)entry_vkCmdDrawIndirectCountKHR; |
| 4409 | } |
| 4410 | if (!strcmp(name, "vkCmdDrawIndexedIndirectCountKHR")) |
| 4411 | { |
| 4412 | return (void*)entry_vkCmdDrawIndexedIndirectCountKHR; |
| 4413 | } |
| 4414 | #endif |
Lingfeng Yang | 808a631 | 2018-11-13 21:06:15 -0800 | [diff] [blame] | 4415 | #ifdef VK_ANDROID_native_buffer |
| 4416 | if (!strcmp(name, "vkGetSwapchainGrallocUsageANDROID")) |
| 4417 | { |
| 4418 | return (void*)entry_vkGetSwapchainGrallocUsageANDROID; |
| 4419 | } |
| 4420 | if (!strcmp(name, "vkAcquireImageANDROID")) |
| 4421 | { |
| 4422 | return (void*)entry_vkAcquireImageANDROID; |
| 4423 | } |
| 4424 | if (!strcmp(name, "vkQueueSignalReleaseImageANDROID")) |
| 4425 | { |
| 4426 | return (void*)entry_vkQueueSignalReleaseImageANDROID; |
| 4427 | } |
| 4428 | #endif |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 4429 | #ifdef VK_EXT_debug_report |
| 4430 | if (!strcmp(name, "vkCreateDebugReportCallbackEXT")) |
| 4431 | { |
| 4432 | return (void*)entry_vkCreateDebugReportCallbackEXT; |
| 4433 | } |
| 4434 | if (!strcmp(name, "vkDestroyDebugReportCallbackEXT")) |
| 4435 | { |
| 4436 | return (void*)entry_vkDestroyDebugReportCallbackEXT; |
| 4437 | } |
| 4438 | if (!strcmp(name, "vkDebugReportMessageEXT")) |
| 4439 | { |
| 4440 | return (void*)entry_vkDebugReportMessageEXT; |
| 4441 | } |
| 4442 | #endif |
| 4443 | #ifdef VK_EXT_debug_marker |
| 4444 | if (!strcmp(name, "vkDebugMarkerSetObjectTagEXT")) |
| 4445 | { |
| 4446 | return (void*)entry_vkDebugMarkerSetObjectTagEXT; |
| 4447 | } |
| 4448 | if (!strcmp(name, "vkDebugMarkerSetObjectNameEXT")) |
| 4449 | { |
| 4450 | return (void*)entry_vkDebugMarkerSetObjectNameEXT; |
| 4451 | } |
| 4452 | if (!strcmp(name, "vkCmdDebugMarkerBeginEXT")) |
| 4453 | { |
| 4454 | return (void*)entry_vkCmdDebugMarkerBeginEXT; |
| 4455 | } |
| 4456 | if (!strcmp(name, "vkCmdDebugMarkerEndEXT")) |
| 4457 | { |
| 4458 | return (void*)entry_vkCmdDebugMarkerEndEXT; |
| 4459 | } |
| 4460 | if (!strcmp(name, "vkCmdDebugMarkerInsertEXT")) |
| 4461 | { |
| 4462 | return (void*)entry_vkCmdDebugMarkerInsertEXT; |
| 4463 | } |
| 4464 | #endif |
| 4465 | #ifdef VK_AMD_draw_indirect_count |
| 4466 | if (!strcmp(name, "vkCmdDrawIndirectCountAMD")) |
| 4467 | { |
| 4468 | return (void*)entry_vkCmdDrawIndirectCountAMD; |
| 4469 | } |
| 4470 | if (!strcmp(name, "vkCmdDrawIndexedIndirectCountAMD")) |
| 4471 | { |
| 4472 | return (void*)entry_vkCmdDrawIndexedIndirectCountAMD; |
| 4473 | } |
| 4474 | #endif |
| 4475 | #ifdef VK_AMD_shader_info |
| 4476 | if (!strcmp(name, "vkGetShaderInfoAMD")) |
| 4477 | { |
| 4478 | return (void*)entry_vkGetShaderInfoAMD; |
| 4479 | } |
| 4480 | #endif |
| 4481 | #ifdef VK_NV_external_memory_capabilities |
| 4482 | if (!strcmp(name, "vkGetPhysicalDeviceExternalImageFormatPropertiesNV")) |
| 4483 | { |
| 4484 | return (void*)entry_vkGetPhysicalDeviceExternalImageFormatPropertiesNV; |
| 4485 | } |
| 4486 | #endif |
| 4487 | #ifdef VK_NV_external_memory_win32 |
| 4488 | if (!strcmp(name, "vkGetMemoryWin32HandleNV")) |
| 4489 | { |
| 4490 | return (void*)entry_vkGetMemoryWin32HandleNV; |
| 4491 | } |
| 4492 | #endif |
| 4493 | #ifdef VK_NN_vi_surface |
| 4494 | if (!strcmp(name, "vkCreateViSurfaceNN")) |
| 4495 | { |
| 4496 | return (void*)entry_vkCreateViSurfaceNN; |
| 4497 | } |
| 4498 | #endif |
| 4499 | #ifdef VK_EXT_conditional_rendering |
| 4500 | if (!strcmp(name, "vkCmdBeginConditionalRenderingEXT")) |
| 4501 | { |
| 4502 | return (void*)entry_vkCmdBeginConditionalRenderingEXT; |
| 4503 | } |
| 4504 | if (!strcmp(name, "vkCmdEndConditionalRenderingEXT")) |
| 4505 | { |
| 4506 | return (void*)entry_vkCmdEndConditionalRenderingEXT; |
| 4507 | } |
| 4508 | #endif |
| 4509 | #ifdef VK_NVX_device_generated_commands |
| 4510 | if (!strcmp(name, "vkCmdProcessCommandsNVX")) |
| 4511 | { |
| 4512 | return (void*)entry_vkCmdProcessCommandsNVX; |
| 4513 | } |
| 4514 | if (!strcmp(name, "vkCmdReserveSpaceForCommandsNVX")) |
| 4515 | { |
| 4516 | return (void*)entry_vkCmdReserveSpaceForCommandsNVX; |
| 4517 | } |
| 4518 | if (!strcmp(name, "vkCreateIndirectCommandsLayoutNVX")) |
| 4519 | { |
| 4520 | return (void*)entry_vkCreateIndirectCommandsLayoutNVX; |
| 4521 | } |
| 4522 | if (!strcmp(name, "vkDestroyIndirectCommandsLayoutNVX")) |
| 4523 | { |
| 4524 | return (void*)entry_vkDestroyIndirectCommandsLayoutNVX; |
| 4525 | } |
| 4526 | if (!strcmp(name, "vkCreateObjectTableNVX")) |
| 4527 | { |
| 4528 | return (void*)entry_vkCreateObjectTableNVX; |
| 4529 | } |
| 4530 | if (!strcmp(name, "vkDestroyObjectTableNVX")) |
| 4531 | { |
| 4532 | return (void*)entry_vkDestroyObjectTableNVX; |
| 4533 | } |
| 4534 | if (!strcmp(name, "vkRegisterObjectsNVX")) |
| 4535 | { |
| 4536 | return (void*)entry_vkRegisterObjectsNVX; |
| 4537 | } |
| 4538 | if (!strcmp(name, "vkUnregisterObjectsNVX")) |
| 4539 | { |
| 4540 | return (void*)entry_vkUnregisterObjectsNVX; |
| 4541 | } |
| 4542 | if (!strcmp(name, "vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX")) |
| 4543 | { |
| 4544 | return (void*)entry_vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX; |
| 4545 | } |
| 4546 | #endif |
| 4547 | #ifdef VK_NV_clip_space_w_scaling |
| 4548 | if (!strcmp(name, "vkCmdSetViewportWScalingNV")) |
| 4549 | { |
| 4550 | return (void*)entry_vkCmdSetViewportWScalingNV; |
| 4551 | } |
| 4552 | #endif |
| 4553 | #ifdef VK_EXT_direct_mode_display |
| 4554 | if (!strcmp(name, "vkReleaseDisplayEXT")) |
| 4555 | { |
| 4556 | return (void*)entry_vkReleaseDisplayEXT; |
| 4557 | } |
| 4558 | #endif |
| 4559 | #ifdef VK_EXT_acquire_xlib_display |
| 4560 | if (!strcmp(name, "vkAcquireXlibDisplayEXT")) |
| 4561 | { |
| 4562 | return (void*)entry_vkAcquireXlibDisplayEXT; |
| 4563 | } |
| 4564 | if (!strcmp(name, "vkGetRandROutputDisplayEXT")) |
| 4565 | { |
| 4566 | return (void*)entry_vkGetRandROutputDisplayEXT; |
| 4567 | } |
| 4568 | #endif |
| 4569 | #ifdef VK_EXT_display_surface_counter |
| 4570 | if (!strcmp(name, "vkGetPhysicalDeviceSurfaceCapabilities2EXT")) |
| 4571 | { |
| 4572 | return (void*)entry_vkGetPhysicalDeviceSurfaceCapabilities2EXT; |
| 4573 | } |
| 4574 | #endif |
| 4575 | #ifdef VK_EXT_display_control |
| 4576 | if (!strcmp(name, "vkDisplayPowerControlEXT")) |
| 4577 | { |
| 4578 | return (void*)entry_vkDisplayPowerControlEXT; |
| 4579 | } |
| 4580 | if (!strcmp(name, "vkRegisterDeviceEventEXT")) |
| 4581 | { |
| 4582 | return (void*)entry_vkRegisterDeviceEventEXT; |
| 4583 | } |
| 4584 | if (!strcmp(name, "vkRegisterDisplayEventEXT")) |
| 4585 | { |
| 4586 | return (void*)entry_vkRegisterDisplayEventEXT; |
| 4587 | } |
| 4588 | if (!strcmp(name, "vkGetSwapchainCounterEXT")) |
| 4589 | { |
| 4590 | return (void*)entry_vkGetSwapchainCounterEXT; |
| 4591 | } |
| 4592 | #endif |
| 4593 | #ifdef VK_GOOGLE_display_timing |
| 4594 | if (!strcmp(name, "vkGetRefreshCycleDurationGOOGLE")) |
| 4595 | { |
| 4596 | return (void*)entry_vkGetRefreshCycleDurationGOOGLE; |
| 4597 | } |
| 4598 | if (!strcmp(name, "vkGetPastPresentationTimingGOOGLE")) |
| 4599 | { |
| 4600 | return (void*)entry_vkGetPastPresentationTimingGOOGLE; |
| 4601 | } |
| 4602 | #endif |
| 4603 | #ifdef VK_EXT_discard_rectangles |
| 4604 | if (!strcmp(name, "vkCmdSetDiscardRectangleEXT")) |
| 4605 | { |
| 4606 | return (void*)entry_vkCmdSetDiscardRectangleEXT; |
| 4607 | } |
| 4608 | #endif |
| 4609 | #ifdef VK_EXT_hdr_metadata |
| 4610 | if (!strcmp(name, "vkSetHdrMetadataEXT")) |
| 4611 | { |
| 4612 | return (void*)entry_vkSetHdrMetadataEXT; |
| 4613 | } |
| 4614 | #endif |
| 4615 | #ifdef VK_MVK_ios_surface |
| 4616 | if (!strcmp(name, "vkCreateIOSSurfaceMVK")) |
| 4617 | { |
| 4618 | return (void*)entry_vkCreateIOSSurfaceMVK; |
| 4619 | } |
| 4620 | #endif |
| 4621 | #ifdef VK_MVK_macos_surface |
| 4622 | if (!strcmp(name, "vkCreateMacOSSurfaceMVK")) |
| 4623 | { |
| 4624 | return (void*)entry_vkCreateMacOSSurfaceMVK; |
| 4625 | } |
| 4626 | #endif |
| 4627 | #ifdef VK_EXT_debug_utils |
| 4628 | if (!strcmp(name, "vkSetDebugUtilsObjectNameEXT")) |
| 4629 | { |
| 4630 | return (void*)entry_vkSetDebugUtilsObjectNameEXT; |
| 4631 | } |
| 4632 | if (!strcmp(name, "vkSetDebugUtilsObjectTagEXT")) |
| 4633 | { |
| 4634 | return (void*)entry_vkSetDebugUtilsObjectTagEXT; |
| 4635 | } |
| 4636 | if (!strcmp(name, "vkQueueBeginDebugUtilsLabelEXT")) |
| 4637 | { |
| 4638 | return (void*)entry_vkQueueBeginDebugUtilsLabelEXT; |
| 4639 | } |
| 4640 | if (!strcmp(name, "vkQueueEndDebugUtilsLabelEXT")) |
| 4641 | { |
| 4642 | return (void*)entry_vkQueueEndDebugUtilsLabelEXT; |
| 4643 | } |
| 4644 | if (!strcmp(name, "vkQueueInsertDebugUtilsLabelEXT")) |
| 4645 | { |
| 4646 | return (void*)entry_vkQueueInsertDebugUtilsLabelEXT; |
| 4647 | } |
| 4648 | if (!strcmp(name, "vkCmdBeginDebugUtilsLabelEXT")) |
| 4649 | { |
| 4650 | return (void*)entry_vkCmdBeginDebugUtilsLabelEXT; |
| 4651 | } |
| 4652 | if (!strcmp(name, "vkCmdEndDebugUtilsLabelEXT")) |
| 4653 | { |
| 4654 | return (void*)entry_vkCmdEndDebugUtilsLabelEXT; |
| 4655 | } |
| 4656 | if (!strcmp(name, "vkCmdInsertDebugUtilsLabelEXT")) |
| 4657 | { |
| 4658 | return (void*)entry_vkCmdInsertDebugUtilsLabelEXT; |
| 4659 | } |
| 4660 | if (!strcmp(name, "vkCreateDebugUtilsMessengerEXT")) |
| 4661 | { |
| 4662 | return (void*)entry_vkCreateDebugUtilsMessengerEXT; |
| 4663 | } |
| 4664 | if (!strcmp(name, "vkDestroyDebugUtilsMessengerEXT")) |
| 4665 | { |
| 4666 | return (void*)entry_vkDestroyDebugUtilsMessengerEXT; |
| 4667 | } |
| 4668 | if (!strcmp(name, "vkSubmitDebugUtilsMessageEXT")) |
| 4669 | { |
| 4670 | return (void*)entry_vkSubmitDebugUtilsMessageEXT; |
| 4671 | } |
| 4672 | #endif |
| 4673 | #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| 4674 | if (!strcmp(name, "vkGetAndroidHardwareBufferPropertiesANDROID")) |
| 4675 | { |
| 4676 | return (void*)entry_vkGetAndroidHardwareBufferPropertiesANDROID; |
| 4677 | } |
| 4678 | if (!strcmp(name, "vkGetMemoryAndroidHardwareBufferANDROID")) |
| 4679 | { |
| 4680 | return (void*)entry_vkGetMemoryAndroidHardwareBufferANDROID; |
| 4681 | } |
| 4682 | #endif |
| 4683 | #ifdef VK_EXT_sample_locations |
| 4684 | if (!strcmp(name, "vkCmdSetSampleLocationsEXT")) |
| 4685 | { |
| 4686 | return (void*)entry_vkCmdSetSampleLocationsEXT; |
| 4687 | } |
| 4688 | if (!strcmp(name, "vkGetPhysicalDeviceMultisamplePropertiesEXT")) |
| 4689 | { |
| 4690 | return (void*)entry_vkGetPhysicalDeviceMultisamplePropertiesEXT; |
| 4691 | } |
| 4692 | #endif |
| 4693 | #ifdef VK_EXT_validation_cache |
| 4694 | if (!strcmp(name, "vkCreateValidationCacheEXT")) |
| 4695 | { |
| 4696 | return (void*)entry_vkCreateValidationCacheEXT; |
| 4697 | } |
| 4698 | if (!strcmp(name, "vkDestroyValidationCacheEXT")) |
| 4699 | { |
| 4700 | return (void*)entry_vkDestroyValidationCacheEXT; |
| 4701 | } |
| 4702 | if (!strcmp(name, "vkMergeValidationCachesEXT")) |
| 4703 | { |
| 4704 | return (void*)entry_vkMergeValidationCachesEXT; |
| 4705 | } |
| 4706 | if (!strcmp(name, "vkGetValidationCacheDataEXT")) |
| 4707 | { |
| 4708 | return (void*)entry_vkGetValidationCacheDataEXT; |
| 4709 | } |
| 4710 | #endif |
| 4711 | #ifdef VK_EXT_external_memory_host |
| 4712 | if (!strcmp(name, "vkGetMemoryHostPointerPropertiesEXT")) |
| 4713 | { |
| 4714 | return (void*)entry_vkGetMemoryHostPointerPropertiesEXT; |
| 4715 | } |
| 4716 | #endif |
| 4717 | #ifdef VK_AMD_buffer_marker |
| 4718 | if (!strcmp(name, "vkCmdWriteBufferMarkerAMD")) |
| 4719 | { |
| 4720 | return (void*)entry_vkCmdWriteBufferMarkerAMD; |
| 4721 | } |
| 4722 | #endif |
| 4723 | #ifdef VK_NV_device_diagnostic_checkpoints |
| 4724 | if (!strcmp(name, "vkCmdSetCheckpointNV")) |
| 4725 | { |
| 4726 | return (void*)entry_vkCmdSetCheckpointNV; |
| 4727 | } |
| 4728 | if (!strcmp(name, "vkGetQueueCheckpointDataNV")) |
| 4729 | { |
| 4730 | return (void*)entry_vkGetQueueCheckpointDataNV; |
| 4731 | } |
| 4732 | #endif |
Lingfeng Yang | 5c63afd | 2018-12-22 01:21:14 -0800 | [diff] [blame] | 4733 | #ifdef VK_GOOGLE_address_space |
| 4734 | if (!strcmp(name, "vkMapMemoryIntoAddressSpaceGOOGLE")) |
| 4735 | { |
| 4736 | return (void*)entry_vkMapMemoryIntoAddressSpaceGOOGLE; |
| 4737 | } |
| 4738 | #endif |
Lingfeng Yang | 0b81df2 | 2018-11-05 21:40:30 -0800 | [diff] [blame] | 4739 | return nullptr; |
| 4740 | } |
| 4741 | |
| 4742 | } // namespace goldfish_vk |