| 1786 | static PFN_vkVoidFunction intercept_khr_swapchain_command(const char *name, VkDevice dev); |
| 1787 | |
| 1788 | VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetDeviceProcAddr(VkDevice dev, const char *funcName) { |
| 1789 | PFN_vkVoidFunction proc = intercept_core_device_command(funcName); |
| 1790 | if (proc) return proc; |
| 1791 | |
| 1792 | if (dev == NULL) { |
| 1793 | return NULL; |
| 1794 | } |
| 1795 | |
| 1796 | proc = intercept_khr_swapchain_command(funcName, dev); |
| 1797 | if (proc) return proc; |
| 1798 | |
| 1799 | DispatchMapStruct *dispMap = get_dispatch_info(dev); |
| 1800 | assert(dispMap); |
| 1801 | VkuDeviceDispatchTable *pDisp = dispMap->device_dispatch_table; |
| 1802 | |
| 1803 | if (pDisp->GetDeviceProcAddr == NULL) return NULL; |
| 1804 | return pDisp->GetDeviceProcAddr(dev, funcName); |
| 1805 | } |
| 1806 | |
| 1807 | VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance, const char *funcName) { |
| 1808 | PFN_vkVoidFunction proc = intercept_core_instance_command(funcName); |
no test coverage detected