Fix issue with freeing resources

This commit is contained in:
Georg Hagen
2024-07-11 13:22:01 +02:00
parent 22cb48be89
commit 313b01db1b
16 changed files with 300 additions and 156 deletions

View File

@@ -45,6 +45,8 @@ namespace OpenVulkano
public:
Device(vk::PhysicalDevice& physicalDevice);
~Device() { if (device) Close(); }
[[nodiscard]] std::string GetDeviceName() const
{
return properties.deviceName.data();