Make Vk::Device store a reference to Vk::PhysicalDevice info

This commit is contained in:
Lynix
2020-03-08 18:10:12 +01:00
parent 0e27c2315f
commit 28cf4ed6e3
4 changed files with 17 additions and 17 deletions

View File

@@ -429,7 +429,7 @@ namespace Nz
};
std::shared_ptr<VulkanDevice> device = std::make_shared<VulkanDevice>(s_instance);
if (!device->Create(gpu, createInfo))
if (!device->Create(GetPhysicalDeviceInfo(gpu), createInfo))
{
NazaraError("Failed to create Vulkan Device: " + TranslateVulkanError(device->GetLastErrorCode()));
return {};