Added fix to work for versions 1.2.55+ of vulkan headers

This commit is contained in:
Alejandro Saucedo 2020-11-01 10:46:16 +00:00
parent 482aa29426
commit 8abac9fb58
6 changed files with 16 additions and 17 deletions

View file

@ -65,7 +65,7 @@ Manager::~Manager()
if (this->mFreeDevice) {
SPDLOG_INFO("Destroying device");
this->mDevice->destroy();
this->mDevice->destroy((vk::Optional<const vk::AllocationCallbacks>)nullptr);
SPDLOG_DEBUG("Kompute Manager Destroyed Device");
}
@ -86,7 +86,7 @@ Manager::~Manager()
#endif
if (this->mFreeInstance) {
this->mInstance->destroy();
this->mInstance->destroy((vk::Optional<const vk::AllocationCallbacks>)nullptr);
SPDLOG_DEBUG("Kompute Manager Destroyed Instance");
}
}
@ -175,7 +175,7 @@ Manager::createInstance()
std::vector<vk::LayerProperties> availableLayerProperties =
vk::enumerateInstanceLayerProperties();
for (vk::LayerProperties layerProperties : availableLayerProperties) {
std::string layerName(layerProperties.layerName);
std::string layerName(layerProperties.layerName.data());
uniqueLayerNames.insert(layerName);
}
for (const char* desiredLayerName : desiredLayerNames) {