Update Vulkan backend

This commit is contained in:
Wojtek Figat
2024-02-05 18:45:01 +01:00
parent d4a483e656
commit 5b8846c8f0
9 changed files with 29 additions and 44 deletions

View File

@@ -277,4 +277,15 @@ void RenderToolsVulkan::LogVkResult(VkResult result)
LogVkResult(result, "", 0);
}
bool RenderToolsVulkan::HasExtension(const Array<const char*>& extensions, const char* name)
{
for (int32 i = 0; i < extensions.Count(); i++)
{
const char* extension = extensions[i];
if (extension && StringUtils::Compare(extension, name) == 0)
return true;
}
return false;
}
#endif