improve a few codes.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user