Move some functions from device layer table to instance layer table

This commit is contained in:
baldurk
2015-12-10 00:56:19 +01:00
parent b9f0c7ef96
commit 57ae4e76f5
2 changed files with 8 additions and 8 deletions
@@ -65,7 +65,10 @@ void InitInstanceReplayTables(VkInstance instance)
// we know we'll only have one instance, so this is safe
#define InstanceGPA(func) table->func = (CONCAT(PFN_vk, func))table->GetInstanceProcAddr(instance, STRINGIZE(CONCAT(vk, func)));
InstanceGPA(GetPhysicalDeviceSurfaceCapabilitiesKHR)
InstanceGPA(GetPhysicalDeviceSurfaceFormatsKHR)
InstanceGPA(GetPhysicalDeviceSurfacePresentModesKHR)
InstanceGPA(GetPhysicalDeviceSurfaceSupportKHR)
InstanceGPA(DbgCreateMsgCallback)
InstanceGPA(DbgDestroyMsgCallback)
@@ -82,9 +85,6 @@ void InitDeviceReplayTables(VkDevice device)
#define DeviceGPA(func) table->func = (CONCAT(PFN_vk, func))table->GetDeviceProcAddr(device, STRINGIZE(CONCAT(vk, func)));
DeviceGPA(GetSurfacePropertiesKHR)
DeviceGPA(GetSurfaceFormatsKHR)
DeviceGPA(GetSurfacePresentModesKHR)
DeviceGPA(CreateSwapchainKHR)
DeviceGPA(DestroySwapchainKHR)
DeviceGPA(GetSwapchainImagesKHR)
+4 -4
View File
@@ -37,7 +37,10 @@
HookInit(GetPhysicalDeviceMemoryProperties); \
HookInit(DbgCreateMsgCallback); \
HookInit(DbgDestroyMsgCallback); \
HookInit(GetPhysicalDeviceSurfaceSupportKHR)
HookInit(GetPhysicalDeviceSurfaceSupportKHR); \
HookInit(GetPhysicalDeviceSurfaceCapabilitiesKHR); \
HookInit(GetPhysicalDeviceSurfaceFormatsKHR); \
HookInit(GetPhysicalDeviceSurfacePresentModesKHR); \
#define HookInitVulkanDevice() \
HookInit(CreateDevice); \
@@ -161,9 +164,6 @@
HookInit(CmdNextSubpass); \
HookInit(CmdExecuteCommands); \
HookInit(CmdEndRenderPass); \
HookInit(GetPhysicalDeviceSurfaceCapabilitiesKHR); \
HookInit(GetPhysicalDeviceSurfaceFormatsKHR); \
HookInit(GetPhysicalDeviceSurfacePresentModesKHR); \
HookInit(CreateSwapchainKHR); \
HookInit(DestroySwapchainKHR); \
HookInit(GetSwapchainImagesKHR); \