MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / GetDeviceProcAddr

Function GetDeviceProcAddr

layersvt/screenshot.cpp:1788–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1786static PFN_vkVoidFunction intercept_khr_swapchain_command(const char *name, VkDevice dev);
1787
1788VKAPI_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
1807VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance, const char *funcName) {
1808 PFN_vkVoidFunction proc = intercept_core_instance_command(funcName);

Callers 1

vkGetDeviceProcAddrFunction · 0.85

Calls 3

get_dispatch_infoFunction · 0.85

Tested by

no test coverage detected