improve a few codes.

This commit is contained in:
2021-09-23 22:13:57 +08:00
parent 66c6072de4
commit b222c52cc2
6 changed files with 38 additions and 32 deletions

View File

@@ -87,6 +87,8 @@ VulkanInstance::VulkanInstance(VkInstance i,VKDebugOut *out)
delete[] pd_list;
}
GetDeviceProcAddr = (PFN_vkGetDeviceProcAddr)vkGetInstanceProcAddr(inst, "vkGetDeviceProcAddr");
}
VulkanInstance::~VulkanInstance()
@@ -105,4 +107,9 @@ const GPUPhysicalDevice *VulkanInstance::GetDevice(VkPhysicalDeviceType type)con
return(nullptr);
}
void VulkanInstance::DestroySurface(VkSurfaceKHR surface)
{
vkDestroySurfaceKHR(inst,surface,nullptr);
}
VK_NAMESPACE_END